|
Thank you, Christian!
I still hope to find a more high-level way of doing this since security and portability issues are easier to handle then...
|
|
|
|
|
Yeah, I would hope there was a shell method you could p/invoke, but what I sent was just what I could find by digging around a little.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi All,
I am developing a Windows Forms 2.0 application. I have some questions on the DataGridView.
I have two Datagridviews on the form which I have populated from the the database tables customer_group, and group using the datasource wizard. The table group for the gridview contains columns GroupID int and Name varchar datatypes and the table customer_group contains customerID int, GroupID int, memberNumber int. I have a Cell_Click event on the first gridview and when I click on the button in the first gridview it should add the particular row into the second gridview which is customer_gridview. but it gives me the following error.
"Input string was not in a correct format"
Could you please give me some idea and some code examples. I really appreciate your help.
Here is the Cell_Clickevent
private void groupDataGridView_CellClick(object sender, DataGridViewCellEventArgs e)
{
//MessageBox.Show("Cell click");
if (e.ColumnIndex == 0)
{
this.customer_GroupTableAdapter.Insert(int.Parse(this.customerIDTextBox.Text),
int.Parse(this.groupDataGridView.Rows[e.RowIndex].Cells[1].Value.ToString()), null);
}
Koonda
|
|
|
|
|
Hi
I am looking to go for 70-316 certification.I need to get some free study material(dump) for that.
Any help would be great.
Until you realize this message has nothing to say, its too late to stop reading
|
|
|
|
|
Do it yourself.
"You posted your question here, indicating that you're so thick you couldn't find the VB Forum if it was licking your bung hole." - John Simmons / outlaw programmer
|
|
|
|
|
This is why certifications are useless
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am not asking for some cheats, its just that I need to know exactly which areas does this certification emphasizes on. I dont know much about this one except that it is related to windows programming. I just need some study material so that I can improve on the areas where I am weak.
I guess the subject and the message were not as descriptive as I thought they were.
Until you realize this message has nothing to say, its too late to stop reading
|
|
|
|
|
And number 2 on google search for MSCD 70-316 is: Clickety
You always pass failure on the way to success. Some people never get past failure though.
|
|
|
|
|
i was taken input(file) textbox .... can u tell me how i ll i upload the photo using C# code in asp.net
thanks 2 all..
|
|
|
|
|
The MSDN documentation[^] contains all the information you need.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Is there anyone who has any sample code for file transfer over rs232 by zmodem file transfer protocol?
But i use c# and System.IO.Ports.SerialPort...
|
|
|
|
|
Have you tried a general search on this site?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
|
What has this got to do with C# ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Your post has nothing to do with C#. Try again in a more appropriate forum, such as the VB one
"You posted your question here, indicating that you're so thick you couldn't find the VB Forum if it was licking your bung hole." - John Simmons / outlaw programmer
|
|
|
|
|
When I am serializing a class Contrains only static variables by creating instance. the static variables are not serializing. is there any way to save the satatic variables ?
Plz help me................
B V KIRAN KUMAR
|
|
|
|
|
I just checked ( because someone asked this in the last day, and I wanted to see if it was you ), you know you've never once responded to anyone who helps you ?
Serialisation saves a class instance, by definition it does not store static variables. You'd need to create instance variables and populate them before serialising and move them to the static values after reloading.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thank u for ur response. thank you.
B V KIRAN KUMAR
|
|
|
|
|
|
What is your question ? You found help, but you have a problem ? What problem ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I need some guidance here .
I have created a windows App that will display all the details regadring my internet connections in text boxes.
For example i have three connections.They are displayed in a listbox.
When i select any one of them, their details SubnetMAsk,DNS1,Dns2 etc will be displayed in the text boxes.Everything works fine till here.
But now my problem starts.
I want this detils to be applied to my computer so that i can switch my internet connections when i click on a button "Switch".
I have no idea how to do this.Any guidance or links will be most welcome.
Thanking You
|
|
|
|
|
hi
i have some question that not solve
1. how can i zip file in c# code ?
2. how can i pick more than one record in Datagrid ?
3. how can i get my program path ?
4. how can i do that my progran open only one time ?
5. is it be right to move to VS2008 from VS2005 ?
i need help in C# & VS2005
thank's alot for any help
|
|
|
|
|
answer 1[^]
I have no idea what question 2 means
Application.StartupPath will give you the path without the exe name, I forget the Application. property that gives you the full path
Answer 4[^]
Question 5 is ridiculous. Is it right based on what criteria ? What is your concern ? Do you want to move a project or just start using 2008 ?
2 questions that make no sense, and 3 that were answered in seconds by google ( well, one was so easy I just answered it, but google would have too ). Hardly 'unsolvable'.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I'll give Question 2 a go
Create an ArrayList called SelectedRowsList for your rows,records??.
Then on MouseClick on your Datagrid.
if (Datagrid.RowCount > 0 && Datagrid.CurrentRow != null)<br />
{<br />
selectedrow = Datagrid.CurrentCellAddress.Y;<br />
SelectedRowsList.Add(selectedrow);<br />
}
I think this is what you asked... hope it helps
A craft is an enemy if not well learned.
|
|
|
|
|
3. Application.ExecutablePath
4. search CodeProject for "application singleton"
whatever the solution is, the application will be launched a second time, but it will be able
to signal that (and optionally pass the new command line) to the first instance.
|
|
|
|