|
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....
|
|
|
|
|
Hey
whats the best way to get the containing directory eg. c:\gello\ from a filepath eg. c:\gello\txt.xtx?
Thanks
|
|
|
|
|
|
Or indeed try: System.IO.Path.GetDirectoryName(string path);
For your example calling System.IO.Path.GetDirectoryName("c:\\gello\\txt.xtx"); will return the string "c:\\gello" .
HTH
|
|
|
|
|
hi there,
i have created my own DateTimePicker ,but i have a problem,how can i place the calendar in top of all controls like ContextMenu and also how can i hide it when user leaves the control(the leave event does not work in this contol and i dont knkow why)..
thanks
|
|
|
|
|
Good evening,
I have a problem in retrieving active ip addresses(with computer name) in a network, using C#. I could able to retrieve through dns entry, but it has to retrieve only if the computer is active. But my code retrieves even if the computer is off.
can someone help in this view?
Amar
|
|
|
|
|
DNS doesn't work that way, AFAIK. There are designated name servers which your computer will use to resolve IP addresses, so you'll get the addresses regardless of whether the PC with that IP address is alive.
You can always try connecting to the IP address (say ping) to see if the other side is really alive.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Senthil is right. DNS resolves address and names regardless of the hosts actual status. You can resolve addresses and names for machines that don't even exist, so long as there is an entry in the DNS tables.
If you want to resolve a host name, you'll have to do the DNS lookup first to get the address(es) of the host, then ping that address to see if it is alive. For an address, you'll just ping the address first to see if it's alive, then if it is, do the DNS lookup for the host names.
But, keep in mind, that not all machines will respond to a ping, even if it alive and reachable.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
HELP...!!!
Can any one show me the interface of Gina in XP??
I define my own MyGina.dll in XP and replace System's gina.dll ,but when i login,it meet bluescreen error ??what's wrong with this?? it works correctly in 2000 and 2000/server,
is there any more interface in Xp than in 2000?what are they??
|
|
|
|