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

Software Development Network >> Visual C#

Visual C#

New Question

Reading from a Select Statement
Winsock2 API - receiving data
Inserting a Record in Access database using tableAdapter with dataset wizard
Centering a button in a form
Vertically Splitting A Code Window, Is It Possible?
Hide/Show form while retaining Info
Add Datarow
Automatic Closing Brackets
Printed .NET Framework Class Library for 2.0
proper constructor chaining direction

Top Answerers

noblgh
Rahul Singla
Matra
mj-imda
Jamie Thomson
Rich S
Giedrius Banaitis
markko52
Harkernator
ivanFSR
Extensible 3D (X3D)
Only Title

Answer Questions

  • Davids Learning Delegates and events

    Hi, I have been playing around trying to get an understanding of delegates and events - I would like to know if there is any difference between how the following 2 lines of code function ie: public delegate void NotifyFrm1 ( Object sender, ValueUpdatedEventArgs e); public static event NotifyFrm1 NotifyFrm1Action; as compared to: public delegate void NotifyFrm1 ( Object sender, ValueUpdatedEventArgs e); public static NotifyFrm1 NotifyFrm1Action; I get exactly the same results by ommitting the word event. thanks -Barb Thanks for the replies I think that is what I was looking for - I don't have any specific code that ...Show All

  • DMAR330 Help required to solve circular dependency problem in vb2005

    I am working on an application design that requires two projects to cross reference each other. I found the excellent Formfactory / Interface example/solution (listed below) on this forum. Unfortunately I am not C# literate. I understand and appreciate the method, but my attempt to convert it into vb2005.net has been defeated by the C# syntax. I would greatly appreciate someone (multilingual) providing a translation into vb2005.net Here is the C# solution: The pattern to solve this is abstract class factory , together with the singleton pattern. What you have to do is the make a classfactory for the forms . This classfactory you can place in your main program, which anyway MUST reference your assemblies, thus it w ...Show All

  • Jamie Thomson GetManifestResourceStream / parsing / stream reading

    Evening folks, I'm making a small addin for windows live messenger, this .dll file will be sandboxed, so i dont have any IO or Inet access.. so the way i'm doing things is like this: I have a file, quotes.txt which is an embeded resource, i can access the file using GetManifestResourceStream heres some code :) Assembly _assembly = Assembly .GetExecutingAssembly(); Stream str = _assembly.GetManifestResourceStream( "StatusMsgChanger.quotes.txt" ); Random r = new Random (); int i = r.Next(16); string str1; str1 = string .Format( "quo{0}" , i); messenger.AddInProperties.PersonalStatusMessage = str1; the text in my quotes.txt file is like this: quo0, This is a quote ...Show All

  • Bollwerk Where is the web site templates ?

    how can i get or load the web site templates back when i open a new Website .(File->New->WebSite ) there wasn't any web site template in "New Web Site" window . just standart c# templates . IIS was loaded . What is the problem Note: I also try "denenv /installvstemplates" ...Not working... thanks for the answer. I tried but it doesnt work :( Then you may be missing the Web applications extension for studio...it is found in the Web Developer SDK. Create a blank solution. Right click on the created solution (or an existing one), one of the options is Add. The next drop down has New Website or Existing Web site which will give you options for web services as well... This threw ...Show All

  • AdeptBlue Gridview question

    Hallo, is it possible ,in a gridview, when you have 1colomn to display data, to aline it horizontal instead of vertical. and so yes,where can i find thes option moving thread as this forum might be more appropriate for your question ...Show All

  • Michael Vanhoutte Storing the row content in local variable.

    How I can store the data from the DataGridView to a variable in another form Form1 form=sender as Form1 ; System.Windows.Forms. DataGridViewRow row; row = form.dataGridView1..........; I was thinking something like this. Can anyone help me I don't understand! I get this code in Form1 And then what to type in Form2 And what I need to return from the dataGridView1 Becuse I cant just return the row. A answer is god, but can you little deeper show me the thing Ok everything is working except the line: return this .OrderuTabula; The error is:Error 1 Cannot implicitly convert type 'System.Windows.Forms.DataGridView' to 'System.Windows.Forms.DataGridViewRow' What I ...Show All

  • Z_ms Retreive the Song information while playing the song?

    I have developed an app that plays music. But, unlike WMP, the song information is missing from the UI. Is it possible to open the file, play it, and at the same time, retreive the Song Title, Artist, Bitrate, etc Thanks, ...Show All

  • mayur8u An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in aotoc.dll

    An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in aotoc.dll Additional information: Invalid key When i am trying to rund the project i got the above mentioned errors Rakesh When i am using TOC control which is ocx control in vb. I have migrated it in vb.net . when i use this in c# project i got this exception. 'System.Runtime.InteropServices.COMException' occurred in aotoc.dll Additional information: Invalid key Rakesh Malik Hi Micheal Taylor , thanks for the help It is solved now. Rakesh Malik Rakesh Malik wrote: When i am using TOC control which is ocx control in vb. I have migrated it in vb.net . when i use this in c ...Show All

  • cbpd86 Error : Rejected Safe Mode Action

    Hi, i am trying to open an existing Excel file using windows service.. the code is as follows : Excel.Workbooks objBooks = objApp.Workbooks; Excel._Workbook objBook; objBook = objApp.Workbooks.Open(FilePath,0, false , 5, "", "", false , Excel.XlPlatform.xlWindows, "", true , true , 0, true , false , false ); when i run this service i get the following error in event log : Rejected Safe Mode action : Microsoft Office Excel. Faulting application excel.exe, version 11.0.6560.0, stamp 4296b6f2, faulting module mso.dll, version 11.0.6568.0, stamp 42e18ef6, debug 0, fault address 0x0003446c . how can i correct this Thanks in advance, Sajitha You can do it with Ol ...Show All

  • lyosha partial classes and access to inherited members

    Hi, I have a situation where I get a class generated from a tool, this class inherits from CollectionBase, this generated class is marked partial. I want to create another partial class for this generated class to add some behaviour, I need access to InnerList defined in CollectionBase. However my new partial class doesn't seem to have any visibility of any inherited members. Any thoughts Slan Gar Make sure you implementation of class in 3rd file is under the same namepsace as of the other 2 and class is market with partial keywor. It must work fine of both conditions are true! Double check it! Cheers ;-) ...Show All

  • Sean Fuller Class accessibility?

    Ok, lets say I make a new project in VS05. I create a button named button1 on a form named form1. Now I create another file and another class (Right Click, Add, Item... C# class). Now I am in another class in another file, but if I do "form1.BackColor" it doesnt work. I cant access the button either. I can also make a variable public int test = 34; Cant access it outside the form1 class either. I tried a lot of things (yes, including putting "public" keywords everywhere) but it wont work. Any ideas Thanks === Edited by AlexTurp @ 12 Feb 2007 11:26 PM UTC=== Both classes are in the same namespace of course. Hi, Thank you a lot for taking the time to answer me. Yet, this is no what I want. Lets forget about files and controls for a s ...Show All

  • Mark Coleman How to invoke command line from C#?

    Hi, I wish to know is there anyway to invoke command line from C# programatically Regards, Leo Thanks alot. One last question. I wish to know if there's actually anyway to actually capture the output result of the command line. Like for example.. normally when my command is end successfully it produce 0 as success. If not it will produce some other error codes [ WebMethod ] public string Monochrome( string FileName, string Output) { String output = "" ; System.Diagnostics. ProcessStartInfo psi = new System.Diagnostics. ProcessStartInfo ( @"C:\magickBatch\monochrome.bat" ); psi.RedirectStandardOutput = true ; psi.WindowStyle = System.Diagnost ...Show All

  • Vamsee Krishna Cancel downloading data from a Sql Db

    Hi How can I cancel/stop this command: adapter.Fill(table) I am executing GetData() in a BackgroundWorker - if it takes too long I want to allow users to quit downloading data. public DataTable GetData( string sqlCommand) { SqlCommand command = new SqlCommand (sqlCommand, connection); SqlDataAdapter adapter = new SqlDataAdapter (); adapter.SelectCommand = command; DataTable table = new DataTable (); table.Locale = System.Globalization. CultureInfo .InvariantCulture; adapter.Fill(table); return table; } Thanks. Hi, You have just to call the CancelAsync() method of the your BackGroundWorker object. HTH. Thanks for th ...Show All

  • re infecta GETTING MORE THAN ONE INTERFACES...

    Hi All, I am not familiar with Traffic Control API yet. I was able to compile and run the code I created using Visual C++. The problems are the following: (1) There're two interfaces enabled (3Com EtherLink XL 10/100 PCI and Intel(R) PRO/1000 MT). When I call TcEnumerateInterfaces, my program only gets information about the first one. If I disable that one, the program gets the second one. Also, tcmon.exe recognizes both interfaces. The code is the following: TC_IFC_DESCRIPTOR InterfaceBuffer[20]; PTC_IFC_DESCRIPTOR pInterfaceBuffer = &InterfaceBuffer[0]; ULONG BufferSize = 20 * sizeof(TC_IFC_DESCRIPTOR); result = TcEnumerateInterfaces(ClientHandle, &BufferSize, pInterfaceBuffer); Question (1 ...Show All

  • George Waters How to use a Progress Bar in my browser.

    Hi I am looking for codes for my progress bar that would be shown below my browser while loading the page. I would also like to know how to do the progress bar while downloading a certain file from the internet to the local machine. Thanks. AFAIK you need AJAX progress bar. MS MVP Sahil Malik has article about this here http://blah.winsmarts.com/2007-1-AJAX_Progress_Bar.aspx Hope this helps ...Show All

737475767778798081828384858687888990

©2008 Software Development Network

powered by phorum