|
Use a delegate to send a message back to the parent form, then hook up the menu event to call the same method.
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 )
|
|
|
|
|
Hello,
You should work with delegates here.
Your form could handle a userevent from your UserControl.
All the best,
Martin
|
|
|
|
|
hi..
code to convert multiple .jpg file to byte[] in c#.net
|
|
|
|
|
I gave it to yuo earlier today, and someone else pointed out that you need to create a new array of the right size to copy the old arrays into if you want to concatenate them. Why do you want to do this ? How will you use this data ? I would imagine you'd need to store the offsets in the byte array to ever find the jpegs past the first one, again.
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 my application when I print the report, it will get the printer selection window.
How can i skip that screen?
System itself get the default printer?
Thanks
Syed Shahid Hussain
|
|
|
|
|
This should do the trick. Worked for me anyway.
http://forums.microsoft.com/msdn/showpost.aspx?postid=70752&siteid=1
|
|
|
|
|
Thanks
God Bless You
Syed Shahid Hussain
|
|
|
|
|
I need to retrieve Current (who currently logined to machine) user personal information(like his fullname,address,email id etc.....imaging all those required information is stored in ActiveDirectory) from Active Ditrectory. I am using Visual studio 2003.
with thanks and regards
|
|
|
|
|
Hello,
Maybe the Enviroment namespace with it's static members helps you here.
All the best,
Martin
|
|
|
|
|
Hi Martin,
Thanks for your reply.
I just tried to get the Environment.Username. but i am getting the ASPNET as a result. Do you have any code for that?
Thanks in advance
|
|
|
|
|
Hello,
Sorry, haven't looked into it before given you the advice!
All the best,
Martin
|
|
|
|
|
Hi,
I have a requirement to read the data from an INI file. Even though I searched in google, I got the code in C++, not in C#. Can anybody help me please? Providing me the link also will be great.
Thanks in advance,
Meeram395
|
|
|
|
|
I don't think C# has direct support, you could p/invoke the C++ APIs or just read the file and parse it yourself.
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 )
|
|
|
|
|
Here's a nice article one of the local boys came up with :v)
http://www.codeproject.com/csharp/cs_ini.asp
I prefer INI files over the app.config file myself if only because it's a lot easier to hand edit an INI file.
|
|
|
|
|
one of my posts here was about taking a screen shot. and i get the answer
MemoryStream ms = new MemoryStream();<br />
int screenWidth = Screen.GetBounds(new Point(0, 0)).Width;<br />
int screenHeight = Screen.GetBounds(new Point(0, 0)).Height;<br />
Bitmap screenShot = new Bitmap(screenWidth, screenHeight);<br />
Graphics gfx = Graphics.FromImage((Image)screenShot);<br />
gfx.CopyFromScreen(0, 0, 0, 0, new Size(screenWidth, screenHeight));
i then tried to draw the cursor on the screenShot image using :
Graphics g = System.Drawing.Graphics.FromImage(screenShot);<br />
Cursor cur = Cursors.Arrow;
cur.Draw(g, new Rectangle(Cursor.Position.X, Cursor.Position.Y, cur.Size.Width, cur.Size.Height));
when using Cursors.Arrow the arrow shap is drawon on the image, but to draw the current
cursor i tried Cursor.Current but it dosn't work, it always draw arrow.
my question is, how to determine the shape of the cursor and then draw it on the image?
thanks in advance
Hussam
|
|
|
|
|
Hi, i have a COM dll with a COM object that sends events.
The COM was written in ATL VC6.
in VB6 i get the events by using "Dim WithEvent ..." .
I don't know how to do it with C#.
The com object is ComApplication and the event is OnIpresult(ComIpResult* pIR).
Can you give me the sample code according to my com event?
Thanks,
Dudi
|
|
|
|
|
hi..
code to transfer multiple .jpg files to webservice
|
|
|
|
|
You can't send files directly. Just read the contents of the files into byte arrays and send to the web service.
---
single minded; short sighted; long gone;
|
|
|
|
|
i am working on three tier architecture. and i need to know when an exception is generated from database DAL just do nothing and roll it to the BLL.BLL accept it and its a webservice. now i want to save my Database exception error code that was sent from the Database because when webservice genrate a soap execption my object that was generated from database lost its values. how i can get only my error message from the system exception object. because the message is too big when it comes from DAL........
what u people suggest what i should do tu retain my values of system exeption to send then into the my presentation layer.
|
|
|
|
|
hi ,
i am using the user control of drop down i am not able to find out the selection changed value of drop down on the same aspx page
|
|
|
|
|
Wrong forum, mate. You want the ASP .NET forum.
Cheers,
Vıkram.
Déjà moo - The feeling that you've seen this bull before.
Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
Probably your control is data bound, and you're binding it in your load event, which will reset the selected index. You should do this in prerender, and even then not do it on postback.
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 )
|
|
|
|
|
How carry out msn massaer's faces-box?
how make sure its location,when the face-box show?
Thanks.
|
|
|
|
|
It's an owner drawn list box, probably
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 )
|
|
|
|
|
I want to carry out it with ListView control.
but I do not know how anchor it anear Button that it opened ListView.
Can you give me some idea?
Thanks.
|
|
|
|