|
I have a hiden datagrid and i use:
dataGridView2.CurrentCell = this.dataGridView2[0, 0];
dataGridView2.CurrentCell.Value = richTextBox1.Text;
To update the dataset and datagrid, now the problem is becuase i dont click the next line in the datagrid the data doesnt get commited or something (altough the dataset does get changed) when updating to try and save the changes in the database nothing happens.
If i unhide the datagrid and set the text in richtextbox hit save, click the second line in the datagrid and hit save again the data does get commited.
So how would i simulate clicking the next line or how do i properly set the text in the datagrid or dataset so that it does update.
Thanks.
|
|
|
|
|
How can i use the "Extraction rule" for extracting the data in a navigation control of the interface in Visual Studio Test suite?
|
|
|
|
|
I created RDL TextBoxes in code.
I used the following code to find TextBox <width> tag value.
However textbox width is too large.
How to find exact width for given string ?
float MeasureString(string stringToPaint, string fontName, int fontSize) {<br />
<br />
Font font = new Font(fontName, fontSize, FontStyle.Regular);<br />
<br />
TextFormatFlags flags = TextFormatFlags.NoPadding | <br />
TextFormatFlags.NoPrefix;<br />
<br />
value.<br />
Size proposedSize = new Size(int.MaxValue, int.MaxValue);<br />
<br />
Size size = TextRenderer.MeasureText( stringToPaint,<br />
font, proposedSize, flags);<br />
return size.Width;<br />
}
Andrus
|
|
|
|
|
|
Thank you.
I tried second method but returned strign width is too big ? What I'm doing wrong ?
int MeasureString(string stringToPaint,<br />
string fontName, int fontSize) {<br />
<br />
Font font = new Font(fontName, fontSize, FontStyle.Regular);<br />
<br />
<br />
Size proposedSize = new Size(int.MaxValue, int.MaxValue);<br />
<br />
Form f = new Form();<br />
Graphics graphics = f.CreateGraphics();<br />
<br />
return<br />
MeasureDisplayStringWidth(graphics, stringToPaint,<br />
font);
Andrus
|
|
|
|
|
The MeasureString method of hte graphics class is what you need to call.
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 )
|
|
|
|
|
As you see the code in my first message I tried this:
SizeF stringSize = g.MeasureString(measureString, stringFont);
The probles is that this gives invalid (too big) width.
Andrus
|
|
|
|
|
Funny, I've used it for years, and always found it to work just fine.
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 )
|
|
|
|
|
Thank you.
I created TextBox in RDLC file and used this in TextBox Width element calculation.
I marked that textbox contains border.
When I preview resulting file in MS ReportViewer in WinForms in local mode, result TextBox is too wide.
If I manually change width to smaller, textbox width becomes smaller.
So I think then the calculated width is too big.
Any idea how to fix this ?
Andrus
|
|
|
|
|
Maybe ReportViewer adds fudge factor to width.
How to string width minus fudge factor assuming that ReportViewer adds fudge factor to width ?
Andrus
|
|
|
|
|
hey all
I'm trying to reference a dll and but i cant reference it
error stating that the file couldnt be loaded, Please make sure the file is accessible, and that it is a valid assembly or com component.
please help
thanks
irperera
I@n
|
|
|
|
|
Is the dll a .NET dll? A COM dll? Or a C++ dll?
|
|
|
|
|
|
Only .NET assemblies and COM dlls can be added as references. For C/C++ dlls you have to use DllImport(P/Invoke).
Cheers,
Suresh
|
|
|
|
|
i dont understand, whats the steps in doing this.
thanks
I@n
|
|
|
|
|
Register the COM dll using regsvr32, and then try to add reference from COM tab...
Cheers,
Suresh
|
|
|
|
|
I WANTS DEVELOP SINDHI OCR, THERE IS A PROBLEM HOW I CREATE ARTIFICIAL NEURAL NETWORK FILE *.ann? ARE THERE ANY TOOL/SOFTWARE THAT SLOVE MY PROBLEM?
Ali Hassan Mallah
alihassanmallah@yahoo.com
|
|
|
|
|
Ali, first a word of advice: don't post in all-capital letters. I realize English is not your first language, but be aware that posting in all caps is the internet version of shouting.
To answer your question, we need more information - what tool generated the .ann files to begin with? Are there any existing .ann files? Does it contain text or binary?
|
|
|
|
|
http://www.youtube.com/watch?v=gZzTwuR4y3E
|
|
|
|
|
hi
dear hassan mallah sahab
your proposed solution is given at
<a href="http://www.youtube.com/watch?v=gZzTwuR4y3E">http://www.youtube.com/watch?v=gZzTwuR4y3E</a>[<a href="http://www.youtube.com/watch?v=gZzTwuR4y3E" target="_blank" title="New Window">^</a>]
you can also read
<a href="http://www.cscjournals.org/csc/manuscript/Journals/IJAE/volume3/Issue1/IJAE-82.pdf">http://www.cscjournals.org/csc/manuscript/Journals/IJAE/volume3/Issue1/IJAE-82.pdf</a>[<a href="http://www.cscjournals.org/csc/manuscript/Journals/IJAE/volume3/Issue1/IJAE-82.pdf" target="_blank" title="New Window">^</a>]
|
|
|
|
|
I want to change my Logon picture.
I want to use my picture insteed of windows picture.
can you Help me?
Pishi#
|
|
|
|
|
Control Panel -> User Accounts.
|
|
|
|
|
is that a C# related question?
if you are asking about the General Windows logon, then ya you just go to control panel and click user accounts.
You will be able to know what to do next.
Keshav Kamat
India
|
|
|
|
|
Hi everybody.
Is there any way to attach two graphs to one web camera?
I need to have a preview on Panel Control, and also saving the video, at the same time in addition I need to devide video into files each one, for example 5-10 min. without stoping the preview on the label. Is that possible?
If yes, then what shall I do? How to build a graph in the right way??
Please, help!
|
|
|
|
|
up...
|
|
|
|