|
Hi koolprasad2003,
I found this (put in in a new form ...)
Private Declare Function GetDiskFreeSpaceEx Lib "kernel32.dll" Alias _
"GetDiskFreeSpaceExA" (ByVal lpDirectoryName As String, _
lpFreeBytesAvailableToCaller As ULARGE_INTEGER, lpTotalNumberOfBytes As _
ULARGE_INTEGER, lpTotalNumberOfFreeBytes As ULARGE_INTEGER) As Long
Private Type ULARGE_INTEGER
LowPart As Long
HighPart As Long
End Type
Private Sub Form_Load()
Dim result As Long
Dim x As ULARGE_INTEGER
Dim y As ULARGE_INTEGER
Dim z As ULARGE_INTEGER
result = GetDiskFreeSpaceEx("c:\", x, y, z)
Debug.Print result
Debug.Print x.HighPart, x.LowPart
Debug.Print y.HighPart, y.LowPart
Debug.Print z.HighPart, z.LowPart
End Sub
Greetings, Thomas
|
|
|
|
|
hi all,
can i launch my application by pressing a key or key combination(mean define hot key) in visual basic 6.0 ?
Please guide me or provide me some link
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
You normally define a hotkey to launch your application in the shortcut to the application, not in the application itself.
|
|
|
|
|
hi all,
i want to determine total number of account(user) in system & current user which is logged in using visual basic 6.0
can anybody guide me or provide some link ?
any help will be appreciated.
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
You can list the local accounts using most of the code from this[^] script.
|
|
|
|
|
Hello everyone!
I am interested in building a gantt chart component in vb .net. I've been around and saw alot of third-party components that are really good but the problem is I dont want to buy them but instead I would want to build one myself. It wouldn't have to be as great, just a basic one will do.
Given that there is many third party components out there, im conviced that it can be done! So in order to go ahead and build one, I assume i'll have to build a custom control, acquire knowledge in GDI+ and inherit and manipulate the datagrid component?
In my opinion, the Gantt Chart component should have the elements of rows and columns; rows so that bars can be in placed accordingly, the bars will be representing the duration for each task and the columns to represent a timeframe. The bars may consist of lines that will connect these bars with one and another to represent dependencies. Thus suggesting a line to be drawn thru GDI+ i suppose?
So with the basics of what im trying to create here, im pretty much clueless on how I'm going to go ahead and build one as I never build a custom control before.
I really want some suggestions on this...is there another way of building a Gantt Chart? Or am I heading off the wrong direction? Or have I got it all just plain wrong. =(
Hope someone can assist me! Thanks in advance!
Jensen
Here are some links to those third party components I was refering to;
http://dlhsoft.com/DeveloperTools/ProjectDataControlLibrary/Samples.aspx
http://www.ilog.com/products/ganttnet/
http://www.howtoselectguides.com/dotnet/charting/
|
|
|
|
|
jensenx wrote: So in order to go ahead and build one, I assume i'll have to build a custom control, acquire knowledge in GDI+ and inherit and manipulate the datagrid component?
So far, so good. Though, I'd forget the DataGrid stuff and just draw the entire control using GDI.
jensenx wrote: So with the basics of what im trying to create here, im pretty much clueless on how I'm going to go ahead and build one as I never build a custom control before.
You've picked a very LARGE one to start with. I'd recommend not doing this until you've gone through some smaller controls to get the basics of how controls work, drawing, managing your controls state, managing data, databinding support, and the relationship between your data model and drawing it.
Your control is going to have to track a bunch of data and do a ton of math to figure out how it's going to draw itself, positioning text, bars, grid lines (if any), ... Start small and work your way up.
|
|
|
|
|
Hi frnds.
i am new for the dotnet.
i m moving from vb 6.0 to vb.net
Is there any way to use the crystal report available with VS 2003/2005 in VB 6.0
Thanks in advance
«·´`·.(*·.¸(`·.* *.·´)¸.·*).·´`·» ©
*.¸¸.·´¨` »*Vicky*«´¨`·.¸¸ .*
«·´`·.(*.·´(¸.·* *·.¸)`·.*).·´`·»
|
|
|
|
|
You're going to have to try adding the COM components to the toolbox in VB6 and try it yourself. Usually, once people go to VB.NET, they don't go back to VB6 (unless absolutely forced to.)
|
|
|
|
|
in my project, i use toolbar toolbar in my buttons...i used case structure for the functions of each buttons in the toolbar but theres an error in it...
my codes goes like this:
Select Case<br />
Case 0<br />
Dim subjects As New subjects<br />
subjects.Show()<br />
Me.Hide()<br />
Case 1<br />
Dim file_maintenance As New file_maintenance<br />
file_maintenance.Show()<br />
Me.Hide()<br />
Case 2<br />
Dim grade_entry As New grade_entry<br />
grade_entry.Show()<br />
Me.Hide()<br />
End Select
is this code correct???
or this:
dim keyin as integer <br />
Select Case keyIn<br />
Case 0<br />
Dim subjects As New subjects<br />
subjects.Show()<br />
Me.Hide()<br />
Case 1<br />
Dim file_maintenance As New file_maintenance<br />
file_maintenance.Show()<br />
Me.Hide()<br />
Case 2<br />
Dim grade_entry As New grade_entry<br />
grade_entry.Show()<br />
Me.Hide()<br />
End Select<br />
in the first code, there is an error so i can't run my program...
in the other code, the 1st button is only functioning...
what is the really correct code for this???
|
|
|
|
|
in the first case statement:
Rharzkie wrote: Select Case
This should be Select Case myVariable where myVariable is the variable you are referencing to.
The second one seems fine, there must be an issue in the way the keyIn is changed, it must not be being changed when the other buttons are pressed.
|
|
|
|
|
but when i used the 2nd codes, the first button is only functioning...in the other button, the function also same as the ist button (it should not be the same)...in short, case 1 in only functioning but the others did not...what's wrong with that???
|
|
|
|
|
like The ANZAC said the second case looks to be correct the problem may lay in how you change you're variable keyin
perhaps debugging the project and looking at when the keyin variable is changed or not changed will help you further
from the behavior you described my guess would be that the keyin variable isn't changed therfor the same code is excecuted for all buttons
|
|
|
|
|
That is all.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
hello everyone !
i have a picture in the picture box , and i want to make form style by use picture in the picture box. what should i do ?
pls give me some code about that ?
Reguard
From Anatha Man
|
|
|
|
|
|
|
Hi Guys,
Would you be able to help me find the code for a program that finds dead links and orphan file in a webpage developed in pure HTML. Actually, its my project for my course. I have tried for weeks and code project is my last hope.......
Thanks
|
|
|
|
|
Devils Den wrote: Actually, its my project for my course.
You'll find the code when YOU write it. isn't that the whole point behind the course? YOU write the code and learn by doing so? What skills are you going to show off by using someone elses code? "This is how I have people write my code for me!"
Devils Den wrote: I have tried for weeks and code project is my last hope.......
You've already passed you're last hope of someone writing it for you. We're you're last hope when you get stuck writing your own code.
|
|
|
|
|
vb.net 2005 + Access database.
I have created dataset with wizard.
In one situation i want to use the RowUpdated event of Dataadapter.But how to get the dataadapter because it's only tableadapter and there's no Rowupdated event for tableadapters.
|
|
|
|
|
Mmmm ...
Are you wanting to intercept the saving of data to the database
or just looking to get the table's rowchanged event?
|
|
|
|
|
Hello !
this.cmbCurencyType.DataSource = ds.Tables["ss"];<br />
this.cmbCurencyType.DisplayMember = "CurrCode";<br />
this.cmbCurencyType.SelectedItem = "CurrName";
so i have 2 columns in the DataSet in the comboBox the value of the column CurrCode is displayed.
I put a label beside where i need to display the value in the CurrName Column according to the one selected in the ComboBox.
can someone help me
Thanks in advance
Assaf
|
|
|
|
|
The SelectedItem property takes the item to show, not the name of a data source. You want to set the DataMember ( from memory ) to CurrName, then handle the selected index changed event and set your label text there.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello
Maybe i put an error in describing my question,
what i try to say is that in th dataset i have two column
i give one for the combobox to display the value from
and i need to put in a label the appropriate value in the second column for the one selected in the combobox
Thanks
Assaf
|
|
|
|
|
Yep, that's how I understood the question.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|