|
Hi
Thank you so much for your reply. Hence im not much familier with C# it helped me alot.
Once again thank you so much.
|
|
|
|
|
I need to save the entire form in bmp format. I 've used the following code:
Bitmap bi = new Bitmap(this.Width, this.Height);
this.DrawToBitmap(bi,new Rectangle(0,0,this.Width,this.Height));
bi.Save (@"c:\Test.bmp", ImageFormat.Bmp);
Problem: only the visible area of the form is saving in bmp format. the other part like area of the form occupied by scroll bar is not saving.
could you please give me any suggestions.
Anita
|
|
|
|
|
|
Can you please give me a regular expression in c# to remove single line comments from a string and its urgent
Criteria
a. // text --- Should be removed
b. file:///text.txt -- should be retained
c }//abc -- hear //abc should be removed
Thanks in Advance
Thanks and Regards
Irsh
Thanks and Regards
Irsh
|
|
|
|
|
can you write example better ?
|
|
|
|
|
The regular expression to match single line comments would be
(with the multi-line option turned on) basically looks for // followed by any number of characters until the new line.
|
|
|
|
|
Thank you very much
I got the solution.
Thanks and Regards
Irsh
|
|
|
|
|
hello
i need a component that connect send a message to yahoo messenger.
and also take me all my fried list ...
can you help me?
tanks
|
|
|
|
|
|
i have field in my database : sitehit.
If someone has visited my site, value '1' must be in 'sitehit' else it must contain '0'.
how is this possible?
Thanking you in adv.
regards nekshan.
|
|
|
|
|
Sounds like you want to store a cookie on the local machine. You can't identify someone to store something local, because their IP address is likely to change the next time they connect.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
In Visual C# 2005 IDE, can I customize the "using" directives that are automatically added when a new file or new class is added to the project?
Also in Express?
|
|
|
|
|
Not that I know of...
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
http://weblogs.asp.net/scottgu/archive/2005/09/09/424780.aspx[^]
Heh, I didn't know that before you asked, I was going to google how to manualy add/modify item templates, and look, there is IDE option to do that. And right in File menu.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Ah - using templates!
Per-Project would be nicer, but I think that does the job.
|
|
|
|
|
confused::(salut,je suis une ètudiante dèbutante,je suis entrain de faire un petit programme en C# et je veux bien savoir la solution pour fair l'exection d'un logiciel(exp:netstumbler)a partir de mon application.Merci!!!
|
|
|
|
|
Babelfish says:
hello, I am a ètudiante dèbutante, I am spirit to make a small program out of C # and I want to know the solution well to fair l'exection d'un logiciel(exp:netstumbler)a to start from my application.Merci!!!
Download the VS2005 Express Edition and choose File:New. Then, buy a book.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hey guys
I have a datagridview populated with entries from a database. I have set the selection mode of the grid to fullrowselect so that a click on any cell will cause selection of that row. In this selection event I open a new form showing the data contained in that row. This works fine, however when you click on a column header it still tries to select that row. Is there any way of stopping this?
Thanks in advance
|
|
|
|
|
What event are you using?
I used the doubleClick event somewhere in an old app, and it just refers to the SelectedItem in the datagrid. Then if you doubleclick the header, it just opens the record that was selected last.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
I was using the selectionChanged event of the datagrid, is there anyway of knowing which row the selection was made on? ie if row is header row type then do nothing?
|
|
|
|
|
you could use an event like CellClick or RowEnter, they have DataGridViewCellEventArgs where you can access the ColumnIndex and the RowIndex of the selection.
private void dataGridView1_RowEnter(object sender, DataGridViewCellEventArgs e)
{
}
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Cheers that does the trick
|
|
|
|
|
I like to minimize all open programs when my WinForm-application starts. How to do that?
_____________________________
...and justice for all
APe
|
|
|
|
|
Why does your app need all others to be minimized?
|
|
|
|
|
When I start my application it comes behind all others.
Know it's not the best solution to make all others minimize but I have not found any other solution.
I found this:
[System.Runtime.InteropServices.DllImport("user32.dll")]<br />
public static extern void keybd_event(byte bVk, byte bScan, Int32 dwFlags, Int32 dwExtraInfo);<br />
<br />
public void MinimizeAll()<br />
{<br />
keybd_event(91, 0, 0, 0);<br />
keybd_event(77, 0, 0, 0);<br />
keybd_event(91, 0, 2, 0);<br />
}
_____________________________
...and justice for all
APe
|
|
|
|