|
Great! I was pretty sure it was in there somewhere.
btw 5'd you to make up for the CCC I pinched from you a couple of weeks ago. Been meaning to do so; just found somewhere to do it!
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
I don't remember it! Thanks anyway.
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
Thanks a lot
That was so simple, that it got overlooked
|
|
|
|
|
I've written some code that the VS designer is griping about. Isn't there a flag that I can use to make the designer ignore it?
The mind is like a parachute. It doesn’t work unless it’s open.
|
|
|
|
|
Hi Richard,
there is the Control.DesignMode property that could be useful.
|
|
|
|
|
I hate easy answers!
I've been digging around for a reserved word. (I feel like saying some "reserved" words)
The mind is like a parachute. It doesn’t work unless it’s open.
|
|
|
|
|
Yes, sometimes all you need to do is open your parachute aka MSDN...
|
|
|
|
|
Sometimes I just hanging on by the emergency chute!
(I hate MSDN by the way. I can find info much easier through google)
The mind is like a parachute. It doesn’t work unless it’s open.
|
|
|
|
|
sure, I use Google to locate the right MSDN page, then read it.
|
|
|
|
|
Richard Blythe wrote: I hate MSDN by the way. I can find info much easier through google
And even easier in the CP forums.
"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
|
|
|
|
|
hey i need code or wizard steps to navigate in my project by pressing enter key.
thanks
|
|
|
|
|
I suspect you could set the Form's AcceptButton property repeatedly, but I don't recommend it.
|
|
|
|
|
// Navigates to the URL in the address box when
// the ENTER key is pressed while the ToolStripTextBox has focus.
private void toolStripTextBox1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
Navigate(toolStripTextBox1.Text);
}
}
// Navigates to the URL in the address box when
// the Go button is clicked.
private void goButton_Click(object sender, EventArgs e)
{
Navigate(toolStripTextBox1.Text);
}
// Navigates to the given URL if it is valid.
private void Navigate(String address)
{
if (String.IsNullOrEmpty(address)) return;
if (address.Equals("about:blank")) return;
if (!address.StartsWith("http://") &&
!address.StartsWith("https://"))
{
address = "http://" + address;
}
try
{
webBrowser1.Navigate(new Uri(address));
}
catch (System.UriFormatException)
{
return;
}
}
// Updates the URL in TextBoxAddress upon navigation.
private void webBrowser1_Navigated(object sender,
WebBrowserNavigatedEventArgs e)
{
toolStripTextBox1.Text = webBrowser1.Url.ToString();
}
like this u can navigate in c# with enter key
|
|
|
|
|
I know i ask lots of question... M sorry to keep bugging...
I wanted to know if i can make such a program which on running, can make the active window (if not maximized) to come in center of the desktop. and when that window looses focus, it is moved to a side...
Every window which is not maximized shud be affected by it...
Can I??? Plz enlight me with knowledge abt it...
|
|
|
|
|
You would need to use an API method such and FindWindow to locate all of the windows but hooking into them to override the locations and behaviors is not worth the effort IMO.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Is that what your users would want to have happen?
|
|
|
|
|
I have to agree, it would annoy the crap out of me...
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
i want to make a program which can replace the desktop window manager in window... i want my program to handle all the open windows like the way i want it to... is it possible...
a window opens it comes to center. when it looses focus of when i'm done with it it goes to either side of screen..
Dwm does it in a different way, it minimizes the windows to taskbar until again activated..and it restores the window in the last opened place...
|
|
|
|
|
Based on this and the other post I think you need to write your own operating system.
|
|
|
|
|
Really...
doesn't any namespace can help me with this... C# has so many namespaces... u must be knowing some which can handle the windows...
|
|
|
|
|
It is likely possible, but probably very difficult, error-prone, and unlikely to be welcome to the user. All-in-all it's not worth the trouble.
|
|
|
|
|
m ready to do the hard work...
m ready to do it...
just guide me.. plz..
i wanna make this application... guide me...
|
|
|
|
|
ayandelhi wrote: m ready to do the hard work...
m ready to do it...
But are your users ready to use it?
|
|
|
|
|
He's correct. If you want a smooth version of this, you'd have to rewrite part of the Win32 API. There is no namespace or class in the .NET Framework that can do this for you. The only way you can do it is if you used a couple of the Win32 API functions, constantly polling for the foreground window and moving it when it appears. This will introduce a flicker as you have to wait for the window to show up in one spot then move it, painting the window twice in two different spots. There is no way to avoid this.
|
|
|
|
|
the problem u are mentioning... is tolerable.. i mean.. first let it be allowed to open as it opens then my program can take control of it... wat say...
|
|
|
|