|
WinMerge does that.
When you've not selected a file yet, the file name text box says "Folder selection". When you click OK without specifying a file, it selects the folder instead. I suggest you download it and see how it works.
I imagine it would create problems if the user wanted to select a file called "Folder selection" though....
Cheers,
Vikram.
The cold will freeze our stares
We won't care...
|
|
|
|
|
Hi all,
i want to use WebBrowser Control to my Windows application.
Here i want to provide an option to client, where in which he can update the current version of software[the laser version of software that he is using prasently]
i'm plannning to catch the current version in a string and i wanna check it online on a website which has the current version.
can you plese tell me how to make it.
thnx in advance,
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
|
I understand you want to have certain data from a HTTP webpage?
I experimented with this recently, and here is some code.
This method just returns all of the HTTP code from a certain page. You could use basic string functions to parse it, and then give the user a link to the proper website to get an update.
<code> public static string GetData()
{
string strResponse;
WebRequest myWebRequest =
WebRequest.Create("http://www.sybelles.com/frhiver/METEO/meteo/index.html/typeid-5");
using (WebResponse myWebResponse = myWebRequest.GetResponse())
{
using (Stream ReceiveStream = myWebResponse.GetResponseStream())
{
Encoding encode = Encoding.GetEncoding("utf-8");
StreamReader readStream = new StreamReader(ReceiveStream, encode);
strResponse = readStream.ReadToEnd();
}
}
return strResponse;
}</code>
Other options are
- making a special page that only has the version number
- making a simple web service (look here on CP for tutorial)
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Hi,
i have the object class and i want to generate the xsd. How to make this??
|
|
|
|
|
You're probably looking for the XML Schema Definition Tool (Xsd.exe)[^]
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
i have try this but ..... no result. I try to transform one xsd to one class (and this works) and to transform the class (dll) in the xsd file but for my xsd this operation have one error. For one simple xsd file this program works.
tks
|
|
|
|
|
darkcalin wrote: I try to transform one xsd to one class (and this works) and to transform the class (dll) in the xsd file but for my xsd this operation have one error. For one simple xsd file this program works.
I do not understand what exactly the problem is.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hi All,
I have making a installler which upload the file from local system to server.
In this,if I have to copy say 40,000 images .
If it was not able to copy all file it get rollback and then copy from first file .
I want to do,if it is not able to copy or stop at ant certain point ,then I want to copy the next file not to roll back and copy right from start.
please suggest some way
Thanks
|
|
|
|
|
i making an Windows Service Automatic Sheduler, i use following code in a class to run calc.exe, nodepad.exe,and other application or process, but the program appears or Run on background on WindowsTaskManager Process tab, not visible in the desktop. how to bring it to the desktop.
code--------
ProcessStartInfo pInfo=new ProcessStartInfo(path);
pInfo.WindowStyle=ProcessWindowStyle.Maximized;
Process p=Process.Start(pInfo);
code--------------
Sanjit.rajbanshi@wlinktech.com
-- modified at 5:34 Friday 23rd March, 2007
|
|
|
|
|
hello
i'm trying to load some web pages into my apllication and for that the above mentioned two dlls are required. i'm working with .Net platform 1.1.
is there any way i can load web pages into my application without the above mentioned dlls.
thanks for the time
|
|
|
|
|
|
the link tells me to use the wex browser control, but i can't find it in the toolbar meu.
where can i find the webbrowser control??
by the way i'm working on framework 1.1
|
|
|
|
|
I am trying to maximize a window from the system try in c#. I believe I need to get the window handle to do this so my solution looks something along the lines of this:
public class WinAPI<br />
{<br />
public const int WM_SYSCOMMAND = 0x0112;<br />
public const int SC_MAXIMIZE = 0xF030;<br />
[DllImportAttribute("user32.dll")]<br />
public static extern int SendMessage(IntPtr hWnd, int Msg, int<br />
wParam, int lParam);<br />
}<br />
public void Maximize()<br />
{<br />
<br />
Process[] outlookprocess = Process.GetProcessesByName("OUTLOOK");<br />
IntPtr window = outlookprocess[0].MainWindowHandle;<br />
WinAPI.SendMessage(window, WinAPI.WM_SYSCOMMAND, WinAPI.SC_MAXIMIZE, 0);<br />
<br />
}
Only problem is that MainWindowHandle always returns 0. I can put a break point in and the "outlookprocess[0]" object looks fine. However the window doesn't open. Anyone know what I am doing wrong?
EDIT: Just realised that I can get the main window handle if the window is open (i.e. not in the system tray). Is there a way to get the main window handle if the process is minimized to the tray?
Cheers
Alex
-- modified at 5:17 Friday 23rd March, 2007
|
|
|
|
|
|
Hi, I have a DataGridView and a button inside one column. Every time I resize the column width manually, the button resize it's width automatically with the column.
I have set the Dock property of the button to 'Right', Anchoer to None. I want to make the width of button static (does not change with the column size)
Thanks!
Nathan
|
|
|
|
|
Set Dock property to None too.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Dock and Anchor are mutual exclusive. Anyway I did it by overriding onResize method of the button, thanks all the same!
|
|
|
|
|
Forgot about that. Try setting both properties to their default values i.e. Dock = None and Anchor = Top | Left . Should work and would be a smoother way to solve the problem than overriding OnResize .
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Can I change the value of a Static Variable....
|
|
|
|
|
yes
|
|
|
|
|
I would like to know how...
i have already given it a value and now i want to change it again in my programm....
|
|
|
|
|
just like you change the value of non static variables. static variables are not final variables
Chatura Dilan
|
|
|
|
|
ClassName.VariableName = newValue;
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
I got it... Thanks to all
|
|
|
|