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

Software Development Network >> Visual C#

Visual C#

New Question

Intellisense gone...
Error when addin icon to project
Heap or Stack
How do I calculate amount of hours using DateTime
Layering an Onpaint Event?
Best way to achieve this?
How parallel programming is achieved in C#
Plugin events C#
How to hide code of .NET dll [aspnet + c#]
A problem with WebBrowser control

Top Answerers

RufusLDK
wuhuashouce
netweavernet
Graham Hansen
Duane Douglas
Tatworth
laboremus
Fluxtah
ckzulueta
elemr
TechWeb: IBM Eggheads: Web Trumps Windows
Only Title

Answer Questions

  • Davids Learning Question on c# Language Specification

    Hello msdn community... Reading ECMA-334 ( http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-334.pdf ), on basic concepts (page 91) I came to the following two: "Types declared in compilation units or namespaces can have public or internal declared accessibility and default to internal declared accessibility." " Interface members implicitly have public declared accessibility. No access modifiers are allowed on interface member declarations." My question is the following: Declaring an interface at namespace without the use of any accessibility modifier will result in a interface with (default) internal access. How can this interface's members have public accessi ...Show All

  • Zulbaric DoubleClick = 2 Click(s)

    I want to open the frmAbout when Clicking the icon and the frmDidi when DoubleClicking the icon. i added the code for both in the Click and DoubleClick. When I try the Click it works fine and frmAbout was shown but when I try the DoubleClick it opens both frmAbout and frmDidi and I think that's because the DoubleClick is actually 2 Clicks!!! any comments and solutions Yes The Click event is raised every time a control is double-clicked so the Click and DoubleClick events are raised when the form is double-clicked and both methods are called ...Show All

  • Adam Plocher application and user setting

    I have read this article on MSDN: http://msdn.microsoft.com/vcsharp/default.aspx pull=/library/en-us/dnvs05/html/SettingsCS_RL.asp and I have the following questions: 1. if I want to save connectionstring including the password, how can i save it as enctypted data 2. As an application setting, how can i change the connectionstring's password or server address ...Show All

  • Dhondtie Cloning

    VS2005 Can anyone show me- if its possible- how to clone a combo box . I have 6 combo boxes on a windows form all contain the same information. After the first only I only want to load the data when the cbo is selected. If you cannot clone a combo box where and how would I check that the cbo is empty OK, well, just check to see the number of items items in comboboxB. If number of items == 0 then populate //SelectIndexChanged Event if (this.comboBoxB.Items.Count == 0) { //populate data/copy/whatever } does this help Thanks that helps. In regards to the second part I was populating them all (from a database) in the load event but this takes too much ...Show All

  • Russt Datagrid-columns

    How do you assign a default value to a column on the Form_Load event. How do you get the selected value from a column with a combobox, and one with a tick box. Thanks ... to get the selected value from a column, i guess you could iterate through each row/column and check whether the column of the current row is selected. Or you could use the SelectedCells property, which will return back the collection of cells selected by the user, then go through each cell selected An example: DataGridViewCellCollection theSelectedCells = this .theDataGridView.SelectedCells; foreach (DataGridViewCell curCell in theSelectedCells) { MessageBox.Show("Current Column name: " + this .t ...Show All

  • KrisV using App.config

    hi! i already created my app.config but i cant seem to use it in my program.. how do i call the connection i had placed in it if i change the string in the app.config and just run the exe of the program. would the program work If u got the answer . please mark it as answer Thanks Ratheesh thanks! i now know how to use app.config. thanks! call the connection as string connection = System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"] where ConnectionString ( app.config) contains the string u want to retrieve Regards Ratheesh you may wish to look at this: http://foru ...Show All

  • flandercan Events problems.

    Hello, I try to make a class (called voltage) to use in a Usercontrol (called switch). I like to know when one of the propertys of the type voltage change by means of an event triggerd in the voltage class, and then trigger a event in the class switch to notify the user. (see also my last post) here is the code for the voltage class: Hmm, you declare the voltage objects using lowercase ('a', 'b', 'c') but you attach to the events using uppercase ('A.VoltageChanged' etc). This leads me to suspect that you haven't posted an actual copy/paste of the real code... Yes I did copy paste. I am used to make the local vatiables in lower case, and the atribule names that relates to these varialbles in ...Show All

  • Sqnyy How to have multiple sets of application settings?

    Hi, I'm using the standard mechanism to set and retrieve application settings (using app.config, Settings.settings and Settings.Designer.cs). I can set the application settings using the Visual Studio IDE and retrieve them like this: string title = Properties. Settings .Default.WindowTitle; This works fine - for a single set of settings. But now I'd like to run multiple instances of my application, pass them an argument that makes them unique (1, 2, 3, or "master", "slave"), and use that argument to access a specific set of settings. Preferable something like: string title = Properties. Settings .Master.WindowTitle; or string title = Properties. Settings["Master"] .WindowTitle; Is thi ...Show All

  • Stve445186 how can i acces a control from another form

    hey i, how can i acces a control (that its in Form1) from Form2... ex. in form1 i have a textbox, and i want to change text from form2.   Hi, you can provide a property to access the control, e.g.: class Form1 { public TextBox MyTextBox { get { return myTextBox; } } } in the other form: form1.MyTextBox.Text = "New Text"; n0n4m3 wrote: Hi, you can provide a property to access the control, e.g.: class Form1 { public TextBox MyTextBox { get { return myTextBox; } } } in the other form: form1.MyTextBox.Text = "New Text"; It is almost what I've been looking for as well. My problem is somewhat more complicated, however. I generate a Tabpage at runtime a ...Show All

  • Balwant Patel Hi!! again i have a problem here ,,,,i have hexadecimal saved in file...now i want ....

    Hi.. now plz read carefully......i have a hexadecimal text file.such as file.txt saved on disk..... so format of the hexadecimal stored is.....1a 2a 14 01 3d 23 45 12 2c 1c 3a remember there is space between every hexadecimal .. i want to read this file of hexadecimal as follows: i want the when this file is read ,,first it should be stored in array see follows example. array[0] = 1a2a , array[1] = 1401 , array [2] = 3d23 ,array[3] = 4512, array [4] = 2c1c.... very important see that at every array position u have read two hexa decimals...at one array position stored it,,, now these hexa decimal has been read from file and stored in a array,,,, seconldy i want that array should be of integer,,,means the ab ...Show All

  • shwaindog How to write in code when database nullable field is to be condition?

    In my program, I set one condition and only when it is true can some thing be done. This condition is a field stored in MSSQL sheet's column, which can be nullable. My question is: in my condition code, what should I write as that condition " if xx == null " or " if xx == "" " or others By the way, it doesn't work when I write as "if xx == null" or "if xx == "" " . xx is of string type. try to compare strings and null like this if ( string .Equals(xx, null ) ) MessageBox.Show("null value"); Thanks. Thank you. Very useful! There is no differnce between if ( string .Equals(xx, null ) ) and if (xx == null) (For ...Show All

  • Tigerwood2006 How to add SQL ConnectionString editor form.

    I have created little C Sharp TOOLKIT application utilizing SQL ConnectionString. I use standard windows installer. It compiles nicely creating TOOLKIT.exe.config file with default ConnectionString settings. Sure my customer could go to TOOLKIT.exe.config XML file and edit string to connect to their SQL database. It is simple for us, but for customer it can be little harder. I would like to make their lives easier. My question – Is there any simple way to add a form that would edit ConnectionString after software is installed. Something like we have by name “Add Connection” http://www.windowsitpro.com/Files/09/9002/Figure_05.gif Thank you a lot! To call DataLink Dialog Ad ...Show All

  • Marcin Książek Windows Service - Passing arguments

    Hi, I want to pass arguments from install time to the start time. How can I do it Note: At install time the service name is changed depending on the domain name where the service is running on. Thanks it was very helpfull Hi, I kind of faced the same problem a while ago (services linked to database instances, one service per instance and I needed different parameters for each service). This will help you: http://www.c-sharpcorner.com/UploadFile/timosten/DynamicServiceInCSharp11262005062503AM/DynamicServiceInCSharp.aspx ArticleID=4d5020e4-7317-425c-ab29-5bf37a1db421 The trick is after installing the service there is an ImagePath in the registry where th ...Show All

  • Prodigal Son How to show all TODO items?

    When I open the "Task List -> Comments" not all TODO's from the project are shown. It seems that the IDE does only scan the open files. What do I have to do Hi, MartinZ. You are correct. Unfortunately, this is a limitation in Visual Studio 2005 C# projects . For C# projects the Task List will only display comments for open files. From "How to: Create Task List Comments": "With Visual Basic projects, the Task List displays all of the comments in the project. With Visual C# and Visual J# projects, the Task List displays only the comments that are found in the files currently opened for edit. With Visual C++ projects, the Task List displays only the comments that are found in the file currently ...Show All

  • SOTY_Programmer Windows Service or Scheduled Task

    Dear All, I need to run particular database script every 20 minutes. So what should I be doing I am confuse between windows service and scheduled task. Which is better Running it from within the DBMS is not an option Anyway if its only purpose is to run every 20 minutes the first thing I would think off is to use the task scheduler. Dear Gabriel, I guess my choice wil be windos service cause I may later need to run this script on several different machines. Can you tell me where can I get a good reference to start off with my windows service application for my database script. I would say that which is better depends on your scena ...Show All

252627282930313233343536373839404142

©2008 Software Development Network

powered by phorum