Software Development Network Logo
  • Microsoft ISV
  • Visual C++
  • Architecture
  • SQL Server
  • Windows Vista
  • Visual C#
  • Visual Basic
  • .NET Development
  • Visual J#
  • Visual FoxPro
  • Windows Live
  • Smart Device
  • VS Express Editions
  • Windows Forms
  • Visual Studio

Software Development Network >> Visual C#

Visual C#

New Question

Why is the C# team allowing this to Happen? and Why do they close threads on the topic?
sgen.exe failed
C++ #define equivalent
File.encrypt method
Query Output in C# differs from output everywhere else
problem in adding an event in the treeview
C# 2.0 RTM compler incompatability with c# 1.1
How to list driver in combobox?
Variable doesn't increment
Calendar

Top Answerers

Jean Philppe HERLOIN
Chrissie1
bluefish.com
DuncanP - MSFT
Arul Ram
_Prabhu Sadasivam
johoja
Michael Mortensen
aniko
Marnix Alsemgeest
Creative Data Concepts
Only Title

Answer Questions

  • appolospb Newb question "Only assignment, call... used as statement

    I am new to C# and trying to implement the "Pretty Good Splash Screen" code from CodeProject ( http://www.codeproject.com/csharp/PrettyGoodSplashScreen.asp ) into C#.Net 2005... I have the code from the website put in and it compiles without error, however when I try to call/use the code (using SplashScreen.ShowSplashScreen) from my Main() procedure, it always returns the error "Only assignment, call, increment, decrement, and new ...Show All

  • nick5454 ScrollBars on MDI Application

    Gday Everyone. I have created an MDI graphics application using VS C# Express Edition. (Love it) To add scrollbars to the Childform I used the code from the local documentation. This code works okay in most instances, but when the child form is first created with the image inplace the scrollbars can scroll past the edge of the image. The horizontal direction is worse than the vertical direction. Couple of images show the problem http://wicked.f2 ...Show All

  • jerrydoe How to get the path of a process

    how can i get the path of a process for example : The process Name: explorer.exe The process Path: c:/windows/explorer.exe It's not perfect, but you can try the registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths HTH, Process [] processList = Process .GetProcessesByName( "explorer" ); foreach ( Process theProcess in processList) { Console .WriteLine( "Name: {0} Path ...Show All

  • AjayG how to convert array into an array of bytes?

    Hi, I'm busy in C# trying to send an array (of string) structure from a server to a client app. I cannot find anywhere how to do this. Im using sockets to do this. but there isnt any method to convert the array into byte[]. Any suggestion would be appreciated. Hey, Im not sure if this would be the best solution for you or not, but you could serialize the array, send it over te server and deserialize it on ...Show All

  • kaku Mohanty How to create a base class windows Form?

    Hi All, I wanted to created a windows form with functions that are reusable.  For example, creating a function to connect to the SQL server and validate user's name and password or insert record to SQL Server just by calling the AddRecord function. TIA For example, try this: public class BaseForm : Form {     public void MyMethod()    {       MessageBox.Show("Hel ...Show All

  • foxxjnm datagridview / cells and rows

    hi, i need help, how can i get the value from a particular dgvcell if i'll select the entire dgvrow and how to auto-select a row oh yeah. . . if your grid is bound to a binding source which is inturn bound to an IList, at any given time, BindingSource.Position will return the index of the currently selected item in your IList BindingSource.Current gives the actual selected item though you will have to cast it to the particular i ...Show All

  • BayerWhite Yield null

    I apologise if this has already been answered; passing null to a yield method seems to skip the method entirely. The following code does not print out anything to the console, nor does it throw an exception. [Test] public void CallMe() { Foo(null); } private IEnumerable Foo(IEnumerable i) { Console.WriteLine("Called!"); foreach (object t in i) { yield return t; } } Moving the ...Show All

  • roel_1984 debug inside callback method

    Does anybody know how to debug inside a callback method I need to debug inside MyMethod() in the following example. Is it possible at all Thanks in advance. e.g. ThreadPool.QueueUserWorkItem(new WaitCallback(MyMethod), pw); private void MyMethod( object status) { IProgressCallback callback = status as IProgressCallback ; for ( int i = 0; i < 10 ; i++) { callback.StepTo((i + 1) * 10000 / 10); .. ...Show All

  • Khalid Omar help me (dll problem)

    i have made a WindowsControlLibrary (dll file) (i made a winform and then copyed every thing (almost) to the control ) but every time i try to load it with asp.net nothing happens the asp.net file : public class WebForm1 : System.Web.UI.Page { private void Page_Load( object sender, System.EventArgs e) { Assembly a; a = Assembly.LoadFrom(@"C:\saa1\vc#\WindowsControlLibrary2\bin\Debug\saa2.dll"); Type t = a.GetType("WindowsContro ...Show All

  • ssunnergren Download file(MP3) with progressbar

    Any sample(s) online (I don't need to stream it)   private bool DownloadFile( string sURL, ProgressBar pProgress, string Filename) { System.Net. HttpWebRequest URLReq; System.Net. HttpWebResponse URLRes; System.IO. FileStream FileStreamer; byte [] bBuffer = new byte [1024]; int iBytesRead = 0; try { FileStreamer = new FileStream (Filename, System.IO. FileMode .Create); URL ...Show All

  • ******* Console window keeps closing itself

    Hello, I'm a newbie to Visual C# and I am trying to create the dirt simple "Hello World" sample as a Console Application and when I run my program the console window blinks up then disappears...it closes itself. Anyone know what's going on here To debug, I set a breakpoint at my " static void Main()" line and the code starts, a blank console window even appears but as soon as the program executes the " Console .WriteLine( "H ...Show All

  • popson simple editor using webBrowser control

    Hi, I am working on an editor using the htmldocument in the webbrowser control. This is my code for testing out its capability: private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { htmldoc = webBrowser1.Document; htmldoc.ExecCommand("EditMode", true, null); } private void webBrowser1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e) { // proces ...Show All

  • ARNE_AU Adding multiple records into a database from a list box selection.

    I'm trying to figure out how to get what is selected in a list box to be added to the database, but as a seperate record for each item. Here is what I have so far, but when I compile I get an error that "Listbox does not contain a public definition for 'GetEnumerator'. Has anyone done this before or know how to do this Thanks for all of your help protected void btnAddUsers_Click( object sender, EventArgs e) { foreach ( Li ...Show All

  • Garfiled Unmanaged Code (written in C++) Interop with C#

    Hi, I am trying to write a wrapper in C# for the unmanaged code written in C++. Whats wrong in the following code. C++ (Unmanaged Code) extern int DllExport __stdcall GetName( LPSTR name) {    name = "Smith, Allan";    strcat( name, "\0");    return strlen( name); } Wrapper Definition (Written in C#) [DllImport("Unmanaged.Dll", SetLastError=true, ThrowOnUnmappableChar=true, EntryPoint="GetName)] pu ...Show All

  • ISantos Transfer the value of a text box from one form to another.

    I want to be able to have the value of the text box in one form populate a text box in a second form when it opens.  Can anyone help me with this. How would I do this This is a solution but I'll encourage you to provide a property and return the string of the text instead making the control a public field. The reason for this is improving the encapsulation of your code. ...Show All

293031323334353637383940414243444546

©2008 Software Development Network

powered by phorum