|
1. Use System.Diagnostics.Process class to start Paint.net and pass the path to your image as arguments.
2. The Process object allows you to associate an event handler that triggers when Paint.NET closes. In this event, load the file back into your application.
|
|
|
|
|
i tried but i m still unable to do this can u give me the code becouse i m not running the exe from my project i m running the applicaton calling one project to another
i m confused , can u give me ur email address i ll send u the hole project in rar format can u do this and send me back plzzzzz
my id is nomanforu@gmail.com
please help me i m facing this problem since 3 days becouse i m new in c# and i have no support from any where plzzzzzzzzzzzzz
|
|
|
|
|
Please don't be desperate. Take your time, and study the documentation for System.Diagnostics.Process. If you see 10 posts below, someone has posted code using this method to start WinRar. It is more gratifying when you find the answer yourself than when someone else does it for you.
The key to knowledge is not to rely on people to teach you it.
|
|
|
|
|
Hi,
I want to convert PDF file to Tiff.
It may have multipage also.
Kindly provide me some information.
I want to do in console appilcation,
so if any idea about any code then please help me.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
|
Hi,
have googled it lot but not get anything.
so trying something else.
If getting any help from you guys then thanks.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
i refer to this book-'visual c# 2005 how to program'(pearson international edition)
//the program to loads data for the rows with the specified last name into the addressbookDataSet.Address table
private void findButton_Click(object sender, EventArgs e)
{
//fill the DataSet's DataTable with only rows containing the user-specified last name
addressTableAdapter.FillByLastName(addressBookDataSet.Address, findTextBox.Text);
}
but when i implement this coding to my program error happens:
private void enterButton_Click(object sender, EventArgs e)
{
this.rEGISTERTableAdapter.FillByRFID(this.rFIDdbDataSet.REGISTER, this.rfidTextBox.Text);
}
it said:-Error-1 No overload for method 'FillByRFID' takes '2' arguments
I've already added query to the table adapter using the instruction in the book,i really don't understand why this error happens
|
|
|
|
|
Intellisense will tell you how many arguments it should be expecting. What does it say ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
how to use the intellisense?
|
|
|
|
|
It just happens. Hit the comma and it will pop up and show you the method signature. Even when you type the opening brackets, it should appear. You can also right click and choose 'go to definition'
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
this appear when i hit the comma
->int REGISTERTableAdapter.FillByR(RFIDdbDataSet.REGISTERDataTable dataTable)
|
|
|
|
|
hwyr 554 54t5 545y y 45
Anuj Kumar y54y545
|
|
|
|
|
I need to know where the taskbar is in my C#, WinForms app. I tried googling as well as searching the MSDN for something useful but nothing came up apart from that:
http://msdn.microsoft.com/en-us/library/bb787949(VS.85).aspx[^]
and I don't know what's the easiest way insert WinAPI code into a C# application. Or perhaps there's a better way?
TIA,
Greg
|
|
|
|
|
The easiest way to use WinaApi in C# is P/Invoke[^]
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
It depends what you're wanting to do with it, as different things will require different API calls. Have a look at pinvoke.net[^]. They have C# examples for nearly everything!
Dave
|
|
|
|
|
Maybe you could use the difference between the Bounds and WorkingArea of the Screen object to locate the task bar.
|
|
|
|
|
I've searched everywhere, and this looks like the code i used to use before i stopped coding and started school work.
Form1 form = new Form1();
form.Show();
but now it will not open my second form that i am making in conjunction with this project.
Error 1 Cannot implicitly convert type 'WindowsFormsApplication1.Form2' to 'WindowsFormsApplication1.Form1' C:\Documents and Settings\Nick\My Documents\Visual Studio 2008\Projects\Project\Project\Form1.cs 44 26 Project
This is the error message I keep getting, i made sure the second form name was Form2 as well to make sure nothing was messing up.
|
|
|
|
|
Form2 form2 = new Form2();
form2.show();
assuming second form is called Form2 and in the same namespace.
Dave
|
|
|
|
|
Thanks for your help. I remembered what it was just not how to use it.
P.S. you were close,
Form2 form2 = new Form2();
form.show();
is the right way ^_^
modified on Monday, June 2, 2008 6:12 PM
|
|
|
|
|
No, that's utterly broken. Your form2 instance is never shown, you're showing a different form entirely. What is form2 for ?
Oh, and never create local variables and then show them modelessly ( show ). Use showdialog, or use member variables.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Christian Graus wrote: Oh, and never create local variables and then show them modelessly ( show ). Use showdialog, or use member variables.
What is side-effect(problem) in using form.show() ?
Memeber variales, Does they mean memeber at class level?
|
|
|
|
|
ummm no thats wrong.
C# Beginner Nick wrote: form.show();
where have you declared the instance 'form'?
C# Beginner Nick wrote: Form2 form2 = new Form2();
If you create an instance of form2, then to show it, you use:
<br />
form2.Show();<br />
Cheers,
|
|
|
|
|
C# Beginner Nick wrote: Form2 form2 = new Form2();
form.show();
Newing a Form2 instance and Show a form that were instance somewhere else, is probably the lurking problem waiting to happen in your original post.
|
|
|
|
|
C# Beginner Nick wrote: P.S. you were close
No, I was correct.
Your initial code was:
Form1 form = new Form1();
form.Show();
doing
Form2 form2 = new Form2();
form.show();
will create an instance of Form2 (form2 ) that is not used, but will show your Form1 instance again (form ).
Dave
|
|
|
|
|
Hi,
Can a windows service run a console application?
Basically my goal is to have a windows service with a FileSystemWatcher monitor a directory. If that directory has any MS Word documents in it, convert them to pdf and then move them to their final resting place.
I've created the windows service, it finds the files and starts a MS Word in the background. But on the line that opens a document, it fails. I presume because its running from a windows service and MS Word is probably trying to display some dialog. So my thinking is that if I move the conversion functionality to a console app and just let the windows service do the monitoring it will work.
Thanks for the feedback!
Just because we can; does not mean we should.
|
|
|
|