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

Software Development Network >> Visual C#

Visual C#

New Question

Cannot access a disposed object?
VB.NET 2.0 to C#.NET 2.0 (Help Please)
c# method, event wizard
overloading == operator in c# fails checking for null values
testing for an unitialized, or null, object
how can I call a procedure stored in a form from a fifferent form?
saving as a 16color gif
RadioButton
Wrong overload being called
How to use the controls from another form in form I working in.

Top Answerers

Damian Otway
Thu Thu
RoobyDoo
Doogshnooglis
Mark Goldstein
globelin
sloth77
Federico Poggio
Cilieborg
raylee
sitemap
Only Title

Answer Questions

  • eldiener StreamWriter or StringBuilder? to a text file

    Can someone advise on how I should build this. the requirement is to build a text file from a table (1500 rows & 15 columns) I need to loop through the rows in a table adapter based on a parameter and for each row in the table adapter I need to write each column of each row into one text file. thx in advance http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconWritingTextToFile.asp It would probably be easiest to use StreamWriter because all you are doing is creating a text file. ...Show All

  • skuehner help with "Error : No overload for method "FillByGlkco' takes '2' arguments."

    I'm am trying to programm an event handler that locates the user-specified GLKCO value, however I recieve this error : No overload for method "FillByGlkco' takes '2' arguments Below is the code that I have written, I am completely stumped and have no idea what to do. Any help will be greatly appreciated. Thanks to anyone that is able to help me. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace DatabaseManipulation { public partial class DatabaseManipulationForm : Form { public DatabaseManipulationForm() { InitializeComponent(); } private void f0911BindingNavigatorSaveItem_Click(object sender, Eve ...Show All

  • StephenMas closing an application from a command line

    Hi guys, I was wondering if there is a way to close a csharp application from outside the application so that it will still raise the form.onclosing() events. Basically, I don't want any signs of this application to appear on my desktop, so I cannot close the program from the taskbar. I also cannot close the program from the windows task manager, because this will not raise the form.onclosing() events. I'm wondering if there might be a way to do it otherwise, like from the command prompt or run bar. If anyone has any good solutions or alternate suggestions, it would be greatly appreciated. Thanks. Well, I know the answer isn't no, because I've been thinking about it and you could do this by having the application make systematic ch ...Show All

  • faizalism how to create an object duplicate

    Hi I show a form with: myForm.show(), then in myForm I create _customer object of type CustomerEntity . I want _customer object to be a copy of account.customer object, which means, I want to be able to modify _customer without modifying account.customer . Is there an easy way to do that, knowing that customer class is a business entity class that Implemented myself. Thank you for helping me learn. MemberwiseClone is a protected member of Object, so it can only be used within your class (you don't need to create another derived class, remember all classes derive from Object, so they'll have access to MemberwiseClose). The recommended approach is to implement ICloneable: class Cloneable : ICloneable { priv ...Show All

  • Uncle Dave Cast Problem with ArrayList.ToArray()

    I am using an ArrayList (stuck in 1.1 land) to build an array dynamical, but because it needs to be serialized (and therefore typed) I am converting the completed ArrayList to a typed Array[]. Here is code that works: enrollment[] manifest_final = (enrollment[])manifest.ToArray(); And here is code that give an Invalike Cast error: ( enrollment)manifest[ i ]).lectures = (eLecture[])((enrollment)manifest[ i ]).tempLecs.ToArray(); The second line deals with an arraylist 'tempLecs' inside each enrollment object. I don't know if that scope is part of the problem. Does anyone have any ideas Thanks in advanced! Andrew Hi, do you have the exact error message from the exception Mark. ...Show All

  • Elizabeth Bradley know if a file is in use

    Hello, I'm trying to write a file and my program fails because the file is in use. I get the following error: Could not write to output file 'c:\temp\MyFile.txt' -- 'The process cannot access the file because it is being used by another process. Is there a way I can avoid this error, and ask before trying to write the file if it is in use or not Thanks, in fact I'm not using FileStream, or any other class of the System.IO. Of-course I can catch the exception but I don't want my code to be based on exception. I'm asking if there is a way to know if a file is locked by another process – unrelated to my code As I said before, the way to do this is to attempt to open the file and catch the exception. I unders ...Show All

  • progames25 How to Catch OnPageNew Event in C#?

    Hi, I need to know how to know when a new MySite page in creating, is this posible an if it is How ...Show All

  • jomunoz Hook and unhook and event using delegate

    Q1. Is it possible to check if an event is being hooked for eg. cbxXXX.selectedvaluechanged += delegate { .....;} Any way to check the above event is being hooked Q2. How is it possible to unhook the above event once hooked i tried -= but it doesnt work correctly. Thanks Regards Alu Yes, you can. This way you'll avoid hooking the event twice and it does not raise an exception if the even was not already hooked. However, I'd say that you should not make this a "programming practice". You should have other means to prevent hooking an event twice if possible and reasonable. well in that case this means i have to be careful when the application load initially and m ...Show All

  • Jamie Thomson storing values between two forms

    Hi, IS there away to store values between forms, without using Viewstate, sessions, or cookies, //A class: public class BaseClass : System.Web.UI.Page { private string test = ""; public string A { get { return test;} set { test= value ;} } } my first webform1.aspx private void bt_c_Click( object sender, System.EventArgs e) { BaseClass bc = new BaseClass(); bc.A = "hello world"; Response.Redirect("WebForm2.aspx"); } after it redircts to webform2.aspx and when I try to print the value: The value is blank, why is that BaseClass bc = new BaseClass(); Response.Write("-------<BR>"+bc.A); Thank ...Show All

  • Matthijs Koopman How do i visualy design a unique button?

    I draw 3 pictures of a round button. Can i integrate them in design time, or its posible only by catching events You can create a class that derives from Button, and either override OnPaint or handle the Paint event. If you don't want a rectangular-looking button you can set the Region property to the shape you want to see. See Control.Region Property for example of creating a circular button. You mean you want a button with a custom paint routine at design time If you create your own class that derives from the Button class, and set up your paint routines, you should be able to use it in the designer like any other button (although it doesn't work as automatically in older versions VS.NET). ...Show All

  • WinFXGuy Saving User Settings on Version Update

    Hi All! The new feature using which we can save user settings in the Settings.settings file is great and very easy to use. What I want to ask is on the assembly version update it null and voids the previous version user settings, my requirement is to use those settings in the next version as well. Like I take DBName, uid, pwd from the user on the first version and save it into the user settings (they need to be in the users settings as they change for each user), when I through an update on them, I'd like to retain those user settings, but they are unsaved and those settings are blank. How can I recover them in c#, so that I can continue to use them in the next version as well I need this urgently to solve my problem, hope you peo ...Show All

  • David N.4117 Code alignment lost

    I prefer to have my code aligned in such a way that a straight-forward edge detection results. For example (from a .Designer.cs file): private System.Windows.Forms. Label prefix_LAB; private System.Windows.Forms. TextBox prefix_TBX; private System.Windows.Forms. Button retrieve_BTN; private System.Windows.Forms. Label user_LAB; private System.Windows.Forms. TextBox user_TBX; However, if I cut and paste the code, I obtain private System.Windows.Forms. Label prefix_LAB; private System.Windows.Forms. TextBox prefix_TBX; private System.Windows.Forms. Button retrieve_BTN; private System.Windows.Forms. Label user_LAB; private System.Windows.Forms. TextBox user_TBX; Problem: I want to keep the automat ...Show All

  • Speedie can dll know which exe is running it?

    Hi experts, Can dll know which exe is running it I'm having a dll which can be used by several hosts. I need to find in the dll code the name and location of the host that is running it. Is it possible Thanks, Avi Change GetCallingAssemly() to GetEntryAssembly() and you will get which assemly was the first to be executed in the appdomain, that is usually the executable file. http://msdn2.microsoft.com/en-us/library/system.reflection.assembly.getentryassembly.aspx Hi, I know a way to know the calling exe but you need to test it. Here is the code : Assembly callingAssembly = System.Reflection.Assembly.GetCallingAssembly(); HTH. ...Show All

  • Ofir Epstein Solving Systems of Linear Equations

    Ok .. I need to solve for F and A in this problem below. The question is how do you program that Equation 1: 190 = (F/2) + A Equation 2: 169 = ((F/2) – A) * -1 BTW I worked it out with pen and paper (Substitution Method) the answers are: F=21 A=179.5 Thx again guys ... been a really big help! -Avotas You can find the answer in pretty much any book that explains matrix math. With only two equations, look up “determinants”. For more than two, look up Gaussian decomposition. For a zillion equations, it gets a little more specialized… Anyone Hi Avotas, are you looking how to solve linear equations in general, or just for the speci ...Show All

  • Leomath scheduling a windows service to run at a particular time..

    Hi, i have created a Windows Service in C# .NET . it should start running automatically at 8.30 PM daily. how can i schedule this i think i can do this by adding this Service to Task Scheduler available in Windows 2000/NT etc. but i want to know whether i can do the same without using Schedulers ie setting some properties of the Service.. pls help me. Thanks in advance , sajitha jose No you will have to use the scheduler. But then again if it is a service it should probably be started and running at all times. That is the primary purpose of a service. If you simply want to run an app at a specified interval then you could create a console app and use Scheduler. Is there any reason why you need it to be a service ...Show All

456789101112131415161718192021

©2008 Software Development Network

powered by phorum