|
Sir Sir Sir,
how i can check it is visible or not for checking visibility I have to create an
instance of that. And whenever I create New instance it create a new form
Please help
Regards
Pankaj Joshi
|
|
|
|
|
Hi, why not loop through the child forms. What i do is set the form to max, but you could check for your form.name or whatever property you would like to juse
Form[] charr= this.MdiChildren; <br />
<br />
foreach (Form chform in charr) <br />
chform.WindowState=FormWindowState.Maximized;
Kind regards,
marcel vreuls
http://www.marcelvreuls.com
|
|
|
|
|
Thx For Reply,
But i can't get this method yet..
and what about the forms which have maximize propety false please
give me a simple solution.
Regards
Pankaj Joshi
|
|
|
|
|
Is it possible to see from web whether or not the EXE is installed on a
machine? for example, i'd like to check if gtalk or realoneplayer is installed in localmachine and if it is not installed ,how can find from web.at that time i want to give alert message or give the downloaded page.Is it is possible bc..Plz any one help me.
Thanks.
Regards,
justin
|
|
|
|
|
Yes.
You might consider attempting to read the default value from the
registry at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\App
Paths\realoneplayer.exe.
Hope this will help you.
ANd you can alert the Message using Javascript.
Regards,
Satips.
|
|
|
|
|
Thanks for ur reply..
I cant able to read the register key value from web.Bcz security exception occur.
regards,
justin
|
|
|
|
|
|
What?
Regards,
Satips.
|
|
|
|
|
How get Dll's or OCX's ProgID?
|
|
|
|
|
Hi All,
I'm relatively new to C# and have finally come unstuck - so i think anyway. My problem is i have a couple of formula's and the first part is okay but when it gets to the second part i can't seem to get an answer. Below is a sample of what i'm doing and i was just wondering if anyone could give me a point in the right direction?? I have a feeling that it is because the total of sum2 comes back as a decimal value, any way let me know what you think??
int number1; (say value is 10)
int number2; (say value is 6)
int number3; (say value is 2)
int sum; (value would be 4)
int sum2; (should return value of 50)
int iHundred = 100;
sum = number1 - number2;
sum2 = number3 / sum * iHundred;
Also i should say when i debug number3, sum and iHundred all return values and sum2 returns 0
Thanks
Aj...
|
|
|
|
|
Instead of int go for Decimal datatype.
Regards,
Satips.
|
|
|
|
|
Satips wrote: Instead of int go for Decimal datatype.
I think that you mean Double.
Decimal has higher precision, but therefore it's also slower and harder to use. For any normal calculations Double is the preferred type.
---
single minded; short sighted; long gone;
|
|
|
|
|
Also the int iHundred is pointless. Just whenever you want to use iHundred type the number 100, its the same unless you have iHundred change.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Thanks heaps Satips and ExpertComing. I wish you could have given more - but hey, then i wouldn't be learning. Once again thanks i eventually got it all worked out.
Aj...
|
|
|
|
|
Just remember variables are ment to be variables, you can make a variable a constant but you do that for things that you want to change in one place. Numbers will always be a number.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi,
can I use c++ classes and headers in c# programs or do I have to reimplement
them?
I am thinking of migrating to c# but I do not want to have to recode
all my existing c++/c code.
|
|
|
|
|
Unless you compile the code into a library using a C++ compiler, start rewriting!
|
|
|
|
|
That is not a silly question at all.
I see three options:
1. use an existing native code (i.e. unmanaged) dll and use P/Invoke (only useful
if you dont have the source)
2. compile C/C++ to managed code dll (requires source code)
3. rewrite to C#
If the existing code is large, good functional match and high quality I would go for 2;
otherwise I would go for 3.
-- modified at 11:31 Saturday 9th June, 2007
|
|
|
|
|
i programmed a program and i want it to be loaded autimatically when windows load. how can i do it in C# ?
|
|
|
|
|
Place a shortcut to your .exe in the Startup folder. You can find your start up folder here:
Start menu -> All Programs -> Startup
Not a C# answer, but will get you what you want.
|
|
|
|
|
This has nothing to do with C#.
There are two Startups. When Windows load, you would have to write your app as a windows service. Or, when the user logs in, you can put a shortcut in either of the Startup folders, or the command line in the Run key in the registry.
|
|
|
|
|
I tried what u said and i got that the directory of the StartUp folder exist in Application.StartUp;
String dir = Application.StartUp;
but how can i store the shortcut of the program or how i build an *.job file?
|
|
|
|
|
I've never heard of a "job" file. Nothing in Windows ever uses one.
To create a shortcut is very easy. click and hold the mouse of your .EXE file and drag it away, while holding the Ctrl key down. Notice the little black arrow in one corner if the icon? Let go of the mouse and you've created a shortcut to that .EXE.
|
|
|
|
|
i know how to use it menually. but how can i do it by C#. i mean how can i create a shortCut by C#? but if you entered to the StartUp directory, there is a *.job files. these files containing a details which relevant to activating the program, when and where.....
|
|
|
|
|