|
Thanks.
---
Year happy = new Year(2007);
|
|
|
|
|
Hi everyone,
I was developing a simple pop3 client application when I had two problems.
1. Does anyone know how to fetch an email body (skipping the bloody header)
2. Do you know how to filter the text so we only get a plain (non formatted) text??
Please advise,
Many thanks
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
See this[^] CP article by Peter Huber.
/ravi
|
|
|
|
|
Thank you
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
I need help on how to use the Progress Bar.
I am instantiating a class and using a method in there to merge files. I want a progress bar to be displayed which will show what percentage of the total is completed.
Help!
|
|
|
|
|
|
Howdy!!
First, you have to set the maximum limit you want to reach (1) for example if you want to set this progress bar for measuring copied files, first you have to count your files "say you put their names in an array" then you should check (frequently/on flag changing basis) how many files had been copied so far "using some sort of if statement that might be included in a thread or timer" then increment the progress bar value by the percentage of the completion (FilesCopiedSoFar/TotalNumberOfFiles) and so on untill you reach the 100%
I hope this's useful.
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
I need to format disk drives programmatically on command through the application I'm working on. Any ideas?
scooter_jsm
|
|
|
|
|
|
Hopefully, you're not working on a virus program
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
|
And he's a lurker! Check his profile
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
hi
i want to create a player that play video files via streaming. but how to do that ? i must use directx or wmp SDK ..? can any one help me ?
thaks
|
|
|
|
|
I am want to embed another window application inside my windows form, is these even possible to do?
example, main form, inside of that i would like to open a few sessions of notepad inside my app's form.
|
|
|
|
|
|
and add notepad.exe to my project?
|
|
|
|
|
Sytem.Diagnostics.Process.Start("Notepad.exe") will run notepad.
I don't know that notepad exposes a RCW or Win32 API such that it can be embedded in WinForms.
To open a text editor as a child window within an MDI application you may consider implementing the text editor.
Sorry I misunderstood you.
|
|
|
|
|
Starting NotePad sessions from your app is easy (see Process.Start() [^]. Running NotePad sessions "within" your app's main form is hard, if not impossible.
/ravi
|
|
|
|
|
I would like to run notepad "within" my app
|
|
|
|
|
Did you take a look at AnAppaDay[^]? That link points to a download (with source) in which the author has written an app that hosts other applications inside it.
|
|
|
|
|
Basically, you start Notepad as a seperate process. Then you have to call into the Win32 API FindWindow, IIRC, to get the handle to the Notepad window, then call SetParent to make the Notepad window a child of your app's window.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
That sounds marvelous, but does it really work, the SetParent documentation states
"The new parent window and the child window must belong to the same application."
Luc Pattyn
|
|
|
|
|
Luc Pattyn wrote: That sounds marvelous, but does it really work,
Yep. Try this. Create a new Windows Forms app and drop a button and a panel on it. Expand the panel to take up most of your form and anchor it on all four sides. Then drop this code in:
using System.Runtime.InteropServices;
using System.Diagnostics;
.
.
.
[DllImport("user32.dll", EntryPoint="SetParent", SetLastError=true)]
private static extern IntPtr SetParent(IntPtr hwndChild, IntPtr hwndParent);
.
.
.
private void button1_Click(object sender, EventArgs e)
{
Process p = Process.Start("Notepad.exe");
p.WaitForInputIdle();
SetParent(p.MainWindowHandle, Panel1.Handle);
}
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi, is it possible if i can reference the asp:link button id in javascript so within the javascript function i can do something with the link button like make button enabled
i tried doing something like that in javascript didn't work. Can somebody help me in it.
<asp:linkbutton id="myLnkBtn" runat="server" onclientclick="Showme">
function Showme()
{
myLnkBtn.Enabled=true;
}
|
|
|
|
|
try myLnkBtn.disabled = false;
|
|
|
|