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

Software Development Network >> Visual C#

Visual C#

New Question

Grant Full acces to a folder for all users....
How many threads should a process possess?
Timer Interval Problem
Serial Port problem v2003
How can I dock my form on the top-right side of the desktop?
Memory Usage
Changing selected callback function
Extensive Generics Problem
Commandline arguments question
assembly file

Top Answerers

Latso
Nfrf
Chris Haas
André_Silva
Jason Wilborn
Goat Spirit
Jari Lampinen
gabit7
Kushu
Mike1966
sitemap
Only Title

Answer Questions

  • Ninja Pirate WYSIWYG HTML Editor

    Hi All I'm looking to create an application which enables the user to create PHP/MySQL (and eventually ASP/MSSQL) driven websites with just a few simple steps. Part of the application will obviously be some kind of WYSIWYG Editor for the look and feel of the website. I know there are already quite a few open-source HTML editors out there, but I need to customise this quite a bit, and I also feel it would be a good exercise for me to improve my programming skills if I program it myself. What I need is someone to tell me roughly how to start off and what steps to take. I'm not asking for detailed descriptions of every little step (and I'm sure most of you out there don't have the time to give them). I'm assuming to write the control, I'll ...Show All

  • ToddOs Calling methods across classes

    How can I call methods in my main Form class from another class (that is in the same namespace). Basically I have a method in my main program class that writes to a multiline textarea. I want some functions in another class to be able to call that textarea method in the main program class. Is this possible How can I expose the method Im kinda new to c# Yes, but first you need to do 2 things: The calling class needs a reference to your main form You need to expose a method or property on your main form to allow the text to be written   czell wrote: How can I expose the method Im kinda new to c# When I say "expose a method" I mean create your own publicly visible method that is accessible to any types t ...Show All

  • AKW2006 a quick question regarding viarable scope

    In the scope of a "button click" event, I declared a string variable "result". In a for loop within this event, I tried to access "result' but with a compiling error " use of unssigned local variable". My question is: Why "result" is not visible in the for loop Thanks. Codes: private void btnGo_Click( object sender, EventArgs e) { string result ; Point newPoint = new Point (1, 1); Circle newCircle = new Circle (2, 2, 0.5); Cylinder newCylinder = new Cylinder (3, 3, 0.5, 4); Shape [] newShape = new Shape [3]; newShape[0] = newPoint; newShape[1] = newCircle; newShape[2] = newCylinder; for ( int i = 0; i <= newShape.Length - ...Show All

  • Bhavitavya B Use of string.copy() ?

    I know what string.copy() does. It creates a new copy of a string not a reference when you assign one string to another.... and I can see potential uses when you do string manipulation function... but I have a co-worker that uses string.copy() on all functions and properties that pass string value: example: public string DBSUser { get { return string.Copy(mDBUser); } set { mDBUser = String.Copy(value); } } Can someone point me to some reading about string.copy() and potential uses I'm a bit confused. If you run the below code, object, x, of type DoStuff has a member variable that is usable after x's destructor was called. This makes me believe the x is not dead. Is it I ...Show All

  • Metaferia How to raise an event

    I have two forms form1 and form2, when i click a button in form2 I want form1 to do something only if a button in form2 is clicked....How do i set up basics for an event to take place in this manner any help... you need to declare after the delegate declaration: public event RemoveItems OnRemoveItems; then you need to pass a reference of this class (the one that has the events declared) to the other class in the constructor of the other class (as shown in my example) and then in the other class, create an instance/subscribe to the event (again as shown in my example) and then can you raise the event :-) You are right Ilyas, I agree that it will be bad design! Best Regards ;-) ill try my best but won't promis ...Show All

  • davco Auto Complete Path And Filename on Console

    Hi all, How can I enable the Auto Complete Path And Filename on C# Console This is due to that my C# console requires me to type in directory path name.... I would wish to use Tab to AutoComplete on the Console if possible on C# Console. For more explanation on Auto Complete Path And Filename on Console, please look DOS Auto Complete Path And Filename. Thanks in advance. This is a feature of the command interpreter. To replicate this feature you'll need to monitor for keystrokes (Ctrl+F, Ctrl+D, whatever) and when typed do a search in the current directory for any matching file(s) or directory(ies). If one is found then you send the file/directory name to the console. Otherwise you do nothing. You'll ...Show All

  • Javahar namespace question

    I'm new to .net and have a very basic question about namespaces. I'm using Visual Studio.Net 2003 and created a web application project using the namespace "compass" I created my startpage index.aspx in the root directory. So, when I debug and test in the browser the url in the address bar shows: http://localhost/compass/index.aspx Now, I created a sub directory "About Us" to hold the appropriate files for that section of the website. I created a webform "index.aspx" for that directory. I have an xml file that defines my site navigation. So, the url to the 'about us' section would be: /about_us/index.aspx However, when I try to view the page in my browser: http://localhost/about_us/ ...Show All

  • michaelp root node should not be expanded at page load

    Hi.. I have created a treeview in asp.net using c#. But the problem is all the nodes are expanded when the page loads. In Treeview control, when the page loads, the tree should not be expanded. Only when the user clicks on the root node the child nodes should be seen. There are subchild nodes for the child nodes and they should be expanded only when the user clicks on the child node. How to implement this in asp.net using c#. Please help Change the ExpandDepth property of your treeview control from "FullyExpand" to 0. Did that solve it Hi.. Thanks for the reply.. I tried that.. but that didnt solve the problem ...Show All

  • AnthonyUK NO error, but I got only part of what I want to get.

      No error was complained! The following program is to write a whole year's month,day,weekday in a MSSQL table. But somehow, for many times I have tried, but each time I got only part of what I intend to get: the whole year with 12 monthes, instead, I only got 3 or 4 months' content in the table. Can anybody tell me why   calendar.dll using System; using System.Configuration; using System.Data; using System.Data.SqlClient; using database; namespace calendar {     public class calendar     {          private int _nian; //year          private int _yue; //month          ...Show All

  • Taurkon Unmanaged c++ dll in C# passing char* buffer

    Hello, I have a small problem that i don't know how to solve ok here are the codes by example and then i will explain my problem. this is the original c++ dll that i have and it contains a lib so i made a c++ wrapper without the lib file original decalartion was __declspec(dllimport) int _stdcall PS101WriteReadString(LPSTR lpOutBuffer, DWORD dwOutBufferSize, LPSTR lpInBuffer, DWORD dwInBufferSize, DWORD dwWaitTime) so i made a wrapper in c++ that uses lib and the dll provided K1200_API int K1200WriteReadString( char * lpInBuffer, DWORD dwInBufferSize, char * lpOutBuffer, DWORD dwOutBufferSize, DWORD dwWaitTime) { return PS101WriteReadString(lpInBuffer,dwInBufferSize,lpOutBuffer,dwOutBufferSize,dwWaitTime); ...Show All

  • KluchCode How can I find whether the current thread is exited or not?

    Is there any property or method is available for checking whether the current threading is exited or not. If so can you place provide me the code snippet and some of the useful tutorial & samples links for learning about this concept. Is there any property or method is available for checking whether the current threading is exited or not. Asking if the "current thread" is exited, is very much like asking "Am I dead " If you can ask the question, you are alive. I am not dealing with multiple processes. I am dealing with a multiple functions in same application. Here is my usage scenario. I have been creating a project that checks whether all the projects in given directory ...Show All

  • Hardrock302 Trying to send a string to a button click event

    Hi there, I have an array of buttons created at runtime on my c# page: public class args : EventArgs { public string idVideo; public args( string idVideo) { idVideo = idVideo; } } //code here etc this is in a function Button [] bt = new Button [10]; for (int i=0;i<10;i++){ bt = new Button (); bt .Text = "Transfer Video" ; args a = new args (idVideo); a.idVideo = idVideo; bt .Click += new EventHandler < args > (TransferVideo); //should this be new EventHandler(TransferVideo,a); This throws the same error GridView1.Rows .Cells[0].Controls.Add(bt );} //more code public void TransferVideo( Object sender, EventArgs a) { ...Show All

  • daimaku go to definition

    In VS2005 when Goto Definition displays a source file (from metadata) ie from an external dll, is there any way of telling which dll the metadata is from In VS2003 the could tell the dll from the object browser. I don't understand what the Object Browser would tell you that the metadata in conjunction with your Project References listing wouldn't... Hi, Object browser still shows for VB 2005 projects. For a quick look in C#, you can hover your mouse cursor over the code window's tab and wait for tooltip to show up - it might give you some more information about where the class came from... Andrej I'd think one (or a combination) of ...Show All

  • Madmax71 exception on eventhandler SelectedIndexChanged

    private void ComboBox1_SelectedIndexChanged( object sender, EventArgs e) { // ComboBox take data from a BindingSource this .TextBox1.Text = this .ComboBox1.SelectedValue.ToString(); } Why this code generate an exception NullReferenceException when closing the MainForm if I make this.. this .ComboBox1.SelectedIndexChanged -= new System. EventHandler( this .ComboBox1_SelectedIndexChanged); the exception is not generated but I haven't the event that I need !!! Can anyone help me Thank all. IanG wrote: I would expect the reason is that there is no selected item when the form closes. SelectedValue does two things. First, it retrieves the curren ...Show All

  • JasonG271009 Custom Business Objects as Data Sources

    I've built a class library and it builds fine. I go into the Data Sources of my client windows application but it doesnt appear in the data sources object list even though I've referenced it. I've done a couple of tests with building dummy class libraries and I get this problem intermitantly. I'm new to C# and so I think it could be something I'm doing wrong. Can anyone point me in the right direction. grnr_r wrote: On the classes I wanted to expose as custom business objects, I hadn't defined the class as Public and with the way the Data Sources window works if there are no public properties in the business classes then the project won't appear as a data source. In my project I did have public ...Show All

383940414243444546474849505152535455

©2008 Software Development Network

powered by phorum