Answer Questions
jeffandmarc datagridview
Hi, Iam using datagridview,How to add a new row to the datagrid view In insert button i wrote this code, dataGridView1.Rows.Add(3); when i run this code,it is giving the following exception exception: rows cannot be programatically to the datagridview's collection when control is databound In save button i wrote like this, private void button1_Click( object sender, EventArgs e) {da.Update(ds, "emp" ); } It ...Show All
smarr How to: Insert into 2 tables in the database
I have a DataTable that is used in a datagrid. The Datatable contains a columns out of 2 tables, so when i want to create a new row in the datagrid i need to insert two rows into the database is this possible with the Datatable InsertCommand There are also 2 columns that contain Id's that are being autogenerated in the database. greetz I fixed it by using stored procedures annd using 2 inserts :) ...Show All
mk20 serializable class with nonserializable variables
i have a serializable class, but it contains a pointer to a nonserilaizable class. is there a way to tell the compiler to ignore this when doing serialization/deserialization or maybe there is a elegant work around for such a problem. i have an array of serializable objects which i need to point to non serialisable data. i could iterate through each object in my array and serialize each one (currently i just write the whole array), this would ...Show All
Nitto SerialPort - .GetPortNames method is missing
The .GetPortNames method of the SerialPort class seems to be absent in my freshly installed C# 2005 Express and .Net 2.0 The documentation refers to it, and code samples show its use, but in my installation Intellisense doesn't know about it and I get a compile error if I type it in by hand. Peter Typical! I have resolved the problem as soon as I asked (having been puzzling for days) I was thoughtlessly expect ...Show All
Craig Mellon URGENT !!! How to get video streaming details from Flash Comm Server using .Net
Hi buddies, How to get the video srteaming details of an user from Flash communication server using C# is it possible it is very urgent...please help with a sample code or any article.. Thanks, Vinu Vinu - Try starting at the Macromedia Developer Center ( http://www.macromedia.com/devnet/ ) for tutorials. This article might also help: http://www.macromedia.com/devnet/mx/flashcom/articles/coding_guidel ...Show All
LiuCong Understanding Invoke method
Hello all, I started recently working with .NET/C#/WindowsForms, coming from Win32/MFC programming. So, all my apologies if you feel I am too much trying to find similarities between both environments. I have a UI application controlling the execution of a background worker thread. The thread is launched when the user presses a button, and must report about the current task being done, to the UI main thread (removing file #### , calculating some ...Show All
Ashley Davis How do I use XSD in 2005
I am a beginner with C# and I am trying to use datasets. I have been tiring to find some good books on how to use xsd or dataset class in VS2005 and haven’t' found much like this. Does anyone know of good examples or books I can buy that has this information. I understand Datasets (limited) but xsd just are confusing. Any help appreciated A dataset is a collection of tables. An XSD is an XML schema. D ...Show All
Ntompson How to connect to 2 oracle database?
Hi all, I had a query whereby I will query from 2 database. But I am not sure of how to create a connection string whereby it will connect to 2 databases. I am not sure whether is this the right way of doing it. Does anyone know how to query two database using the same SQL string Please help and give me a sample of how to do it. Thanks It is not possible for an ADO .Net SqlConnection obj ...Show All
Drew Letcher User Selected Database Path
I am currently creating a frontend for a database. The frontend is essentially used to input data into the database. However, since the database needs/is stored on a server, my application will not find it, as the app.config file specifies the connection string as "C:\...\filename.mdb" which is the path of the file on the computer I am creating it on, not of the server. Is there some way to modify this code to be set by the use ...Show All
Raghuram_816 Decimal Problem...
Very simple question... I have the following code: decimal one = 2752 / 6217; MessageBox.Show(one.ToString()); The message box continues to output ' 0 '. I changed the formatting within the 'toString' to ' N5' (to get 5 decimal places) and still returned ' 0.00000 '. This calculation (according to Windows Calculator) should return ' 0.44265'. I have even tried changing the datatype to 'double'. Can someone please explain ...Show All
Ken Lyon How do I test a button when running an event?
I have a start button which runs a section of code continuously - how do I test the stop button while this code is running Mario Cossi wrote: private void Button1_Click (...) { stop = false; Button1.Capture = false; for (... Mario.......That is now a complete solution - Thank you very much. Nightmare_BE wrote: best practices for continous co ...Show All
N. Panoussis Context menu question
Hello Hope its the right place for this question. I have a win app that contains a treeview and a main window. When ever I click a node in the tree it displays the content of the node in the main window. I would like to add a right click menu to the tree. The problem is that the menu may change from one node to another . What is the best way to handle this subject Is there a pattern I can use On every right cl ...Show All
geykel What's the best method to save preferences of a program? could you give me a sample?
What's the best method to save preferences of a program could you give me a sample After I have set some preferences of a program, I hope to save them to disk, when the program restart, the preferences can be restore. there are some type preferences such as string, boolean, number, etc... What's the best method to save preferences of a program Maybe there are the following methods: 1. save them to the Registry of Windows 2. save to XML file ...Show All
Anu Viswan Determine current WinXP user profile by reading the registry with C#
Hi C Sharpers, I'm developing a WinForm app that needs to determine the current user of the system (Win2000, WinXP) and send that profile's information to the server. The best way so far is to read into the system registry and retrieve it. How can I securely do this in C# In my application, there is also supposed to be an added feature that allow users to change their username and password. I understand this has something to do with ...Show All
PiotrP1 C# .NET Naming Conventions
Does anyone know where I can find a list of naming conventions for UI elements. I found a bunch of places where they have variable, property, method, event handler, formatting style, etc. conventions. But I am having a hard time finding naming conventions other than the Visual Basic 6.0 Naming Conventions on Microsoft's website. What if you also have a label, a button, a comboBox...named "cus..." t ...Show All
