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

Software Development Network >> Visual C#

Visual C#

New Question

Drag-and-Drop HTML Link
Round to 2 decimal places
Reading files
Placing button on a statusstrip control
Intellisense Failure In VS.NET 2005 TS
Build .net 1.1 solution
Best way to extract from HTMl
How to strip some parts out of a string
writing into *csv file: inconsistent result
Pointer to objects in C#

Top Answerers

stuntpope
teterin
SDavis7813
Paul Bradley
AndersBank
Sugan
Tilfried Weissenberger
Shivangi
dave.dolan
shyma
sitemap
Only Title

Answer Questions

  • Gafrage Interfaces and Abstract Classes

    Hi, I am hoping someone can explain this to me. Lets say I have an abstract class called Employee, from Employee, the following classes are inherited, Manager and Cleaner Can someone explain to me how to incorporate an Interface for this scenario so my application can tell which type of object "Manager or Cleaner" its dealing with Thanks Ok, You may create an interface just called Login to define the login issue (get and set the password etc.). Then all the employee inherited the interface. That's my idea about it. Thank you Hi, authentication method must not be in abstract class, See in my previous post, <authenticationclass or simply common USER class object>.authent ...Show All

  • AlpanaDhole Quick question - typedef in C#

    Hi! I'd like to define my own type in C#. Is there any command similar to C++ typedef You can use "using" to create type name alias. using DWORD = System.UInt32; should do it. But note that the statement is scoped per file. it's explained here, with examples: http://msdn2.microsoft.com/en-us/library/sf0df423.aspx Sorry - that doesn't tell me anything. I tried using uint DWORD; - an error occured Could you give me a code sample how to do this OK - thanks. ...Show All

  • Fluxtah Running C# Commands from a parsed text file?

    Is it possible, say you have your main program, and when it initializes, it will scan this text file, looking and trying to execute all commands that are listed, like running a method inside the program, or if you put MessageBox.Show("",""); In the text file, or is there another way of doing this, I'm not going to make the program only understand commands that I put in it, through a switch statement, or if statements, I want it to directly interpret it. Uhm, I'm not quite sure, I think that I kind of need it to go 'both ways', I was thinking about splitting up some of my solution's work into different .cfg files, to support more modability, so I need the assembly that is  outp ...Show All

  • ExtinctPencil Better than 15.625ms timestamped Mouse-Hook Logging of events

    Hi Folks, Currently I have a Low-Level-Mouse-Hook in place in my program and get all events properly, all nicely timestamped by the milliseconds-since-startup counter. So: I'd think I'd be in the clear. What I observe in my event-log is that the events are grouped each 15.625ms on average due to the system clock resolution (checked to be @15.625ms using www.sysinternals.com 's clockres.exe). How can I get a better resolution there (1ms preferred..) - I tried NtSetTimerResolution from the NTDLL.DLL to no avail.. - I tried running the process realtime and that didn't help either. - I tried the SetSystemTimeAdjustment and again no result Any clues to the why I am about to revert to having some high-performance-counter- ...Show All

  • TomasLeung Unique ID

    The index is not unique for array's items, when you can delete and insert items to your array. There is a class in Delphi which you can search your array by an ID generated and managed by Delphi. How can I set a unique ID to my array's elements in .NET You can use a Hashtable, here you can define you own key. This can be the .GetHashCode() result for example. If you want to create your own ID look into creating a GUID. That way you are guaranteed unique values as the id. To build on PJ's suggestion: string ID = Guid.NewGuid().ToString(); Dictionary< string , string > myHash = new Dictionary< string , string >(); myHash.Add( ID, "This is radio Clash"); m ...Show All

  • MasterG Get system language independent Yes No Cancel Retry Abort string from the system

    How to get the string that represents the "yes" string on the local system. If I use... DialogResult .Yes.ToString() "Yes" is always returned. This is good for English systems. But I want it system language independent. On a Dutch system, it should return the string "Ja". I can work with a resource file, but I think it is possible to get these string directly from the system. But I don't know how. Anyone has the code Thx Adriaan The "Yes" in DialogResult is an enum.  ToString() will always return the name of the enum; which is why you get "Yes"--just as you would always get "Win32Windows" when using PlatformID.Win32Windows.ToString().  Currently that is not l ...Show All

  • M_C Not able to find references in GAc in the reference window of VS IDE

    I have a problem which I need the help you guys figure out. I have to create a dll and deploy the same in GAC. And I need to add reference to that dll I deployed using the addreference window of the VS.net IDE in other projects, but even after I successfully installed the assembly I am not able to see in the refernce list of VS.net IDE. Let me explain the steps I done 1. Created an SN Key . sn -k "c:\Keys\ver1.snk" 2. Create a dll, and in the assemblyinfo.cs, I have given [assembly: AssemblyKeyFile("c:\Keys\ver1.snk")] 3. Deployed the assembly using gacutil -i <Mylocalpath of assembly> . I checked for this assebly name in c:\windows\assembly, its present there, so the deployment is successful 4. o ...Show All

  • Nick Boyd Problems with Foreach

    I am developing a method and I got that error message when I tried to compile: "Foreach cannot operate on a 'method group'. Did you inted to invoke the 'method group' " What can be this This is my code: protected string GetValueList(object ob) { Type t = ob.GetType(); string valueList = ""; bool bFirstColumn = true; //the error was on this foreach foreach (PropertyInfo p in t.GetProperties) { foreach (Attribute att in p.GetCustomAttributes(false)) { DBColumn dca = (DBColumn)att; if (dca != null) { if (!bFirstColumn) { valueList = ", "; } else { bFirstColumn = fa ...Show All

  • CO22006 How do I convert a 4-byte array (of type bytes) into a 4-byte floating-point?

    Okay, how do I convert an array of bytes into the 4-byte floating-point number with the same binary representation What I'm trying to do is, that when I loaded a binary file into memory, I want to be able to set the four bytes of a byte array to some values, and then retrieve the value in floating-point. In C++, this would've been rather easy using pointers, as shown : char buffer[4]; // Set some values to this buffer float* fp = (float*)buffer; // Access the 4-byte array as a floating point cout << "Floating point value : " << *fp << endl; // Print it Now how do I do this without pointers Don't tell me to try to load the floating-points directly from the file, by using some function like ReadDWord. A ...Show All

  • David S. Anderson problem with f5

    hi all vs 2005: i installed plugin for webapplication (different from web site) and i imported my web app from vs 2003. Now vs2005 not build and run always, sometimes i have to close and retry... why thx La purse yo, y me dejo el ordenado jecho unos sorros. Me borrava las cosas y perdi toas las afotos de las titis ensenando las peritas. i download from microsoft site!!! http://download.microsoft.com/download/9/0/6/906064ce-0bd1-4328-af40-49dca1aef87c/WebApplicationProjectSetup.msi based on information you give here I think releveant advice cannot be given as problem could be in Plug-in (this is the first place I would check) and some other software could corrupt VS (other plugins you tried) hope thi ...Show All

  • Daniel_Bowen How do i use the MultilineStringEditor?

    Hi I'd like to use the MultilineStringEditor from the System.ComponentModel.Design namespace in a c# winforms application. My intension is to use it with a propertygrid and a custom class. But i can't figure out how since I can't reach it, it's not the attributes that is causing trouble, the class seem like it can't be found. This is my property which I'd like to change with a multiline edior. [Browsable(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] [Editor(typeof(System.ComponentModel.Design.MultilineStringEditor), typeof(System.Drawing.Design.UITypeEditor)] <-- this row isn't correct public string Value { get { return this._value; } set { this._value = value; } } Jonas ...Show All

  • Daniz panel.visiable's problem..I've to double click then it works

    // in my webpage I put my controls in a panel , when page load I set panel.visable = false. only when botton_click and then panel.visable=true //my problem is panel doesn't appear when I click once. I've to double click and then panel become visiable.. what's going wrong is my problem concern with "post back " I've no idea... P.S... I write panel.visiable while datareader.read() thanks Hi, triple JC :P Yes, it is page_load issue. Because when you click the button, you'll fire the page_load event as well as button_click. thank you again.. yes, I was trying to develope a progrogam for search mamber information so I set 2 panel, one is for showing information once member ...Show All

  • WV John Forcing drawing of layered window/Tooltip issues with layered window

    Hello, My Issue is in two parts: first, I need a proper way to force .Net to draw my form in layered mode all the time, to prevent the form from flickering when I change the opacity (currently I am setting the transparency key to some unused color, which I don't think is very good practice). Second, when I try and display tooltips on a form which is layered, the tooltips appear behind the form, so aren't visible. Any help on this problem would be greatly appreciated. Thanks, Al Thanks Rizwan, The transparency in my application is mainly a usability feature (read: not critical) - it simply fades in windows when they open, and fades them out when they close. The transparency key was to k ...Show All

  • Rui Dias VD differecse between AppendText and Text+=

    What is the difference between: 1) rishTextBox.AppendText("any text"); 2) rishTextBox.Text+="any text"; the second arise a problem but the first dont make the problem. It is a property to work with RichTextBox control instead of Text. In that property you will have a text with all formating and style. There is no difference between them. They should work both. At least for me they do. If the second one gives you an error, what error message does it give then bola shokry wrote: What is the difference between: 1) rishTextBox.AppendText("any text"); 2) rishTextBox.Text+="any text"; t ...Show All

  • Mendip162 how to return null from a constructor

    say, i a m trying to do something like: class something something(streamreader){ if (wrong format or end of file) caller receives null as result else build object from what has been read in file } i tried 'return null', but it says it can not do that since a constructor is 'void', so i can not place a return sentence. i'm not sure something like this.dispose would retunr a null, since the 'dispose' may be asynchronous (or something) i have the next alternative class something blah blah somehting(string) (build object from string, check if string==null or wrong format before calling) static bool checkformat(string) check to see if string is adecuate to build somet ...Show All

272829303132333435363738394041424344

©2008 Software Development Network

powered by phorum