|
Handle is also in the Closing event in the parent form.
"The Soapbox has been so ..."
|
|
|
|
|
We are embedding the clr into our "legacy" C app, using the techniques discussed in the article here: "Creating a Host to the .NET Common Language Runtime" - http://www.codeproject.com/dotnet/simpleclrhost.asp - and this is working well.
What we would like to find is a very simple example or code snippet for how to make a call from unmanaged c or cpp to a static class method.
Thanks
Rich
|
|
|
|
|
|
|
Hi there ,
I am a electronic and telecommunication student .I am very interested in Tapi and its aplications.
some days ago, i downloaded a tapi3 aplication by devang_binson . I trued to run it but it can not answer and make normal phone call.It can only make a IP call.
I have sked Mr devang_binson but he dose not reply me.
Now , i don't know how to solve it .
If anyone know , please hlp me .
thanks
|
|
|
|
|
I don't know whats the failure of this code:
Image src = Image.FromFile(@"C:\_sc\test.bmp");<br />
<br />
Graphics gr = Graphics.FromImage(src);<br />
gr.DrawImageUnscaled(src, 10, 10, 50, 50);<br />
Bitmap bmp = new Bitmap(50, 50, gr);<br />
pcCuted.Image = bmp;<br />
pcCuted.Invalidate();
I load the test.bmp and redraw it new. So I make a new rectangle (50w,50h) and want to put only this area into the pcCuted Picturebox. Doesn't work.
Any way to do it right?
|
|
|
|
|
You were redrawing back onto the same image as you were reading from
Image src = Image.FromFile(@"C:\_sc\test.bmp");<br />
<br />
Bitmap bmp = new Bitmap(50,50);<br />
Graphics gr = Graphics.FromImage(bmp);<br />
<br />
gr.DrawImageUnscaled(src, 10, 10, 50, 50);<br />
pcCuted.Image = bmp;<br />
pcCuted.Invalidate();
|
|
|
|
|
ok, but this still doesn't work
Image src = Image.FromFile(@"C:\_sc\test.bmp");<br />
<br />
Graphics gr = Graphics.FromImage(src);<br />
gr.DrawImageUnscaled(src, 10, 10, 50, 50);<br />
<br />
Bitmap bmp = new Bitmap(50, 50, gr);<br />
pcCuted.Image = bmp;<br />
pcCuted.Invalidate();
|
|
|
|
|
In english we use "Thankyou for your help, however i am still having difficulties"
I took the time to actually type that code into a new windows project and tested it with an image locally, it did exactly what you asked for - draw a section (10,10,50,50) of the original image into the picture box.
And the best you can give is "still doesnt work"
I'll tell you what, if you tell me WHAT doesnt work, ill even have another try - that is as long as you're a little more polite this time
|
|
|
|
|
Hi,
Either I thank you in advance, problem is solved or finally no solutin was found. I have now a solution, thank for your response and the tip (finally it was the right way).
PS: Every tip is automatically accepted thanks. It's naturally. So why should people post their thanks in an extra thread and wasting space?
|
|
|
|
|
Seraphin wrote: PS: Every tip is automatically accepted thanks. It's naturally. So why should people post their thanks in an extra thread and wasting space?
Because it gives the person who tried to help you a good feeling, and maybe he thinks (i know i do): 'hey that guy is nice, if he asks a question next time i will try to help him again!'
And also it's just good manners...
Pompiedompiedom...
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick
|
|
|
|
|
Has anyone come across an a paralle processing, distributed computing application in C#? Something on these guidelines.
|
|
|
|
|
Hi All,
I am reading mails from exchange server using MAPI. I have Microsoft Outlook installed on my machine, so its working fine. But on our production server, we cannot install Outlook. Do i need Microsoft Outlook installed on my machine for using MAPI? If not how can i install (or use) MAPI? Please help!!!
Thanks,
Sumit
|
|
|
|
|
Hi! I'm coding an interactive XML generator, where users can use a GUI to insert elements and nodes without writing directly xml code.
I'd like to build also the xsl file linked to the xml generated. Someone can help me?
Thanx
|
|
|
|
|
Hi! I'm coding an interactive XML generator, where users can use a GUI to insert elements and nodes without writing directly xml code.
I'd like to build also the xsl file linked to the xml generated. Someone can help me?
Thanx
|
|
|
|
|
Hi,
I've added a BoolColumn to a data grid on Windows form by adding a DataGridBoolColumn in the GridColumnStyles Collection. How do I see whether the checkbox of a particular row is checked or not?
Is there any event which I could capture on the when the checkbox is checked or unchecked?
Thanks in advance
Sameer
|
|
|
|
|
A DataGridBoolColumn should be tied to a column of data within a DataTable within a DataSet (or an object within a collection, which can also be bound to a DataGrid and stylized with a DataGridTableStyle - see http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwindowsformsdatagridclasstablestylestopic.asp[^] for details).
With that, handle the DataTable.RowChanged event if bound to a DataTable for the table you're bound to (either the table you reference as your DataGrid.DataSource , or the table with the name given in DataGrid.DataMember if your DataSet is bound to your DataGrid.DataSource property, which is more robust).
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
I have form that dynamically load the images and i have to do is to rotate the image. How could u code to rotate the image. Some sites told me to use the Matrix but we have to rotate the image accordingly the mouse move. If anybody help me in this. Waiting for ur reply
With Luv,
Arun R.
|
|
|
|
|
If you have a homework question that you need help with, then you will find there are many people here that are willing to help you.
However, most of them (myself included) want to see that you have tried some things yourself and maybe encountered a particular problem. You did mention that you had read something about a "Matrix" but have you tried finding specific documentation about this feature? Have you tried any code at all which you could show us? What exactly have you done so far (except search and find the word "Matrix")?
Matrix.Rotate Method[^]
|
|
|
|
|
hi to all,
i am working on a winform c# application.
how can i format a decimal number.
exp : i made a select that gave me 123456789,12
how can have this result : 123 456 789,12
best regards and thanks in advance
fady
|
|
|
|
|
You can use this:
double dValue = 123456789.12;
string sValue = dValue.ToString("### ### ### ##0.00");
Hope that helps
Craig
|
|
|
|
|
I have a tool bar . I put &New and &Open buttons and when I press ALT + N or ALT + O it does not work. Can any one guide me how to ?
Rizwan Bashir
|
|
|
|
|
That doesn't work with the ToolBarButton class - only menus. Every toolbar button should have an associated menu item (per the Windows UI guidelines) so you can implement shortcuts in addition to accelerators using the MenuItem.Shortcut property.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
i want to make google like toolbar in c#.net . please help me which way i start
Amit Grover
Amit Grover
CDAC R&D
Gist Group
pune
|
|
|
|
|
check out this article here at codeproject
|
|
|
|