|
I am not having trouble on figuring out those, the thing I am wondering is creating a form in that style. I think that form style is built-in Windows as a standart loading screen.
|
|
|
|
|
Do whatever you are doing in load on a separate thread. And while that is executed, set the border of your form to none and hide all the controls. Display just a label to the user with needed text.
This is no different than the previous post of mine except instead of having a separate form, you are doing same thing in the current form itself. This, IMO, is not a good way. You will need to write same thing again and again if there are some more forms which take time to load.
Go for what I had posted earlier. AFAIK it is a decent way to achieve this. I don't know if there is any other way to do this.
|
|
|
|
|
What could possibly be simpler than what you were told to do ? I mean, seriously ?
you need to put it in another thread if you want it to repaint itself while the app is busy. yes, the other apps do that, too
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
What I ment by simpler was something built-in to windows.
|
|
|
|
|
This is what I used the last time I needed this in Load event (formSplash is a borderless form).
Hide();
bool done = false;
ThreadPool.QueueUserWorkItem(
(x) =>
{
using (formSplash = new FormSplash())
{
formSplash.Show();
while (!done)
Application.DoEvents();
formSplash.Close();
}
});
done = true;
Show();
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Thank you for the code but a borderless form and a label does a little bit different comparing to the screen in screenshot.
|
|
|
|
|
You can use whatever border style you like if you set the form's ControlBox to false and Text to empty.
Alternatively, override OnPaint in the splash form and draw your own border etc eg.
protected override void OnPaint(PaintEventArgs e)
{
using (Pen pen = new Pen(Color.FromKnownColor(KnownColor.InactiveBorder)))
{
e.Graphics.DrawRectangle(
pen,
new Rectangle(
Point.Empty, new Size(Width - 1, Height - 1))
);
}
base.OnPaint(e);
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
|
|
Hi,
That looks remarkably like a button without a focus rectangle to me.
public class CuelessButton : Button {
public CuelessButton() {
}
protected override bool ShowFocusCues {
get { return false; }
}
}
Now dock it in a borderless form.
public partial class SplashForm : Form {
private CuelessButton button1;
public SplashForm() {
InitializeComponent();
this.button1 = new CuelessButton();
this.button1.Dock = System.Windows.Forms.DockStyle.Fill;
this.button1.Text = "Please Wait ...";
this.Controls.Add(this.button1);
}
}
Umm, I think that needs a bit of work but it looks about right!
Alan.
|
|
|
|
|
I recieved this error when i try to build my project
Files has invalid value "<<<<<<<<<<< .mine". Illegal characters in path.
All I did was clean up some basic coding. It doesn't have a line reference. I did a full solution seach but found nothing.
|
|
|
|
|
Try to search on google.[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
DID, But got help from another site. solved
|
|
|
|
|
That's fine,so share here that solution because it can be help for someone else.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
|
Hey everyone,
Any idea how can we trace the associated application of a given extension.. you know, the one that fires up as the standard associated application when double clicking a file, say WINWORD.EXE file for .doc and .docx, maybe WinZip.exe for .zip and .gz
Please help.
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
You will have to digg in to registries for that. Even this[^] article might help.
modified on Sunday, July 5, 2009 12:21 PM
|
|
|
|
|
Thanks mate!
I still have a question though, you see, I just want to trace the executable file to extract the icon, do you think you can help on that?? I have a listview control and when loading different files with different extensions, I want to give each file it's associated application icon and what you show me is the opposite..
Any idea??
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
|
Yayks! Did I need all this Looks quite informative but can you kindly point out for me what part exactly covers my problem?? Thank you Giorgi, and by the way, I bookmarked your wonderful article.
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
The article has table of content so it should help
|
|
|
|
|
Thanks mate!
Your "Extracting Icon by Extension" part is just what I needed, unfortunately, the thread cant be close, thanks to some passerby who voted your upper post to 1 so it balanced to 3 and hence still open!
Thanks again my friend!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hello,
i'm add a web service in C# win app throw a local network, so the WebService at another PC..
the webservice is added sucssfully and i see all the methodes in it ex: 'CheckUser'..when i create an object from webservice this error is appering to me..
ERROR: 'System.Web.Services.WebService' does not contain a definition for 'CheckUser'
so any help in that ERROR...!!!
Thanks
|
|
|
|
|
Check the web service for that method and its parameter types.
|
|
|
|
|
public WebService WebServ = new WebService();
WebServ. // when press ' . ' no one of he mehods is apper..
|
|
|
|