|
one of the simplest possible solutions could be to add a panel in all your forms. keep all your controls inside those panels.
Add a bool property named BeintMoved in the form, and in the setter, change the visible property of the panel.
all you need now is to change this property while the form is being moved.
now, whenever form movement happens, this panel will become invisible and so will all child controls.
|
|
|
|
|
The thing is, I want the child mdi forms to stay in the container's border, so the container doesn't have any scroll bars and all the windows stay on the work area.
I have already did this, but the form flickers as it's moving. If I deactivate that option on windows, it doesn't happen, and the form still stays at the border. I imagine using panels, the form would still flicker.
|
|
|
|
|
I am sorry. I don't understand what you want. I thought you wanted to achieve a performance boost by hiding the content of child forms. In that case my solution does the job.
|
|
|
|
|
I want to prevent my child forms from getting out of the borders of the container, which I already did. Now my problem is, the form flickers whenever the user drags it out of the container, but it still stays inside.
Now I'm trying to do something like when you deactivate the "Show window content while dragging" option (you get a rectangle shadow when you move a window instead of moving the whole window) in the forms, not on the whole system. Or if it could be done with another way, I only want to stop the flicker, it's kind of annoying.
|
|
|
|
|
desto-tj wrote: Now I'm trying to do something like when you deactivate the "Show window content while dragging" option (you get a rectangle shadow when you move a window instead of moving the whole window) in the forms
To achive that you'll have to do one of these:
1) dig into the win32 API.
2) or make a trick like when you/user starts moving the form, hide it(or make it invisible) and
draw a rectangle on your container using the form size and location. When finished(mouse released)
change the location of the form and unhide it or make it visible.
Just some ideas. By the way did you set the DoubleBuffered properties to true to both the container and child forms? If not try it. Maybe it helps.
|
|
|
|
|
Hi all,
I'd been trying to set the focus on the property grid by code but I was not able to do it. Could anyone help me with this problem?
Thanks in advance.
Gustavo.
|
|
|
|
|
This seems to work fine for me:
propertyGrid1.Focus();
If you want to focus on a specific property, you must select it.
|
|
|
|
|
i make program that works on LAN network between two PCs how can i do it through internet
(note: the program has two parts the first one is client and the other is server and both of them TCP/IP)
what IP should i use
|
|
|
|
|
74.125.19.147
Just kidding. I don't understand, what is your question?
|
|
|
|
|
thanks
my program is like chat between two PCs i did it in LAN and the IPs are 123.0.0.1 and 123.0.0.2 for internet what is the IP should i use?
|
|
|
|
|
You have to have the two computers figure out eachother's IP addresses somehow. Typically, this is done by having a server negotiate between them (the server tells each computer what the IP is of the other computer). Since most computers have dynamic IP addresses, that's about the only way to do it. However, if one of your computers is a "server" with a static IP, you can have the other computer connect to that computer, at which point it can tell the server what it's IP address is.
If you just want the IP address of each computer for testing purposes, you can visit http://www.whatismyip.com/ on each computer to get that information. If they are on the same network, you may have problems because they may appear to have the same IP address. I'm not sure how you'd handle that.
|
|
|
|
|
|
I'm not familiar with that (just did a Google search), but it looks like UPnP is meant to discover devices on a given network. Don't think that'd work over the Internet.
|
|
|
|
|
It shouldn't, but he never specified which IP he wants to know where, there are many valid reasons to want to know the WAN IP of the local computer
|
|
|
|
|
thanks a lot
the two computers have dinamic IP but for small time i should have the same IP for that time i want my program works
|
|
|
|
|
sanforjackass wrote: how can i do it through internet
Consider studying ASP.NET. It should not be difficult if you can do a client-server application.
sanforjackass wrote: what IP should i use
A computer recognized IP should work!! Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
I'm trying to see the data that my WebBrowser posting back to the server.
I'm navigating to http://www.finaid.org/calculators/costprojector.phtml[^] (in my WebBrowser), filling in the few calculator boxes, then clicking calculate.
I have a breakpoint at the WebBrowser_Navigating event and checked the memory for both my WebBrowser and the event's WebBrowserNavigatingEventArgs but have been unable to find my test data. I see that the (WebBrowserNavigatingEventArgs) e.Url from the WebBrowser_Navigating event is attempting to open "http://www.finaid.org/calculators/scripts/costprojector.cgi" but I don't see the calculator parameters anywhere (the post content or request data).
Does anyone know where I can see this data or be able to point me in the right direction?
Thank you all in advance.
Matt
|
|
|
|
|
Fiddler2 allows you to see requests/responses.
|
|
|
|
|
Thank you! Fiddler looks very promising!
I am still wondering how this can be done programmatically in .NET. Does anyone have any ideas?
Thank you again,
Matt
|
|
|
|
|
This page shows how to to monitor network traffic. It basically monitors all traffic then says to filter out based on protocol (e.g., HTTP).
|
|
|
|
|
You can use FiddlerCore[^] to build applications based on the Fiddler.
|
|
|
|
|
I want to use FFTW in C#, but I can not get it work. anyone knows it?
there are lot of FFT implemented in C# but only supports with a data length of 2^n, anyone knows some good
FFT algorithm supports arbitray length?
thanks!!
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:12am.
|
|
|
|
|
thanks, but the link you give me does not work.
|
|
|
|
|
Take a look at ILNumerics[^] As long as you have the FFTW libraries in the same directory, all you need is the line
ILMath.FFT = new ILFFTW3FFT(); and ILNumerics will use FFTW.
DybsThe shout of progress is not "Eureka!" it's "Strange... that's not what i expected". - peterchen
|
|
|
|