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

Software Development Network >> Visual C#

Visual C#

New Question

How do i use the MultilineStringEditor?
Print dialog coming again and again while using FAXCOMLIBEX.....
Application design question - data downloads from internet
Create a folder with permissions set to This Folder, subfolders
Variant in C# ?
Chr (VB.NET) vs char (C#)
Creating controls at runtime vice dropping Controls at Design Time???
xml node creating
How to insert a paragraph?
writing into *csv file: inconsistent result

Top Answerers

jim-
kevinj
ebeofrei
mirolslaw
robinjam
Bfundy
Luis Esteban Valencia Muñoz
Ajay Suri
nishanttheone
sarashare
sitemap
Only Title

Answer Questions

  • jules_newbie Issue with ConsoleTraceListener and Web projects

    I'm writing a log system based on MS Enterprise Library logging solution, and I' trying to make use of the built in ConsoleTraceListener in .Net. Now, it basically works in windows environment, but doesn't work in a web environment. From what I understand this is because Cassini (the built in debug web server is VS2005) doesn't have a console you really can write to. That's all fair, but I really find it odd that you can write to the debug console with Trace.WriteLine(...), but calling base.WriteLine(...) (where base is ConsoleTraceListener) nothing shows up. Why is this happening I can't help to think that ConsoleTraceListener and Trace should use somewhat the same mechanics, but can't really pinpoint what the difference is. I'd like to u ...Show All

  • HilliMonster What is "\n"? Any difference from "\r"?

    I know "\r" indicates a sentence break. Then what about "\n" HtmlText = HtmlText.Replace( "\r\n" , "\r" ); HtmlText = HtmlText.Replace( "\n" , "\r" ); HtmlText = HtmlText.Replace( "\r\r" , "<p>" ); HtmlText = HtmlText.Replace( "\r" , "<br>" ); In the above line, since "\r" is to changed into "<br>", why should not directly change "\n" and "\r\n"directly into "<br>" http://west-wind.com/weblog/posts/1499.aspx if you are asking why it does not automatically convert to <br>, its because its not an ...Show All

  • airwalker2000 Sorting 'complex' objects...

    Hello all, Just say I have an arraylist of objects (all of the same type) and say these objects are 'Person' objects. So each person has instance variables. such as firstname, surname, etc. I wish to sort this arraylist of person object references by surname. What is the easiest way to do this Thank you Chris Hi, You need something like this: SomeFunc () { m_data . Clients . Sort ( CompareClientsByName ); m_data . Clients . Sort ( CompareClientsByAge ); } int CompareClientsByAge ( Client c1 , Client c2 ) { return c1 . Age - c2 . Age ; } int CompareClientsByName ( Client c1 , Client c2 ) { return c1 . Name . CompareTo ( c2 . Name ); } Charles ...Show All

  • ggsubscribe Appsetting!! am I doing it right?

    basically, I need to save two strings for my app (Upload and Download) so I can retrieve them on app startup. what I did, I created a setting file under project properties. This is how I save and load them: //to save the settings private void button2_Click( object sender, EventArgs e) { Properties. Settings .Default.Upload = tbUp.Text; Properties. Settings .Default.Download = tbDownload.Text; Properties. Settings .Default.Save(); Properties. Settings .Default.Reload(); this .Close(); } //to load the settings private void frmOptions_Load( object sender, EventArgs e) { tbUp.Text = Properties. Settings .Default.Upload; tbDownload.Text = Properties. Settings .Default.Download; } I ...Show All

  • Shobha69358 Group Policy

    How do I access Group Policy Objects programmatically For example I want to get a list of OUs. Cheers Good article. Thanks for the reference. you are looking at using perhaps the DirectoryServices classes/namespace. take a look at this and see if it helps you: http://geekswithblogs.net/mhamilton/archive/2006/07/15/85303.aspx ...Show All

  • Chris Honcoop BYTE in a UNICODE world

    I am reading a binary file into a byte array. I need to spawn a process via ProcessStartInfo class and pass this byte array to this process via redirecting its stdin to my program. So far no problems. Unfortunately, the StreamWriter that is used to send input to the spawned process (the write () function of Process.StardardInput) is via a string and/or char which are both unicode (it actually has 20 overloaded functions for all kinds of data types but the two applicable to me are string and char []). The text I am tryinig to send to the program is decrypted messages in binary format which when translated from byte to unicode string or char[] is losing some of its high ASCII values (> 128). Is there a way to send a byte array (or a ...Show All

  • katokay CS0012 (missing assembly reference) but assembly is referenced!

    The solution compiles fine, but when running I get a CS0012 error.  The supposed missing reference is indeed referenced.  This started occurring when added some implict operators...here's the scenerio: in namespace CompanyName.Whatever1 there is a class called X; in namespace CompanyName.Whatever2 there is also a class called X.  These two classes our highly coupled (purposefully) but *are* indeed seperate objects (let's not get into this design, it's a problem that's being addressed).  Anyway these two 'X' object have to be pretty interchangable so we're using implicit casting.  This is all fine and well, and again works fine, but now at runtime when you go to create an instance of Whatever1.X you get CS0012 ...Show All

  • Jeff Williams Timer Question

    I have a form with 2 buttons on it. Click on each button will launch their own methods. Let's say they are: button1_click button2 _click Now I want to add a timer to my form, and at specified intervals I would like the timer to launch each method, but I would like it to be as if I had clicked the button at that time. The reason is that I use a backgroundWorker, and I need my progressBar to still be able to update. Thanks for any help, Russ Hi Russ, if you want to trigger the buttons' click event from code, try invoking their PerformClick() method: private void timer_Tick( object sender, EventArgs e) {     button1.PerformClick();     button2.PerformCli ...Show All

  • PabloWablo Syncing data - locking a public property?

    Hi folks, I have a public property (generic Dictionary) which contains some instances of a custom class (myCustomObject). this custom object also has some aggregations which also has some more aggregations -> a tree heirachy. Now, i have some threads which need to access the objects in the generic dictionary (hence the property is public). Q1. Can i put a lock keyword in the getter and setter of the dictionary property Q2. If i need to access something within the object (eg. some aggregation) do i need to lock the object still Here's some code to help explain what i'm thinking - i'm not sure if this is the correct concept or not... Dictionary<Guid, MyCustomObject> dictionary = new myCustomObject<Guid, MyCustom ...Show All

  • hgamauf Need Help in developing MS WORD like application

    Dear All, I have seen applications that has tool bar, with different buttons which are same like MSWORD 2003 look like, and when click on one button suppose table button , a list popup which also same like MS WORD 2003, and there are increase and decrease indent buttons, center align, lift align or right align buttons, and its functionality is also same like MS WORD. I want to implement such functionality in my own application, but remember please don’t refer me to MS Visual Studio Tools for Office Development, show me some other way by which I could do so. Refering me to code for downloading office like application will be highly appretiated. thanks I want that there be  create t ...Show All

  • Andrew Mercer Use function from DLL file

    Hi, I'm a beginning C# programmer and I'm writing an earlier written program(c++) in C#. I have a DLL file called K8062D.dll which has following functions: StartDevice Opens the communication link to the K8062 device StopDevice Closes the link to the K8062 device SetChannelCount(Count) Sets the maximum DMX channel in use SetData(Channel, Data) How can I call these functions from C# Best regards, Yannick I found that "USBm.dll" makes the compiler much happier. Thanks, Mike Copy K8062D.dll in release or bin folder where your program's output is generated then write a class like: using System.Runtime.InteropSe ...Show All

  • ekb0211 Apply Button On Modal ShowDialog Form

    Hi all, Let say I have two forms. One is the Main form. Another is the Options form. My Options form is called by the Main using ShowDialog() command. I have an apply button on the Options form that allow user preview / apply the Options that they had set without closing the Options form. The is another OK button on the Options form. The OK button will Hide() the Options form. Then, it will execute the "ANOTHER CODE REGION". That is what I wish to do without hiding the Options form. Is it possible with the ShowDialog() function frmOptions frm = new frmOptions(); frm.ShowDialog(); // ANOTHER CODE REGION that draw something on the main form. Thanks in advance. Hi Leonard, A form is a top le ...Show All

  • paso Design Suggestions

    I want to assign my properties to values in my database using the sqldatareader...what am i doing wrong...the compiler tells me that my properties are read only...take a look please! private bool _IsNew = false ; private int _CustomerId = -1; private string _CustomerCode = ""; private string _Class = ""; private string _LoadType = ""; private string _VehicleType = ""; private string _TermNumber = ""; private int _Status; private string _Commodity = ""; private string _Name= ""; private string _Address = ""; private string _City = ""; private string _ZipCode = ""; p ...Show All

  • David Sadler Interop Declarations problem

    Hello, In my c/c++ header file there exists these parameters. /* ErrorCode */ extern __declspec(dllimport) char * HL_ADAPTIVE_VIEWPORT; extern __declspec(dllimport) char * HL_BACK; extern __declspec(dllimport) char * HL_BUTTON1_STATE; extern __declspec(dllimport) char * HL_BUTTON2_STATE; [DllImport("hl", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)] public static extern string HL_ADAPTIVE_VIEWPORT; I can freely change string to whatever I choose but thats not the issue, the issue is that I cannot extern or use DLLImport for anything else other than a Method These are usually constants. But how can I dllimport those constands from the DLL File I have checked the DLL Function Name Address Relat ...Show All

  • dilit Tabcontrol - controls visibility

    Has anyone ever seen this and/or have a work around The Parent form has a toolbar button that when clicked calls a method on the mdi form. The mdi form has a tab control, that has controls that need to become visible = true and visible = false depending on which tool bar button the user clicks. In my tests, this worked fine. However in the actual app, I cannot get it to work.. Here is the code that is not working; do you see a problem private void toolStripButton3_Click( object sender, EventArgs e) { // View Commission Schedule Button Click mdiform.ViewCommissionSchedule(); } // code from midform -> public void ViewCommissionSchedule() { // View Schedule - fired by parent form toolStripB ...Show All

91011121314151617181920212223242526

©2008 Software Development Network

powered by phorum