Click here to Skip to main content
15,921,463 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Upgrading VB5 application to VB.Net or C# Pin
emunews31-Oct-08 3:15
emunews31-Oct-08 3:15 
QuestionChanging the location of a form through code Pin
'Drew6-Aug-07 13:01
'Drew6-Aug-07 13:01 
AnswerRe: Changing the location of a form through code Pin
Luc Pattyn6-Aug-07 13:17
sitebuilderLuc Pattyn6-Aug-07 13:17 
GeneralRe: Changing the location of a form through code Pin
'Drew6-Aug-07 13:23
'Drew6-Aug-07 13:23 
GeneralRe: Changing the location of a form through code Pin
The ANZAC6-Aug-07 13:28
The ANZAC6-Aug-07 13:28 
GeneralRe: Changing the location of a form through code Pin
Luc Pattyn6-Aug-07 13:31
sitebuilderLuc Pattyn6-Aug-07 13:31 
Questiongetting memory info from wmi Pin
dduffy6-Aug-07 11:33
dduffy6-Aug-07 11:33 
AnswerRe: getting memory info from wmi [modified] Pin
Luc Pattyn6-Aug-07 11:41
sitebuilderLuc Pattyn6-Aug-07 11:41 
Hi,

these are the steps:
- get the size (you seem to do this with WMI), it will be a long 32-bit integer
BTW: I am C# programmer who prefers to use P/Invoke to call GlobalMemoryStatus()
in kernel32.dll, since I don't like WMI that much, it is slow for starters
- optionally: round it to a multiple of whatever seems appropriate
- divide by 1024*1024
- show it somehow (maybe as Label.Text)

You should get most of this working, then ask a detailed question if and when you're stuck.

Smile | :)


-- modified at 17:47 Monday 6th August, 2007

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


AnswerRe: getting memory info from wmi Pin
'Drew6-Aug-07 11:53
'Drew6-Aug-07 11:53 
GeneralRe: getting memory info from wmi Pin
Luc Pattyn6-Aug-07 12:00
sitebuilderLuc Pattyn6-Aug-07 12:00 
GeneralRe: getting memory info from wmi Pin
'Drew6-Aug-07 12:17
'Drew6-Aug-07 12:17 
QuestionResizing a form in code Pin
'Drew6-Aug-07 11:09
'Drew6-Aug-07 11:09 
AnswerRe: Resizing a form in code Pin
Luc Pattyn6-Aug-07 11:12
sitebuilderLuc Pattyn6-Aug-07 11:12 
QuestionRe: Resizing a form in code Pin
'Drew6-Aug-07 11:23
'Drew6-Aug-07 11:23 
AnswerRe: Resizing a form in code Pin
Luc Pattyn6-Aug-07 11:27
sitebuilderLuc Pattyn6-Aug-07 11:27 
QuestionRe: Resizing a form in code Pin
'Drew6-Aug-07 11:41
'Drew6-Aug-07 11:41 
AnswerRe: Resizing a form in code Pin
Luc Pattyn6-Aug-07 11:46
sitebuilderLuc Pattyn6-Aug-07 11:46 
GeneralRe: Resizing a form in code Pin
'Drew6-Aug-07 11:47
'Drew6-Aug-07 11:47 
GeneralRe: Resizing a form in code Pin
Luc Pattyn6-Aug-07 11:56
sitebuilderLuc Pattyn6-Aug-07 11:56 
GeneralRe: Resizing a form in code Pin
The ANZAC6-Aug-07 12:01
The ANZAC6-Aug-07 12:01 
Questiondisable row Pin
jds12076-Aug-07 7:54
jds12076-Aug-07 7:54 
AnswerRe: disable row Pin
Dave Kreskowiak6-Aug-07 8:01
mveDave Kreskowiak6-Aug-07 8:01 
AnswerRe: disable row Pin
nlarson116-Aug-07 10:50
nlarson116-Aug-07 10:50 
AnswerRe: disable row Pin
'Drew6-Aug-07 12:12
'Drew6-Aug-07 12:12 
QuestionDataTable, DataSet, DataGrid. I need to find out when one of these adds a row. Which one do I use? Pin
Cory Kimble6-Aug-07 7:33
Cory Kimble6-Aug-07 7:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.