|
Ravi Bhavnani wrote: I happen to be running IE7 (not that I think that should make a difference, but you never know).
Probably.
|
|
|
|
|
Thanks, but I'm not setting it from the form_load handler and it works fine even between the constructor and the form_load "when calling it after the initialization of the object", I just cant do it while the form is loaded but thanks to the other strange workaround in the thread by "some shekhar", it's working now although the calling form disappears now
|
|
|
|
|
|
Form2 f2 = new Form2();
f2.ShowDialog();
f2.RightToLeft = RightToLeft.Yes;
And the form disappears!!
Any workaround??
modified on Friday, January 22, 2010 12:41 PM
|
|
|
|
|
Muammar© wrote: Form2 f2 = new Form2().ShowDialog();
Does this code work? new Form2().ShowDialog(); returns DialogResult and not a form as you write here.
try:
Form2 form = new Form2();
form.RightToLeft = RightToLeft.Yes;
form.ShowDialog();
|
|
|
|
|
I'm sorry, I just edited my post, the code was what you just posted
|
|
|
|
|
Your code has a different order: after you call ShowDialog(), it enters its own message loop. Anything after that call will not be executed until the dialog is dismissed.
|
|
|
|
|
Point taken.
again, you shouldn't be calling
form.RightToLeft = RightToLeft.Yes;
after form.ShowDialog();
This is because when you call ShowDialog, the form is shown in dialog form. the next line is run only when the form is closed with a dialog result.
Now, the code that you want to run will only happen when you do:
Form form = new Form();
form.Show();
form.RightToLeft = RightToLeft.Yes;
In this case, when the last line is executed, the form doesn't disappear but it goes behind your main form. Try minimizing your form and voila, you get your form.
|
|
|
|
|
You beat me by a minute. Good answer!
|
|
|
|
|
You probably want to do this:
Form2 f2 = new Form2();
f2.RightToLeft = RightToLeft.Yes;
f2.ShowDialog();
|
|
|
|
|
Silly me
Thanks buddy!
|
|
|
|
|
hi all,
I'm building a program that copies files from network computers.
now i got everything running good except one little thing.
sometimes the computer "forgets" the remote dir user and pass and requests them.
but if it happens and im running my program it wont ask for the user and pass but rather quits with an error.
now my problem is that every now and then i need to enter the passwords manually by going into the dir s.
i tired to find a solution but i couln't find any...
if anyone can help me with:
1. Prompt the user to enter the user and pass.
<b><u><big>or</big></u></b>
2. The program will enter the user and pass automatically.
thanks alot!
p.s
the program is written in visual c#.
it runs on two computers one of them is win 2000 (NT), another is WINXP. most problems are on the NT comp.
example for network drive file i need to copy \\1.1.1.1\c$\test.txt
|
|
|
|
|
The API "LogonUser" may be your friend.
|
|
|
|
|
Hi eveybody.
i want to make a file extention for my program but this file contains files.
just like (.pptx) power point extention.
example : my.proj
the file my contains many files (like zip file)
please help me.
thank you
"" i am new to programming ""
|
|
|
|
|
And your question is?
All those who believe in psycho kinesis, raise my hand.
|
|
|
|
|
i want to wknow how to make a zip file but not .zip
|
|
|
|
|
OK, I assume English is not your native language?
If I read your post correctly, you want to store many files in a single file, similar to the way that powerpoint and WinZip do, but with your own file extension.
If you are new to programming this may be a little advanced for you, but:
You can create your own ZIP files, using an addon, which can have any extension you wish.
Have a look at this article[^] which does musch of that.
There are also various other ZIP utilities you can use from c#: SharpZipLib, DotNetZip etc. - Google is your friend here. I haven't used any of them, so I can't comment on how good they are (or aren't).
If you don't want to use ZIP, then you have a fair amount to do: You will have to invent a file format that will hold variable length files, and transfer them in and out yourself.
All those who believe in psycho kinesis, raise my hand.
My 's gonna unleash hell on your ass. tastic!
|
|
|
|
|
So why not just use a ZIP file?
|
|
|
|
|
because i want it to be in my extention
thank you all for responding.
|
|
|
|
|
Try using something like this[^].
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
You can use the built-in Package class for this.
|
|
|
|
|
Hi,
I'm trying to access all the services in a remote server, the ObjectQuery "Select * from Win32_Service" is not displaying the user created services, is there any other query needed to retrieve this info, please advice me,
Thanks,
D.Vinoth
|
|
|
|
|
Does this only happen if you execute this query on a remote server or does it even happen if
you do this query on your local machine?
If I execute your query local, it shows me also the user created services.
Greetings
Covean
|
|
|
|
|
Hi Covean,
Thanks for the reply. It is working fine in my local system, the problem is with server only...
any idea on this...
Thanks,
D.Vinoth
|
|
|
|
|
Found something on MSDN maybe that helps (but I think you already have this right):
"A user connecting from a remote computer must have the SC_MANAGER_CONNECT privilege enabled to be able to enumerate this class. For more information, see Service Security and Access Rights. "
If I remember your last posts, you connect to the remote machine by some useraccount thats valid on this machine. Is it possible to login with this useraccount local on the remote machine?
If so, I would try to execute the query there local and see if, it differs from the one you get by remote query. If it doesn't differ, I would assume that your user account needs more privileges.
Greetings
Covean
|
|
|
|