Azaz's Q&A profile
.NET Development ILAsm syntax
hello there, I'm not sure if this forum the most appropriate place to ask this question, but i'll try... I need to write simple console application in ILAsm as a part of my diploma and I hardly understand why below code works (compiles and executes in ilasm): ldstr "Enter a" call void [mscorlib]System.Console::Write(string) and this one - not: ldstr "Enter a" call valuetype [mscorlib]System.Void [mscorlib]System.Console::Write(class [mscorlib]System.String) why "string" and "class [mscorlib]System.String" isn't the same See the ECMA CLI specification , specifically Partition II section 7.2 and 23.2.16. ...Show All
Visual Studio Report Viewer runs queries for parameter lists multiple times
I am using Report Viewer in ASP.NET 2.0 app to execute Report Server reports developed with RS 2005 / Visual Studio 2005. Several parameters are defined with datasets to provide selection lists in the parameter area. When the report is executed in the Report Viewer control on the web page, the SQL Profiler shows that these parameter list stored procedures are being executed twice. This occurs without any code in the page i.e. just using the Report Viewer control URL and Path properties set at design time to execute the report with its default parameters. I have confirmed that there is no postback occurring. Note that this does not occur when running the report from Visual Studio in the preview pane for the Report project. Has anyone ...Show All
Visual Basic How to display correct subcategories after selecting a category from a combo
I am developing an application that must have a category combo list and a subcategory combo list. My category combo list will consist of the following: Computers Printers Software If I select Computers as my category then I want my subcategory to display the following: Desktop PC Notebook Server How do I develop this using Visual Basic 2005 Professional together with SQL to achieve this Regards Dipendra Yes... basically it is Once you have the Datarow that was selected in the Combobox you can the call the dr.GetChildRows( "Gruppen" ) In order to get all Subcategories from that row. But really only try to save the final category an item is in. If you will ...Show All
Smart Device Development Type of file problem
hi all, this might a simple question for u all, but i m not getting any way to find the solution. Actually i want to make it out whether the file is video file, audio file or simple image file. I dnt how i can get the type of the files. plz help needed. thanx in advance hye_heena wrote: hi all, this might a simple question for u all, but i m not getting any way to find the solution. Actually i want to make it out whether the file is video file, audio file or simple image file. I dnt how i can get the type of the files. plz help needed. thanx in advance you need to be a little more specific about your context ... do you already have a FileInfo object if so, get the ...Show All
Visual Studio vb & vc++ both?
Hi All! i have been browsing through web and forums in order to find out how to install both vb and vc++ express on thesame computer but so far no answer. Can this be done. I tried to install vc++ after vb but vb stopped to function. Rgds, Chopa Hi Brendan! I can't remember error messages since it's a while since I tried. VBExpress just wouldn't launch anymore. I had to remove both and re-install. Should the installation of vc++ go automatically after / on top of the vbexpress or should I try the custom installation Now thinking it afterwards it could be that my undermeasured laptop (500mhzP3/128Mram) has something to contribute to the problems Rgds, Tapio ...Show All
Visual Studio Express Editions People please help, can't use Visual Basic 2005 Express Edition!!!
Hey people..Please help me i am going insane allready, I have installed and uninstalled Visual Basic 2005 Express Edition 3 or 4 times, and everytime i run it,and i click file->new project-> it has NO template files...so i cant have a new project, Here is the error massage the event viewer says that there are some errors but how can i fix them it should have fixed it self after 3 tries no this is what is says: The Visual Studio template information is out of date. Regenerate the templates by running 'vbexpress /installvstemplates' or reinstalling Visual Studio. Note: corrective action requires Administrator privileges. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. and there is ...Show All
Visual Studio Express Editions Sending SMS fails
Hi, Im writing a code to send SMS from PC to Mobile through Nokia 3230. The code is attached below, it gives 'no phone connected' exception in the line Call smsobj.SendSMS(ShortMessageRouteType.SHORTMESSAGE_ROUTE_TYPE_ANY, submitobj) What could be the cause of it Im able to send SMS using HyperTerminal through the same mobile phone. Kindly help to solve this issue. If anybody has code samples to send and receive SMS, please post it. *** Code: Imports NokiaCLMessaging Public Class Form1 Private smsobj As ShortMsgAdapter Private submitobj As IGSMSubmit Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load smsobj = New ShortMsgAdapter End Sub Priv ...Show All
Visual Studio 2008 (Pre-release) Custom Control, Converter parameters, Trigger using parent property
Hello all I am trying to create a custom text box which uses the next template: < Style TargetType = " {x:Type local:XTextBox} " > < Setter Property = " Template " > < Setter.Value > < ControlTemplate TargetType = " {x:Type local:XTextBox} " > < Border Background = " {TemplateBinding Background} " BorderBrush = " {TemplateBinding BorderBrush} " BorderThickness = " {TemplateBinding BorderThickness} " > < TextBox x:Name = " txtVal " Background = " Beige " IsReadOnly = " True " Text = " {Binding RelativeSource={x:Static Relati ...Show All
Windows Forms How to set the transparent color for an Animated GIF?
Hello, The animated gif in my application represents the process and asks the user to wait while the thread is completing its task, however the problem is when I try to set the transparent color of the animated gif with a code similar to this: waitImage.MakeTransparent(System.Drawing. Color .White); The transparent color works as expected, but the problem is, the Animated GIF become static and loses its motion. I am hosting the Aimated GIF in a Picture box and the application is written in Windows.Forms and .Net 2.0 Do you know why this happen Thanks in advance. private void OnLoad( object sender, EventArgs e) { waitImage = ResourceHelper .GetImage( "wait" ...Show All
SQL Server SUM a column of values derived from an IIF expression
I have a table in my report which shows sales values for each month by looking at the month number so for Jan i use =IIf(Fields!period_.Value=1,Fields!nett_.Value,0) for Feb =IIf(Fields!period_.Value=2,Fields!nett_.Value,0) this is all good and I get a series of rows per customer with the correct value in the correct column JAN FEB Mar Customer A 250 Customer A 350 Customer A 5000 . However I want to create a summary a line JAN FEB Mar Customer A 250 350 5000 I tried using SUM but this doesn't give all of the values in the summary line. It might just give the first and the rest are zeros. Or if the customer didn't have a ...Show All
Visual C# Multiple Edition management with VS 2005
Hi All, Here is the big question : Suppose to need to compile the Basic, Standard and Pro editions of you app. What will you do inside VS2005 (each edition contains a different set of file/classes but, obviously, the most are shared between each app edition) 1) I create 3 project (Basic, Standard and Pro) and link the shared files/classes from the first. 2) I use conditional compiling, placing the classes inside an #if PROEDITION #endif statement. 3) I build 3 different asseblies and merge them using ILMerge. 4) Other. Thanks so much for your thoughts, I want to start with the right foot! Alberto Hi Anson, Thanks a lot for your thoughts. My Basic project has 10 *.cs files, Standard 2 more, Pro 5 ...Show All
Visual Studio How to correctly register a custom logger in an IDE's BuildEngine?
Hi again, In my endless search for a solution, I'm trying yet another method, but I'm still running into a wall. I am trying to register my own logger class into my solution's build engine. I get the instance of the engine like so: this.m_engine = Microsoft.Build.BuildEngine.Engine.GlobalEngine; and then on the OnBuildBegin event, I try to register my custom logger as follows: if (this.m_engine != null) { this.m_engine.RegisterLogger(this.m_logger); } This calls my logger's Initialize() function correctly, and just before the OnBuildDone event fires, my logger is Shutdown(). However, my logger's hooks into the IEventSource (to capture the errorraised and warningrased events) don't seem to be firing in betw ...Show All
Windows Forms Drawing a Line above other Controls
Is it possible to draw a line above and under some controls I mean, can we control the Z-order of a drawn shape(I.E line) This is the code snippet where I draw a line. It should somehow appear above all controls(buttons) but it doesn't. Private Sub Button1_Paint( ByVal sender As Object , ByVal e As System.Windows.Forms.PaintEventArgs) Handles Button1.Paint Dim g As Graphics = Me .CreateGraphics g.DrawLine(Pens.Blue, Button1.Location.X, Button1.Location.Y - 5, Button1.Location.X + 30, Button1.Location.Y - 5) End Sub TIA You can get close to the effect you need by defining a new control and drawing your line on that. It works well for thin vertical and horizontal l ...Show All
SQL Server Difference between the SQL Server Express Bundled with C#/VB VS the downloadable SQL Server Express SP1 with advanced Services
What is the Difference between the SQL Server Express Bundled with C#/VB VS the downloadable SQL Server Express SP1 with advanced Services I installed C# with SQL Server Express, however I wanted to add the Full Text Searching and the SQL Server Management Studio Express, so I downloaded and installed the SQL Server 2005 Express Edition with Advanced Services SP1. When I installed it over top of my current installation, it complained of version mismatching, and then C# failed to recognize that I had SQL 2005 Express installed at all. What I'd like to know is, which version is more current (they have to be different, they had different version numbers, one was 9.xx.xxxx the other was 2005.9.xx.xxxx) The one bundled with C#, or th ...Show All
Visual Studio Express Editions Tabs tab and more tabs[Fixed]
Hello. I am working on a text editor. I have created a tab manager, and each time a new tab is opened up, it adds a RichTextBox inside the tabpage(RTB for syntax highlighting). How do I access the RTB in the selected tabpage Do I need to create a somewhat local Control Array and keep track of what RTB is on what tab Also...any tips for syntax highlighting I'd thought I'd post how I fixed it for anyoen else who searches for help. I created two cases that inherit TabPage and TabControl... class MyTabControl : TabControl { public GLIDETabPage SelectedGLIDETab { get { return (GLIDETabPage)this.SelectedTab; } } } class MyTabPage : TabPage { private RichTextBox ...Show All
