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

Software Development Network >> Visual C#

Visual C#

New Question

Asian characters in a rich edit text box
Help on creating my first Collection
Add Datarow
How to offer "Find(Ctrl+F)" function to a richtextbox?
Adding border separators..
Get window handle
Thread Message Suggestions
reg - graphics.
WebBrowser Control and JScript Error
Save Before Exit?

Top Answerers

lou_1
Prash1
Rischa
Douglas H. Troy
Seas Comander
Keith Newton
Blkbird
Mike Oksuzyan
Dietz
Speedie
Radio Heritage Foundation - sharing the stories of Pacific radio
Only Title

Answer Questions

  • Ccm1st Completely dynamic method invocation

    In java, I believe you can attempt to call a method even though the compiler can't find the method in the object's known class. Basically, you could do something like this - Object o; o.SomeMethod(); The java compiler doesn't look to see if SomeMethod exists in o. It simply compiles the code and tries to find the method on the object at run-time. If it's not found, something like a MethodNotFoundException is thrown, and can be handled gracefully. I want to do precisely the same thing in C# without using reflection. I think this type of behavior can be acheived in a roundabout way using the item of a foreach loop, but I want to be able to do it anywhere. Essentially, I want to be able to get this piece of code to compile - tr ...Show All

  • jim- Return / finally -- which one will execute Last in a method?

    Hi I've a doubt regarding Finally block in exception handling, I'm trying the falllowing code public Dataset funct() { Dataset ds = new Dataset(); //Other declarations here try { adapter.fill(ds); } catch { } finally { ds.dispose(); } return ds; } In the above code I'm desposing the dataset before return, but it is comming in the method which is calling this method. when I'm debugging this application the control goes to finally block and executing return later. whats going on in this code. can anybody tell me please Thanks in advance Yah , I no need to dispose actually. But I've doubt that why they are not disposing in final ...Show All

  • #DressedMan how can i show a message if it wasn't used for a specific period of time?

    hi there can you please tell me how can i show a message if my app wasn't used for a specific period of time i mean how can i determine that my app wasn't used!! thanks Hi, you may use the timer-class and start it each time your user does not use the application. http://msdn2.microsoft.com/en-us/library/system.windows.forms.timer.aspx ralph ...Show All

  • ColoradoKid Font size in debug windows

    Is there any way to change the font size in the various debug windows (call stack, locals, etc.) Even increasing the font size in the Appearance tab of the Display Properties had no effect. Thanks, Gregg You should be able to change that by opening the Tools/Options dialog, selecting "Fonts and Colors", and selecting the window you want to change from the "Show settings for" dropdown. -Josh Stevens VS Core IDE team Moving to a vs ide forum. Thanks- -Tim <MSFT> ...Show All

  • Jkumar Switch statement

    Hi, all: [I guess this could be considered a rant, but I'm still curious if anyone shares my opinion on this] I am still wondering why the switch statement is not more flexible. For example, I feel that a switch statement using objects makes sense. I'll give a more visual example for ease of understanding more than anything else, so picture this: I have three buttons on my form, button1, button2, button3. I set the click event to the same event handler, button_ButtonClick. Inside the button_ButtonClick method I want to check the sender to see which button was clicked, so I do this: switch (sender) // or even (sender as Button) { case button1: // do something here break ; case button2: // do somethi ...Show All

  • wjwjwjwjwjwj Calling Event Issues??? Help!

    When my form closes I want to fire an event that will do somethings....but i think i may be calling it wrong...Here is my method signiture...and this is the error.... [code languge="C#"] public delegate void frmClosing ( object sender, FormClosingEventArgs e); public frmClosing ClosingVendorDetails; public static void DisplayVendorDetails(System.Windows.Forms. Form ParentForm, BHFreight.Tracking.BusinessObjects. VendorOrderLegDetail _VendorLeg, frmClosing ClosingForm) { BHFreight.Tracking.UI.MainWindows. VendorOrderLegDetailsForm frmVendorLeg = new VendorOrderLegDetailsForm (); frmVendorLeg._VendorDetail = _VendorLeg; frmVendorLeg.LoadVendorObjectToForm(); frmVendorLeg.ShowDi ...Show All

  • chris29 help in list box..

    Hi.. I am creating a windows form using c#. i have 2 listbox controls. The first list box contains the available names. i want to select an item and list in the second list box using a button, select all the items from the first listbox and list in the second listbox using another button, similarly i should be able to move the selected item(single selection) which is in the second listbox to the first listbox using a buuton and likewise select the whole of the items in the second listbox and move it to the first listbox using a button. can anyone please help me with the code... please help You can select any item(s) from your list. It will handle all the selections. Don't forget to mark my e ...Show All

  • jchau Application not responding

    Hi, Is there a way to the application do not show the status (Not responding) in windows Xp for example, when it's running a big operation I tried removing the "Causesvalidation" but didn't worked ! I'm using this.refresh() sometimes, and does not work as well. Thanks Thanks a lot... Can you give me an example of the DoEvents If you have a process that is running that long, for the sake of the user experience you might want to look at tossing it over to a thread to help improve the User experience even more. Thanks for the advice Your application is really not responding, thus the XP diagnostic. To fix this, either call DoEvents from inside your processing loo ...Show All

  • aquaseal Proceses and Arguments?

    How Would I Send a command to CMD like netstat through c# and So far My app can open CMD I'm lost from here... Any help would be appreciated TY... No actually I'm lookin to send a Command to the CMD prompt... like the app runs CMD then places text in it i.e logoff then it enteres the text... nope - I don't use IM programs here, all questions/queries should be responded to here :-) you would start a process with arguments for example. System.Diagnostics.Process.ProcessStartInfo thePSI = new System.Diagnostics.Process.ProcessStartInfo("netstat"); thePSI.Arguments = " argsHere "; System.Diagnostics.Process.Start(thePSI);   does this help Basically you create a PSI - ProcessStartInfo, which allows you to ...Show All

  • steveareno Embedded Control Characters

    I am dealing with source files that contain embedded control characters. Can Visual Studio be configured to display those characters as either hexadecimal or octal values in the editor Moving this thread to the VS forum. -Thanks -Tim <MSFT> Thanks Tim, I'm one of those dreaded newbies, at least as far as VS goes. I took my best guess as to where I should ask my question. drd-cw Can you give us an example of the source code you are having trouble with ...Show All

  • ephisians how do i convert a string into an arraylint?

    hi.. i have an array list called students.. i need to add all students in my database into this arraylist.. thats easy but the problem is i need each student to be an arraylist (jagged arraylist)... is that possible ! i tried to do it like this but it didnt work.. if (socketData.clientID == reader.ReadElementContentAsString()) classes. Add((ArrayList)socketData.clientID ); <=== "Cannot convert type string to arraylist" im open for ideas.. peace. Not sure what you're trying to do... " use the class name retrieved from the database to create an arraylist object using the class name " Where do you want to use the class name Andrej what im trying to do is use the class name to decl ...Show All

  • Mykhaylo Blishch Problems with assembly references

    Hi, I am developing a windows service application which refers to the class library A and this class library A refers to my windows service application. I need both references in order to use particular classes. Well there's nothing wrong, except the warning messages I'll get when building the application in VS 2005. ViestienAjastusSovellus.exe (Windows Service) => VAS_RemoteModuuli.dll (Class library) VAS_RemoteModuuli.dll => ViestienAjastusSovellus.exe Here are the warning messages I'll get from VS 2005: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : warning MSB3112: Two or more assemblies have the same identity 'ViestienAjastusSovellus, Version=1.0.0.0, Culture=neutral, ProcessorArchite ...Show All

  • ReneeC Form control properties auto layout feature

    I have run in to a problem, where I want to see the controls in the form will be automatically positioned according to the change of the size of the form. For eg. I have 4 buttons in the four corners of a form when I rezize the from, or grow or shrink by draging the edge of the form I still want to see those four buttons at the four corners. I would like to know is there any property which will automatically taking care of this Pleas give a reply to me. Yes, You can use Anchor property Control( Button ). look in to combinations Top Left Bottom Left Top Right Bottom Right. -Thanks Mahesh I would like to say that your soulution is "Awesome". Thanks a lot Mahe ...Show All

  • Batikit How to integrate dll into exe?

    Hi, i'm using ziplib in my application, but i wanted it to be a single exe file. Is it possible to integrate that dll in the exe as resource or something Thank you VERY much. That's it! I even found a GUI for ILMerge, so it's super easy! Take a look at ILMerge ( example ). ...Show All

  • Peter Ritchie Datagrid from arraylists

    Hello, I have several arraylists with exactly the same number of elements. In a datagrid, I want to display the elements in ArrayList1 as the column names and the elements in the ArrayList2, ArrayList3 etc.., as the rows to the set of columns. I did read threads with similar queries but I am afraid I could not find what I am looking for. This is the first time I am working with datagrids without a dataset and I would appreciate any kind of help on this. Thanks a lot for your time !! make sure that the items in the arraylist have the same number of fields as the datagrid   you simply bind it to the datagrid: this.theDataGrid.DataSource = theArrayList; you will have a problem here. It wi ...Show All

464748495051525354555657585960616263

©2008 Software Development Network

powered by phorum