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

Software Development Network >> Visual C#

Visual C#

New Question

sams vc# or wrox beginning C#??
How to add SQL ConnectionString editor form.
C# Naming Conventions - ID
Making help files for MS Document Explorer
Getting protected controls through reflection
Best external data storing
How Can I get Keyboard Layout?
Object Test bench is not visibile
How to read FileContents format from a DataObject?
Overloaded constructors

Top Answerers

David_Lindley
catweazle
MarkWHarrison
Simon Mourier
vasudupe
oasisman
pasayten
nicromi
deen
Eissing
sitemap
Only Title

Answer Questions

  • Bear23 question about DataGridViewComboBoxColumn events

    Hello! I have DataGridView with some columns. One of the columns is typeof DataGridViewComboBoxColumn, so each cell has a ComboBox inside. Now I have a problem with events. I would like an event to raise when I select some item in DataGridViewComboBoxCell. I didn't find any events on "DataGridViewComboBoxCell" level, only on DataGridView level - event CellValueChanged. But this event raises when the cell loses focus. I would like to raise the event when I change item in DataGridViewComboBoxCell. Is that possible Thanx, Ziga have you tried the CellBeginEdit event it is an event that Occurs when edit mode starts for the selected cell. try it maybe it will work for you pe ...Show All

  • Julian V Inserting a record using databound controls

    This seems like it should be simple.  I'm probably missing something obvious.. but here goes... How do I have a form for entering a new customer ( for example ),using databound controls on that form   I'm not opening a dataset to start with, so I can't just insert a record into that dataset. I suppose I could do a select saying something like "where customerID = -1" ( which would return zero rows ), and then insert a row into the empty dataset, but that seems kind of ugly. Is there a "right" way to do this    My appologies if this is a stupid question. Thanks, Kirk   Hi, See: http://msdn2.microsoft.com/en-us/library/ms233812(VS.80).aspx Thanks I neglected to mention that I am ...Show All

  • volleynerd Versatility/Practicality of C#?

    Hey all, new to posting but ive been reading here for a few weeks. Anyway, on with my question (which probably has been asked in some way already)- How versatile is VC# compared to VC++ All I generally see are simple (*duck/cover* ) desktop applications. I've read that its possible to do game dev (including DX and OpenGL), but I have yet to find any engines done in C#. I have just looked at API's/engines/SDK's for games, but I have not gotten actually into manipulating/programming in them yet. I've done some basic reading on C# and I sort of want to get into it, but I plan on in a few years down the line working for Lockheed (or a defense contractor of some sort) or EA-Tiburon. I've been programming since I was probably around 10, ...Show All

  • timmi o tool Console.Write + Windows Application

    Hello I want to do simple logging. I have a Windows Application project with forms. When I add this to my form: Console.Write("some text") nothing happens. I would like to see the text printed in a console or VS 2005. Cheers Have a look at the Debug class in System.Diagnostics, it has a WriteLine method which will appear in the Output Windows in VS 2005. Also have a look at the Trace class also in System.Diagnostics, it can be configured to output to a file, event log, or really anywhere else you want. You also might want to check out the log4net open source project. ...Show All

  • Burgz Writting to a file

    I was wondering if it is possible using streamwriter to make some of the text you write to a file bold I have been trying to figure this out, and have no luck in searching various websites if it is possible. What I am trying to do is, write to an .rtf file and have for example: "Name:" in bold and then the person's name normal style afterwards. If you can't using streamwriter and there is a way, any help would be appreciated. Thanks in advance. Try saving a file with bold text from wordpad, and then open it with notepad. You'll get something like: {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.21.2500;}\viewkind4\uc1\pard\b\f0\fs20 ...Show All

  • kwcah Hardware Simulation

    Hi All I want to know if there is any useful links that can help in building a hardware simulator using C#, if you know a place where I can get information, plz help thx Off topic, not a Windows Forms programming question. Trying the C# General forum. If you want an answer, you'd better tell them exactly what kind of hardware you're trying to simulate. ...Show All

  • Dipesh A. Dynamic Property Page creation - web app in c#

    Hi, I am new to dotNet, i am developing a sample application, ASP.Net WebApplication 2005 and the coding part i am doing in C#. In the Default.aspx i would like to create a Property Sheet, And number of pages(tabs) in this property sheet should be dynamic. User enters a value say 4 then 4 Pages should be in the Created when submit button is cliked. I would to know how can solve this problem. What i have in mind is have a System.Windows.Controls.TabControl() then add items to it in a loop. How can it be implement as a web control using C# Any code snippet,suggestion,Ideas ...... regards, Alex yep. It is not as fancy but still take a look here: http://www.codeproject.com/aspnet/FormT ...Show All

  • JGP Some error when open 2003 project in 2005.

    Problem is form and control which is designed in 2003 can not be opened properly in 2005, don't know why, any changes in 2005 One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Object reference not set to an instance of an object. Hide at System.Resources.Tools.StronglyTypedResourceBuilder.DefineResourceFetchingProperty(String propertyName, String resourceName, ResourceData data, CodeTypeDeclaration srClass, Boolean internalClass, Boolean useStatic) at System.Resources.Tools.StronglyTypedResourceBuilder.InternalCreate(Dictionary`2 ...Show All

  • ElliotHC Printing ASCII character set from 127 to 255

    Hi i want to print ascii character set from 128 to 255. For that i used the following method Strings .ChrW(int CharCode) or Strings . Chr(int CharCode) but the output i am getting with this method is not similar to the Ascii character. Any help would be thankful. Yeah, sorry, I tried to do the same thing this morning but got the same result, yet if you open up Notepad, select the Lucida font and then do this.... Hold ALT and then press 1 9 2 on the numeric keypad (note, it must be the numeric keys), release ALT and the └ will appear. Well, pretty much as it did there <<<... hmm, whichever font you choose for these forums, that └ stays there, interesting. Have you tried outputting control characters instead ...Show All

  • kenneth123 Link a file type to my application?

    Is there a way to link a file type to my application. I'm not going to interfere with the Windows Shell, I was thinking of creating my own file type. Check out here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=503966&SiteID=1 With Setup Project that is really easy. Do you mean creating a file association so that when ever someone opens up a .xyz file that your application is loaded to handle it If so... you’ll need to do a bit of registry editing to set that up. See this MSDN article for more info. As yet there is no really good C#/.NET for doing this other than manual registry editing or a mini class here or there. As yet my ‘ultimate’ class for it is not yet done, so in the mean time you might try thi ...Show All

  • Manoj Bhardwaj data objects

    Hello my name is Mike I am very new to C# as a language but not new to programming at all. Let me first explain what I am working on. It is a Mortgage Calculator and I am trying to Declare and Create a new data object and I'm not quite sure about the syntax Also I have an Amortization table that I'm trying to create and then retreive the data from. I just basically need to know the syntax on how to do this. Please help me I'm stuck. what do you mean by data object Do you mean instances of a class (Object Orientation) You simply create a class, with methods/properties/constructor(s) and create an instance of it wherever you want in your project. Example: MyClass theClass = new MyClass(); theClass.Do ...Show All

  • MKBender 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

  • Stefan van der Merwe receive sms in web application

    Hello, I need receive a sms in web application and work with the content. How i do this Some idea Thanks Welcome to the MSDN Forums! You need an SMS Gateway that can receive SMS text messages, most of the companies that deliver these services provide a API as a Webservice or something to read the text messages. There are alot of companies that deliver these services, so just find one that satisfy your needs. They can be found easy with any search engine like google . A other option is to buy a SMS Modum or a Cellphone and connect this to a PC. Most modums and phones support reading the textmessages. The most cheap way is to use a Cellphone that supports reading the textmessages (most do!). ...Show All

  • bboylen Reading words from other windows

    Hi, I came across a dictionary program that runs in the system tray. When you press ctrl+right click on a word in any other window, it displays the definition. I was wondering if anyone could help me figure out how to do that. It's just out of curiosity as it may be helpful in future programs I build. I know how to capture mouse/keyboard events from other screens and use the system tray, but I haven't figured how to recognize a word/string from the mouse pointer position. Thank you, Wing. Thank you very much. I was hoping for something more innate to C# and .NET but I guess using pinvoke should work just fine. hi, how to retrieve text under mouse courser ...Show All

  • cravier Switch statement

    Hi, all: [I guess this could be considered a rant, but I'm still curious if anyone shares my opinion on this] I am still wondering why the switch statement is not more flexible. For example, I feel that a switch statement using objects makes sense. I'll give a more visual example for ease of understanding more than anything else, so picture this: I have three buttons on my form, button1, button2, button3. I set the click event to the same event handler, button_ButtonClick. Inside the button_ButtonClick method I want to check the sender to see which button was clicked, so I do this: switch (sender) // or even (sender as Button) { case button1: // do something here break ; case button2: // do somethi ...Show All

91011121314151617181920212223242526

©2008 Software Development Network

powered by phorum