|
This has nothing specifically to do with VB.NET - However, my general advice is to go for the largest / highest resolution that you can afford. Also take into account the quality of the display - Your eyes cannot be replaced easily.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
What does this have to do with VB ?
Anyhow, I'd go with the 17", because it's basically 18" compared to a CRT, and unless either of those offers 1600x1280, the extra room on the 19" will be wasted.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
i built a class.. and i wanna (after init the components) to wait some action from the user (to rais event)
what i should use to tell my code to wait...?
should i use the thread class?
Militiaware
Faris Madi
|
|
|
|
|
sure it is the best solution
|
|
|
|
|
Nothing at all - your code WILL wait if it's a windows app, that's how windows works.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Yep just like Christian says, threads are meant for doing several tasks at once (or make a task and still be able to have input on the form for instance).
daniero
|
|
|
|
|
i understand they way the windows works...
but my program doesn't need a form.....
it's only a NotifyIcon and ContextMenu....
so i've to build it on a class.....
i don't understand what could makes my program to wait the user to do some event like clicking on a menu item?
what you think..if you could help me?;)
Militiaware
Faris Madi
|
|
|
|
|
Where does the context menu appear ? I assume this is a task bar icon ? If so, your app is still a forms app, it has a message pump and responds to UI events.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
My NotifyIcon appears nearby the clock..
now the Notifyicon.contextmenu = contextmenu1
Notifyicon.icon= icon
now all that exit in a class1.vb and it has a sub main to make the pgm startwith.
actully the code executed from the begining to the end of the code then the application end (close)
and it doesn't wait the user like the form do.....
Militiaware
Faris Madi
|
|
|
|
|
militiaware wrote: My NotifyIcon appears nearby the clock..
As I thought. So, you have an app with a message loop, even if there's no visible form.
militiaware wrote: actully the code executed from the begining to the end of the code then the application end (close)
and it doesn't wait the user like the form do.....
So you've got the wrong sort of project to start with. You need to do a forms app, I believe. I can't imagine what else it would be. Did you find an article on apps that run in the system tray, or are you working it all out as you go ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
i don't think i chosed the wrong sort of project
i'll tell what i did:
i open new windows project.
i deleted the default form "form1"
add new class "as Class1.vb"
in here i create the notifyicon and the context menu and menuItems objects...etc
this class has a sub main....
and that's it..
the that give examples...doesn't give what i want...
these examples works in a default way.... (i.e: drag the notifyIcon to the form....change some properties of it .....etc etc..)
Militiaware
Faris Madi
|
|
|
|
|
Well, you need a form class in order to have a message pump. So, there's your problem. You need to create a form, then hide the form itself and move the icon to the tray. But you need your code in a form class, so that there's a message pump happening.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Actully, this idea crossed my mind...
but what if i don't need to use extra memory of the system larger than what my program need to be run....
in another way: Is there some way to solve the problem without using the form class and its size in the memory...because i don't need a form....
Militiaware
Faris Madi
|
|
|
|
|
militiaware wrote: Is there some way to solve the problem without using the form class and its size in the memory...because i don't need a form....
No. And, the size of a form that is invisible and does nothing is next to 0.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I know how to paint any control's background, like painting Form's background using event Form_Paint.
Now I painted Panel's background through event Panel_Paint, and wanted to save it as picture/image in any format (prefer jpeg). Tell me how can I do this in VB.NET.
Thanx
Iftikhar Ali
|
|
|
|
|
Create a Bitmap object instead, and paint on that.
---
b { font-weight: normal; }
|
|
|
|
|
Please give me brief example (code).
|
|
|
|
|
Create a bitmap:
Dim bitmap as Bitmap = New Bitmap(400, 400)
Create a graphics object for the bitmap:
Dim g as Graphics = Graphics.FromImage(bitmap)
Now you can use the graphics object do draw on the bitmap, then use the Save method of the bitmap to save it. Remember to dispose the bitmap when you are done with it.
---
b { font-weight: normal; }
|
|
|
|
|
Thanx,
Well the real problem is something else. Its:
I use DirectX to play video, which require any control to be an "owner" in which it plays video. Now I selected to play video in Panel control & wanted to save snapshot/picture of any paused frame. Thats taking picture from movie.
Now tell me the solution.
|
|
|
|
|
Why didn't you ask that in the first place, then? As far as I know, it's completely different, as the video is probably drawn directly to the screen, not painted using a graphics object. As the question is so different, I think that you should post is a new question.
---
b { font-weight: normal; }
|
|
|
|
|
OK I will. Thanx for all you did for me.
|
|
|
|
|
I use the following code to find the row number from MyDataTable.DefaultView where field1 = TextBox1.Text.
MyDataTable.DefaultView.Sort = "field1"
RowNumber = MyDataTable.DefaultView.Find(TextBox1.Text)
How do find the corresponding row number in MyDataTable?
Thanks.
|
|
|
|
|
I am a newish VB.NET user.
I have a windows form in a project that has two datasets.
I would like to take the datasets and the form to another project.
I copy the .xsd and .xsx files over then use "Add Existing Item"
I do the same for the form and use "Add Existing Item".
Unfortunately all the dataset details are missing in the form, and all the bound field information is blank.
What am I doing wrong? I have searched on web for hours and tried all sorts of things, apart from copying entire project into a new folder and then renaming it, which is not ideal, I don't know what to do!
|
|
|
|
|
I have an MDI application. The forms have the following style.
form_load()...
ControlBox = False
MaximizeBox = False
MinimizeBox = False
FormBorderStyle = FormBorderStyle.None
WindowState = FormWindowState.Maximized
end sub
I have Form1 open, and if i open Form2 and close Form2, Form1 gets activated again, which is fine. But it gets resized to a smaller size and even th following code in form1_Activated doesnt resize it back to its original size.
private sub form1_Activated(....)
Me.WindowState = FormWindowState.Maximized
Me.Height = mszForm.Height
Me.Width = mszForm.Width
end sub
What is going on? thanks for any help.
vk
|
|
|
|
|
How to set the connection to an access db using VB.Net without specifying the drive name.
With Best Regards,
Mayur
|
|
|
|