|
I trying to make a gaunt chart, I have added this dll file to the Resources but when I click on it, it is not displayed in the toolbox. I am using Visual Basic Express Edition.
|
|
|
|
|
Get that .DLL out of your resources, it's useless there.
You have to right-click the Toolbox, then pick Add/Remove Items... Either find your .DLL in the .NET Components or COM Components tab, or you can click browse to locate your .DLL file. If it's of the correct type, you'll get your icon in the Toolbox.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I use access 2000 in my Point of sales applications but my problem is that the database keeps growing and growing, I need to use another type of database, what do u suggestthan ks alot
ps:I can't use MSSQL becuase it needs space on the PC
RJ
-- modified at 4:05 Saturday 25th February, 2006
|
|
|
|
|
rawanrawan wrote: I need to use another type of database, what do u suggest
Depends really on how big the db is going to get. My suggestion would be Microsoft SQL Server or MySQL (if you are on a budget). Microsoft SQL Server will scale very nicely.
...Steve
"Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." (Translation: I'll show you the way, but not write the code for you.) I read that somewhere once
-- modified at 4:04 Saturday 25th February, 2006
|
|
|
|
|
i am a new user of vb.net. i need help .plz anybody can tell me how to connect sqlserver2000 database and vb.net wizard.
|
|
|
|
|
|
how to build Employee appraisal system using VB.NET.plz send available materials
sundar
|
|
|
|
|
show us the money, no one builds a system for nothing.
|
|
|
|
|
below there is a link to draw the money.......
www.fraudmoney.com
and account number is
000000000000000000000
sundar
|
|
|
|
|
sundar_karthik wrote: www.fraudmoney.com
and account number is
000000000000000000000
That is funny, sundar. What materials are you looking for to help with your project?
PJC
|
|
|
|
|
First Sorry For My Bad English
In easy way (for me ) to assign object variable to become object is using Set statement. Example:
...
Dim oForm As Form1
Set oForm = New Form1
... But In other case I found a hard way (for me again of course ), how can I get object and assign it to variable, in condition that I just only have the Object.hWnd value??
Plez can some one in the light place or in the dark place can help me to get object, if I just only have the Object.hWnd value???
One more things if any one can help me, please send the answer to my Email.
Best regards,
The Ghoib
-- modified at 20:39 Saturday 25th February, 2006
|
|
|
|
|
Ghoib wrote: One more things if any one can help me, please send the answer to my Email.
Nope. That's not how this works...
Ask for your question....Your English is pretty terrible, so let me see if I got this right. You trying to create an instance of an object, using nothing but a handle??
Well, the Control class will return a Control object using its shared FromHandle method.
Dim objControl As Control = Control.FromHandle(handle)
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 22:26 Saturday 25th February, 2006
|
|
|
|
|
The code isn't work in VB not .NET (cause I had try it). I think that code is work for .NET, but thanx any way (RageInTheMachine9532)
But if you have any solution or any one else I will be happy to hear that.
Oh ya, thanx for your opinion "....Your English is pretty terrible" I will learn hardly.
BTW how my english now .
The Ghoib
|
|
|
|
|
Are you saying that you're looking to create an object from ANY window handle, even if your app didn't create the window?
It doesn't work that way. You can't create an object for a window that the .NET Framework didn't create.
And I made th comment I did because your question is impossible to understand with any certainty. It's also why I'm asking more questions about your questions. We need clarification!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 7:38 Sunday 26th February, 2006
|
|
|
|
|
What I mean with "The code isn't work in VB not .NET" is the code that you wrote isn't work in VB6 and the code that I wont is in VB6 not in VB .NET, sorry if it become a little mis-Understanding. Why I want to try it in VB6 so deeply, because in MSDN I saw the code like you wrote, but the defferent is that code in MSDN is wrote in VC6. If I not wrong the code is something like this:
...
oThing = FromHandle(hWnd)
... So I wondering if any way to do that in VB6?
"Untuk tumbuh itu tak perlu kerja keras
Tapi untuk menjadi bijaksana perlu kerja sangat keras"
Ghoib
|
|
|
|
|
No, there isn't. VB6 cannot create Form wrapper objects around windows that were not created under the VB6 Runtime.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Can anyone help with this. . . I am creating an application using an MDI form. The child form displays fine when I select the menu option. However, I do have two issues.
1) If I select the menu option a second time - a second form is displayed. I want to limit this to only one instance of this particular form.
2) If I close the form and click on the menu option, the next instance of the form does not appear in the same spot. It appears slightly below where the previous form appeared.
Here is a snipet of the code. . .
Private Sub mnuAdminTradeManager_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuAdminTradeManager.Click
'Declare new Trade Manager form
Dim frmTradeManager = New frmTradeManager
'Set the child forms MdiParent property
frmTradeManager.MdiParent = Me
'Show Trade Manger
frmTradeManager.Show()
End Sub
Thank you
|
|
|
|
|
Hi,
Try this (it can be used for all the child form)..
Private Sub mnuAdminTradeManager_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuAdminTradeManager.Click<br />
<br />
Dim frmTradeManager As frmTradeManager<br />
<br />
frmTradeManager = IsOpen("YourFormName")<br />
If frmTradeManager Is Nothing Then<br />
frmTradeManager = New frmTradeManager()<br />
ShowForm(frmTradeManager)<br />
Else<br />
ShowForm(frmTradeManager, True)<br />
End If<br />
<br />
End Sub<br />
<br />
Private Function IsOpen(ByVal formName As String) As Object<br />
Dim intChildCount As Integer<br />
For intChildCount = 0 To Me.MdiChildren.Length - 1<br />
If Me.MdiChildren(intChildCount).Name = formName Or Me.MdiChildren(intChildCount).Text = formName Then<br />
Return Me.MdiChildren(intChildCount)<br />
End If<br />
Next<br />
Return Nothing<br />
End Function<br />
<br />
Private Sub ShowForm(ByRef DisplayForm As Form, Optional ByVal isOpened As Boolean = False)<br />
Try<br />
DisplayForm.MdiParent = Me<br />
DisplayForm.WindowState = FormWindowState.Maximized<br />
If isOpened = False Then<br />
DisplayForm.Show()<br />
Else<br />
ActivateMdiChild(DisplayForm)<br />
End If<br />
<br />
Catch exc As Exception<br />
Throw exc<br />
Finally<br />
End Try<br />
<br />
End Sub
I hope this will help u......
Regards,
Ritesh
|
|
|
|
|
Hi ,
Is it possible to use Indexed text box, bcz I want to do some manipulations like when enter some numbers into text box (Some grid like) I want to calculate the average and upper n lower limits like that..
Thnx
Jr
|
|
|
|
|
There's no such thing as an Indexed TextBox, or what used to be, in VB6, a control Array. You can simluate such things yourself. All you need to do is add all the TextBoxes to your own array.
Dim textboxes(10,10) As TextBox
For i As Integer = 0 to 9
For j As Integer = 0 to 9
textboxes(i,j) = New TextBox()
With textboxes(i,j)
.Location = New Size(blah, blah)
' keep setting properties for your TextBoxes...
End With
' Don't forget to add each TextBox to the Form's
' Controls collection, otherwise you'll never see it!
Me.Controls.Add(textboxes(i,j))
Next
Next
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I was wondering if anyone knows a link to a walkthrough for a chatroom client in VB.NET/ASP.Net
Regards,
Maurader
|
|
|
|
|
There's dozens of examples of this type of app. All you have to do is Google[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
please go through the following code...i'v tried to apply the disconnected mode using dataset and data adapter...it's givng an error of this fashion...
"System.DataUpdate requires a valid Insertcommand when passed DataRow collection with new row" for the da.update command in addcmd_click event......please help
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim con As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=G:\Documents and Settings\Administrator\Desktop\exp_mod\exp.mdb;"
cn.ConnectionString = con
dao = New OleDbDataAdapter("select * from exp_mas_bank", cn)
dao.Fill(ds, "bank")
End Sub
Private Sub addcmd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addcmd.Click
Dim drs As DataRow = ds.Tables("bank").NewRow
drs(0) = cdtxt.Text
drs(1) = nmtxt.Text
drs(2) = addtxt.Text
ds.Tables("bank").Rows.Add(drs)
Try
dao.Update(ds, "bank")
Catch ex As Exception
MsgBox(ex.Source & ex.Message)
End Try
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ds.Tables("bank").Rows(0)("code") = ds.Tables("bank").ToString & " ***"
Try
cn.Open()
dao.Update(ds, "bank")
cn.Close()
Catch ex As Exception
MsgBox(ex.Source & ex.Message)
End Try
End Sub
|
|
|
|
|
Hi kamalika,
Before calling dao.Update to insert/update or delete data from Dataset to database you have to set the dao.InsetCommand,dao.UpdateCommand and dao.DeleteCommand property with approriate command
Regards,
Ritesh
|
|
|
|
|