|
Have you taken a look at the ICodeCompiler interface or the CSharpCodeProvider class?
They offer services to compile code on the fly without having to find out where the compiler actually lives.
Regards,
mav
|
|
|
|
|
Hi,
Anybody here using vs 2005 beta 2 yet? What do you like about it over vs 2003? I hear the integration with the new sql server 2005 is alot better. Is anyone here using Reporting Services 2005 as well. If so what do you think about it?
Thanks,
JJ
|
|
|
|
|
It's awesome. I've been using it for a while, and the new language features rock, and some of the new IDE features are amazing as well.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Totally agree with what you said.
What ever people say about Microsoft, but .Net 2.0 ROCKS!!!
Regards,
Sidhu
IF YOU DON'T HAVE ANYTHING TO SAY, WELCOME TO THE CLUB
Dotnet @ Work Where Dotnet works...
My Blog
|
|
|
|
|
Hi all.
Certainly almost of you know how to pass custom data to the application during installation ok
this happened by adding custom dialog with text boxes to hold these variables and change them .
Ok i don't need to know how to pass custom data cause i know it already .
But each time you double click the installer.exe file that had been created it gives you the custom dialog that you added to enter new information and each time you begin installation again it will demand from you new information ok.
But i don't want that, i need to make an executable file that you can open it and then enter these values in text boxes and press a button which creates these values in the installer.exe and then you can double click the installer.exe which is already created and install it without requesting these values again .
Miss With The Best And Die Like The Rest
|
|
|
|
|
Why don't you write the values into an XML file?
The installer could check, if the file is there, and then read the values or show the dialog.
_________________________________
Please inform me about my English mistakes, I still try to learn your language!
|
|
|
|
|
i've to load a png file and set it in my picturebox.
Before to set, i want to anderstand if it is a correct png file.
How cna i do?
|
|
|
|
|
Check if the value you've loaded is null. If it's not, then it loaded OK. This is assuming that GDI+ does not throw an exception for invalid files, which it could well do.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
so i don't get error messages if i try to put the PNG wrong in the picturebox?
|
|
|
|
|
If it's null, you probably just don't get a picture. If it's not null, it must be an image.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I want to check the version of Dot Net Framework installed on that computer... How should I check it dynamically...
|
|
|
|
|
For those of us interested in writing Internet Explorer plug-ins that can manipulate the surface of a user-selected web page, can anyone suggest resources with informatin on how to do this in C#?
I am trying to write an IE plug-in that overlays user-defined shapes on top of a web page, and am new to C# and COM. Any help would be greatly appreciated!
Thanks!
|
|
|
|
|
Thanks all
Certainly you know passing custom data during installation by overriding the install class to pass these data to the destination boxes or labels or anything in your application .
ok i need to make an executable file to let my user to put these values one time only one time and then It creates the installer.exe file with the new values . When you press installer.exe file that had been created already it install your application without the need to put these values again and even without the dialog boxes for entering it again did you imagine that ?
How can i make that please any help ?
Miss With The Best And Die Like The Rest
|
|
|
|
|
What are you talking about ? Creating an installer ? Why would the user want to install more than once ? If you mean to create default values that cannot be edited per install, why have them in a dialog box at all ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
You can run your installation with /q as parameter to let windows installer work without showing dialogs. If you need the values of some variables in your installation, these can be added as arguments to your call to msiexec like this:
msiexec /i mypackage.msi /q VALUE1=ABC VALUE2=123
You can put this call into an executable as well (for example, using Process.Start to run windows installer).
Perhaps the Windows Installer command line options[^] will help as well.
Regards,
mav
|
|
|
|
|
Good Day,
I am printing a form to a printer, but when I type in text, to my Rich Text Box, I noticed that the printer prints the size of the box (616,64), but if there is any text that you need to scroll to see, it prints it below the box! It's really kind of funny....
How can I change my code (below) so that it prints all the text in the box, without going outside the box, I guess it needs to dynamically change the size of the Rich Text Box being sent to the image....
Any help would be great!
case "RichTextBox":
RichTextBox rtb = (RichTextBox)c;
g.FillRectangle(new SolidBrush(rtb.BackColor), rtb.Left+1, rtb.Top + 1, rtb.Width+2, rtb.Height -2);
g.DrawString(rtb.Text, rtb.Font, new SolidBrush(rtb.ForeColor), rtb.Left + 2, rtb.Top + rtb.Height/2 - g.MeasureString("a", rtb.Font).Height/2, new StringFormat());
break;
I am assuming I need to change the g.DrawString, but not sure to what.
Thanks,
G
|
|
|
|
|
That way you'll never get an accurate picture of your RichTextBox.
You're printing a string with a constant font, although the RichTextBox can contain many different fonts and the text inside the RTB (or a TextBox) can be a lot longer than what is visible in the control.
I'd suggest you search CP for "hardcopy" (there are some articles on the topic) and then use the actual image you grab for printing.
Regards,
mav
|
|
|
|
|
Thanks for the reply Mav, upon searching the site for 'hardcopy', all I found was one project that was similar, but it was mostly in French. I'll keep looking...
Thanks,
G
|
|
|
|
|
Ok, "hardcopy" wasn't the best of all search terms, "screen capture" should find you more and more appropriate results.
mav
|
|
|
|
|
Please, I have a problem with twain API, when i capture an image, Twain return IntPtr which i can not convert it to bitmap.
what can i do ?
BASKOTA
|
|
|
|
|
There's TWAIN support in C# ? Or are you using an external API ? If the latter, I'd be checking their docs to see what they return. If the former, please tell us where the built in TWAIN stuff is.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi
how can I run a sequence of processes after each other? s oafter 1 completes it runs the next one?
Cheers
|
|
|
|
|
Use the WaitForExit method. Like this
void RunProcesses(string[] executableNames)
{
foreach(string executableName in executableNames)
{
System.Diagnostics.Process.Start(executableName).WaitForExit();
}
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
|
That remark will be of a lot of help....
|
|
|
|