Software Development Network Logo
  • VS Team System
  • Visual Basic
  • Windows Forms
  • Visual C++
  • Visual C#
  • Visual FoxPro
  • Microsoft ISV
  • Smart Devicet
  • SharePoint Products
  • Visual Studio
  • SQL Server
  • Windows Vista
  • IE Development
  • .NET Development
  • Audio and Video

Software Development Network >> Visual C#

Visual C#

New Question

how can i serialize a object received from a MessageQueue?
Problem Loading UserControl in VS2002
Is instanciating to null BAD??
Does anyone know how to use Validation Summary Control with Custom Validator ?
Two newbie questions about COMException and programming Excel.
This BackgroundWorker states that it doesn't support cancellation
Help with strange PInvoke conversion
best way to create an interface for multiple assemblies
Prevent ComboBox DropDown Under Certain Conditions
Cannot access a disposed object?

Top Answerers

SmartSpy
xlordt
Andrea Lattuada
Jesper Kleis Jensen
Schasta
Dale17677
Mutola
Electronic75
Buffbuh
Rasheed Hammouda
DC Micro Development, Inc.
Only Title

Answer Questions

  • MarnieV "new" event handlers

    Given this declaration: Button myButton = new Button(); void myButton_Click( object sender, EventArgs e ) { MessageBox.Show("Click"); } What is difference between doing this: myButton.Click += myButton_Click; and doing this myButton.Click += new EventHandler( myButton_Click ); I've been doing it the simpler ( first ) way and I haven't had a problem (yet ), but I've noticed that most documentation I've read has it the other way, creating a new EventHandler. I'm not clear on what the effect of creating the new event handler is, and I am yet to discover what "The Bad Thing" is that's going to happen if i do i ...Show All

  • Rykin Poe keyboardbuffer c#

    Is there a way to see in c# what is in the keyboard buffer (number of characters and their values) When i am in the eventhandler keydown I want to know when I leave the keydown eventhandler if there are still chacters being pressed (so what is in the keyboard buffer). There is no way to look in the buffer because this is abstracted from you by the windows kernel. There are however low level keyboard messages generated by the kernel. To get these you have to use the Win32 API. But listening to your problem it doesn't sound like a good idea, because you want to stay in the event handler and wait for the events to happen. This will hold up your application and the messageloop gets clustered. You could better try to handle your prob ...Show All

  • sticksnap Custom Border Form

    http://www.codeplex.com/Wiki/View.aspx ProjectName=CustomerBorderForm How do I use this to apply to my Application so that I can customize my border form Thanks, What do I add to my project to create the custom border What problem are you facing in using that. I think that is simple to use and there is already a build in sample of that. Best Regards, You need to add a reference to Lizard, And see sample where he's inheriting a form and putting what code in its constructor. You have to do the same. you can put that code directly in the form and that inheritance is not needed. Set path to the skin. Run the application and its Done! See sample it'lll really help. I dont see any complexity in atleast using ...Show All

  • kenalex check if there is internect connection ?

    How can I check if there is internet connection thanks Use P/Invoke to call WinAPI InternetGetConnectedState method See sample there http://www.aspemporium.com/howto.aspx hid=27 There are more than one way to get connection state The First is to use P/invoke and calling WinAPI InternetGetConnectedState this one that Michael Nemtsev provide to you The Seconed .Net 2 have NetworkChange class it hase two events NetworkAvailabilityChanged and NetworkAddressChanged for an example of this method look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=118246&SiteID=1 The Third to use System management objects for an example of this method look at http://forums.microsoft.com/MSDN/S ...Show All

  • Ron Liu this keyword's cons, pros or nothing?

    Hello, I just installed Resharper Addon of Visual Studio and it pointed all the code where i used this keyword with a warning saying its a redundant qualifier. Its just my habbit to put a this keyword with instace variables so I can distinguish between function level and class level variable. But i dont know what effect "this" has Why Resharper is saying its redundant I'll be really happy to know what's effect of "this: keyword on the application code. Best regards, Rizwan here is bried description of the C# keyword this: http://www.codereference.com/book/csharp_syntax_this.aspx Is there a way to turn off that feature of ReSharper so not to see anymore this as greyed ou ...Show All

  • Badpig Can the (QoS/qWAVE) be used as a media tutorial?

    I do not have Vista, but I am curious as to the limitations of (QoS/qWAVE) Would like to know if their is such a thing as creating a media file that loads at "first boot up" Then is available for the user to use as reference later on if need be Is this possible I am not even sure if I am in the right area to ask this question or not. This link was given to me in the MSNexpert live chat. I am having a hard time explaining this to you. So forgive my somewhat ignorance in this. I have, for a couple of months chatted with different departments in the live expert chat. Prioritizing The security aspects of Vista is a must. But I discussed them adding video files to the OS concerning Security measures they should take ...Show All

  • Liu Hua C# codes.

    Dear All, I am developing a windows application using c# codes. What I first want to do is to enable that my application do a authorization where the pc is a valid one to run my software or not. Secondy how can I protect my exe files from being decompile. Thirdly how to give it a license and for it to run based on a license. Thanks. Dear Rizwan, I guess in my case I need a protector. I have tried the trial version of Eziriz How reliably is it from your point of view How can I know if it is eating more memory Do your know of any other protectors Can I have list of them. O k I will read through your articles. Thanks man. You are more than Welcom ...Show All

  • jcTW Help on eDrawings needed!

    Hello all, I know this might be a long shot, but has anyone of you used C# to program Solidworks eDrawings control I am having trouble using the provided Print2 function in the eDrawings API. I emailed Solidworks, but their response team is very slow, the last reply about another issue was like 5 days. So I was hoping if anyone can take a look at my code and tell me what is wrong Thanks! Ke ------------------------------------------------------------------ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Drawing.Printing; namespace OmegaDyne_Document_Cont ...Show All

  • IlkerTunca Compiling under dualcore systems

    Is it possible to get Visual Studio to use the full capabilities of multiple processors and/or dualcore processors I have a project in Visual Studio that takes 4 - 5 minutes to compile, and during the entire time, it's only using 50% of the available processor power. Obviously it's going to take time for the compiler to be upgraded to support multiple cores and multiple processors, but is it possible to at least compile two files at the same time - a copy of the compiler running on each core/processor One of the projects in question is a Visual C++ project with just over a hundred cpp files. The machine used to compile the project is a AMD X2 4800 with 2GB of RAM. Only Visual C++ can do multiprocessor ...Show All

  • ChrisMcCabe Late binding in C# - How to pass an object and yet use hardcoded properties?

    Hi, I will use an example to describe my problem: I have two objects - Say Student and Teacher. The two objects share some properties - Say Name and Birthdate I have one method that lists person name and birthdate. I need to pass an object and yet use the properties - Something like this: private void ListPersonInfo(object person) { Console.WriteLine(person.Name, person.BirthDate) } The above does not compile since at compile time the Name and BirthDate are properties of their respecitve objects and are not properties of the Object class. I don't want to use two methods one for teachers and one for students. I also know that it is not a good OO practice to pass plain objects like this and I don't want to us ...Show All

  • ShadowRayz Getting shortcut properties

    Is it possible to get the values of properties from a shortcut that launched an application I've created a shortcut for an application and after right clicking on it and selecting "properties" I can see there are several items in the "shortcut" tab. What I'd like to be able to do is get the value of "Run:" in the application, so I could get it to start either normally or minimised. Is it possible to read these values Thanks, Stu not sure I quite follow. You would need to implement the IWSH interface to read desktop shortcuts.... if you are trying to pass arguments into your application, then this would be better than to read the shortcut and checking to see what the sho ...Show All

  • dsula Finding text in a Rich Text Box Control

    I find that when I use richTextBox.find(string) it only seems to search until the first occurrence of the string. How can I have a find like that in notepad etc. i.e. finds the next occurrence with each click. The code I'm currently using to do this is: int pos; if (RichTextBox.SelectedText == "" ) { pos = RichTextBox.Find(searchTextBox.Text, 0, RichTextBoxFinds .None); } else { pos = RichTextBox.Find(searchTextBox.Text, (RichTextBox.SelectionStart + 1), RichTextBoxFinds .None); } if (pos < 0) { MessageBox .Show( "Your query " + searchTextBox.Text + " could not be found" , "Results" , MessageBoxButtons .OK, MessageBoxIcon .Warning); RichTextBox.DeselectAll(); } ...Show All

  • Bagles1 Closing files (without saving) is slow

    I've seen other posts about the VS 2005 C# IDE being slow for typing or when saving files, but for me both of these cases are ok. But *everytime* I close a file (whether or not it needs saving), it takes several seconds. If I open up the "Windows" dialog to close several windows, it can take minutes. I've tried the obvious like defragmenting the HD, not having too many files open at once -- doesn't matter. Any suggestions Thanks! Can someone help me interpret the filemon output. I filtered on the devenv.exe process, and replaced the (rather lengthy) path with [localpath]. What I notice is that 3 seconds is spent on these two lines (I can't tell if the time is spent on the first line or the second line -- d ...Show All

  • nightchaser library not registered error

    Hello, I hope someone will have an answer to this question... Using VS. Net + C# I have a a console project called implementer that communicates with another addin project. Both are supposed to send and receive a "struct" that holds a hashtable to store/change info. I got the addin to show up right and it starts listening to the events been triggered by excel. In one of the events, the addin class, via invocation, is supposed to instantiate an instance of the struct and pass it to the running instance of the implementer class which changes and modifies the info in the hashtable of that struct. when trying to send that struct (which is a dll file by itself but added to both projects as reference) I get the error message s ...Show All

  • Latso Make end of statement ";" optional?

    I think microsoft should make the end of line statement, (i.e. the ";") optional. If you program VB.net like I do and is inevitably forced to write/read C# code, having to write the ; after each statement is annoying. I know C/C++/java etc all have it but in an enviroment like Visual studio where the IDE makes life so much easier the end of line statement is unnecessary. Who agrees with me Gabriel Lozano-Moran wrote: The reason that VB was popular was because it was an easy to learn programming language. Because it was so easy to learn a lot of hobbyists that didn't have proper training could "develop" software often using bad practices like Cowboy Programming and using bad practices without realising that ...Show All

454647484950515253545556575859606162

©2008 Software Development Network

powered by phorum