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

Software Development Network >> Visual C#

Visual C#

New Question

best way to read pipe delimited text file?
Run Application
connect SQL server 2005 to Visual C#
Properties.Settings; ArrayList and a custom object
Master volume bar
Error : Rejected Safe Mode Action
suppress the enter key for certain controls
Weird one - Router Death by Vista
How to trigger a window service to start every 10 secs
Notepad syntax higlight code

Top Answerers

Lawrence 007
R Raghu
CSharpShooter
bagjuice
Mark Asztalos
M Parker
stockcrack
MPSIperson
Reindeer
Biju S Melayil
DMOZ Data Importer
Only Title

Answer Questions

  • Worf building project having many main class

    Hi I want to build a project which contains classes each of them having own main method. Is it possible for me to compile the project without specifying starting class(class with main) (i can specify starting class during execution). This is possible with Eclipse IDE used for Java. The starting class is need to be specified only during execution. Could any body help me in this Thanks Natarajan Arumugam. You can create a new class with its own main function and set that to be the starting main and then have that new main call the old ones appropriately, provided they are declared as (or you can change their declaration to be)  public  or internal  (if comp ...Show All

  • suresh babu krishnappa How do I write text to an RTF Text Box

    I'm adapting the UsingMenusStatusStripsToolStrips example (in CS101 samples) which puts some example text in an RTF box and allows a user to type in the box. Instead I have a class that receives text via an IP socket and I want to place this text in the box. I tried adding a public "WriteToForm" method in Form1.cs, but code in the IP listner object can't access this method. Is there a trick to this Thanks Scott Because I am calling this from another object (class). I've created my IP listner object in a separate thread as it just listens for and processes messages. That's works fine. If I remove "static" from the above Form_write method, I get an error at the original call to Form_write - " An obje ...Show All

  • Sanje2v static method - Is there any workaround?

    I think most know we cannot declare a static anything in an interface. However, let's say I have this: public sealed class MyClass { private MyClass(string someText) { m_someModifiedText = someText; } private readonly static m_someModifiedText; public static MyClass Create( string someText ) { string modifiedText= ModifyText(someText); return new MyClass(someText); } private string ModifyText(string someText) { string modifiedText = someText; //do something to modify text return modifiedText; } public static string UsefulText { return m_someModifiedText; } } Now, this "sample" is just to keep it simple, but PLEASE just consider the concept rather than what the ...Show All

  • Sam Gentile MVP - Solutions Arch Importing C++ Express project to C# express?

    Hi, I am new here and I am wondering if it is possible to import C++ express project into C# express ... Best Regards, Johney In short... Managed Code is where a program or other code is not executed directly by a computer’s processor (as most applications are) but instead executed within the context of a virtual machine or other code that acts as an intermediary between the application and the overall environment (memory, cpu, etc). .NET is a platform for building applications in Managed Code, although the term isn’t used as much in languages such as C# or VB.NET as there really isn’t an unmanaged version of either... C++ on the other hand you can build native (unmanaged) applications, unman ...Show All

  • leonlai Running two services in same VSTS project

    Hello... I have created two c# windows services in the same VSTS project. They each have their own installers, and installs fine in the windows service list. I have attached a debugger to the main(), here is the code: static void Main(string[] args) { ServiceBase[] ServicesToRun; // More than one user Service may run within the same process. To add // another service to this process, change the following line to // create a second service object. For example, // // ServicesToRun = new ServiceBase[] {new Service1(), new MySecondUserService()}; // ServicesToRun = new ServiceBase[] { new NetworkWatcher(), new LocalRunner() }; Debugger.Launch(); ServiceBase.Run( ...Show All

  • James Nelson the Second Why doesn't IList have a BinarySearch method

    IList<> does not have a BinarySearch method, but List<> does. Is there any reason for that The reason I found out about IList<> not having a BinarySearch method is because I initially wanted to do a binary search on a SortedList<> SortedList<>. Strangely enough, SortedList doesn't have a BinarySearch() function, so I looked in SortedList<>.Keys. That's an IList, which also does not have a BinarySearch() method. I looked up List<> to confirm, and it does have a BinarySearch() method. I've worked around this using (SortedList<>.Keys as List).BinarySearch(), and that compiles, but I have not tested it yet. So, there might be an easy work around, but I just can't think of a good reason why ...Show All

  • Susand is there a readline library available for c#?

    Hi, For a java project once upon a time I used a version of gnu readline ( http://tiswww.tis.case.edu/~chet/readline/rltop.html) to help with console input. It was very handy as it allowed the user to edit command lines as typed in, use tab completion, use the up arrow to repeat the previous command, etc. Is there anything similar for c# I'm running on the .net 1.1 framework. Thanks, Beth Yes, I had come across the Mono-Readline project too, but my initial impression was that it wasn't quite what I was looking for. I was hoping that I wouldn't have to go down the route of building what I need, although it really shouldn't be too hard to get a mimimal system going. The article was intere ...Show All

  • Jon Uk XML newbie

    I am trying to read all the values under Genre_Country and Genre_Funk. To loop thru each genre...and get the Title and url. Driving me nuts.... < Radio > < Genre_Country > Country </ Genre_Country > < Title > .977 The Kickin' Country Channel </ Title > < url > http://64.236.34.4:80/stream/1075 </ url > < Title > 1.FM - Country </ Title > < url > http://64.62.194.11:8020 </ url > < Title > .977 The Kickin' Country Channel </ Title > < url > http://205.188.215.230:8000 </ url > < ...Show All

  • wanda Don't know what type of issue of My Visual Studio 2005 Team suit IDE

    I got a problem of my IDE. If I create a new C# website project using either File System or IIS project, when the solution was created, I opened codebehind file, the IDE produced a lot of erros for the syntax (by default). when I pointed to that error, it's said "'class' statment must end with a match 'end class'", it seems that the IDE use VB syntax to check my C# codebehind file. Does anyone have had this experience before or any solution I've never heard of anything like that before. What are you default language settings Sorry, I meant programming language defaults. The Default Language Settings is same as windows xp which is English. Yesterday, I tried to reinstall the windows xp, after that I installed V ...Show All

  • silentC chellanging question regarding ports

    Dear All, When I execute command “netstat –na” I am getting following output Proto Local Address Foreign Address State TCP 0.0.0.0:135 0.0.0.0:0 LISTENING TCP 0.0.0.0:445 0.0.0.0:0 LISTENING TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING TCP 192.168.1.116:1035 206.46.110.54:1863 ESTABLISHED TCP 192.168.1.116:2058 223.118.5.140:8080 ESTABLISHED TCP 192.168.1.116:2060 223.118.5.120:8080 CLOSE_WAIT How to know which Application opened which port. Thanks What is the relation of this question to the C# ...Show All

  • Summoner How do i update data from datagrid by using edit,update and cancel button

    How do i update data from datagrid by using edit,update and cancel button. i want to update data shown in datagrid by clicking the edit button in datagrid. i have created a page on which i fetch the data from Microsoft sql database in datagrid.but now i want to edit this data from datagrid by using edit button.So please help with 2 or 3 examples with code and design.And plz tell me about all the steps required to take while design(picking datagrid control and...) through wizard. PLZ help me out to solve this problem. AkashC normally the datagrid is open for edit anyway. But when time comes to delete/update the grid, you need to make sure you create the appropriate commands for the dataAdapter, if you are using one. There are ...Show All

  • RayRayN code

    i want to convert a mathematical expression 0.14 * X / ((M power )-1) in to a C# program........ can anybody help me Just this expression or a user input one hello actually i just wanted to convert the expression into a code through which i can process an array.......anyways i figured i tout..and thanks for your interest. Hi I think this snippet will help :- private void Button_Aswer_Click( object sender, EventArgs e) { try { double X = Convert .ToSingle(textBox1_X_Value.Text); double M = Convert .ToSingle(textBox2_M_Value.Text); double answer = 0; answer = (0.14* X) / ( Math .Pow(M, -1)); textBox3_Answer.Text = answer.ToString(); } catch ( Exception ex) { MessageB ...Show All

  • Liebethal how to convert int to float

    Hi all, I have two variable, count and totalcount, both are integer My result is declared as float, When I perform result = count/totalcount; it did not return a float as it should be. Instead, it return 0 (eg 5/25) How can I convert it to float Thanks Sorry Keyu, but you posted the same wrong answer as was previously posted... int count, totalCount; count = 5; totalCount = 25; float result = Convert.ToSingle(totalCount /count ); I hope this will help. Best Regards, Rizwan aka RizwanSharp Matthew Watson wrote: That won't work Rizawan... totalCount/count will still be calculated in integer precision. The correct an ...Show All

  • Will Merydith reg message box

    hi i do display a message box using message box. show.... but before the message box is gettin displayed i switchover the focus to a excel sheet... as a result of this the message box loses the focus on the form ... so when i do the same validation another message box opens.. so i am having 2 mesage box now... can the message box be focussed using any command I am not sure if this works but try using the Application.DoEvents method before showing the messagebox mecspek ...Show All

  • Ahmed Salaheldin USB read write

    Hello, I am looking for a sample code ( C# , C++ , VB ) to read and write to usb port. data can be binary or ascii , any help is greatly appreciated thanks Michael Even that kind of task is driver dependant because USB devices only work in a host/device sort of interface where the host runs the show and the device responds... in the case of a connecting two PC’s USB ports directly things would fail (aside from the major electrical issues) because both PC’s would try to exert control and expect the other to submit... to get around this problem PC to PC USB cables have a controller within that allows each PC to think that they are in charge... but even this doesn’t get you where you want to be because ther ...Show All

495051525354555657585960616263646566

©2008 Software Development Network

powered by phorum