|
Hi,
I've found a very interesting exaple in c#.net.
http://www.quantumsoftware.com.au/ProductsServices/WindowsFormsComponents.aspx[^]
But I want to use it in vb.net project.
So I want to convert all that needed into vb.net format.
But I have some problems with it.
Could anyone help me to convert.
I only need one example of right actions.
For example, can anyone convert for me ExtendedDataGridFormSample form and component?
Thanks
|
|
|
|
|
Why don't you just reference the assembly from that site and use it?
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
If I may use these files only adding them all to my vb project then could you please tell me what I need to do to use them?
|
|
|
|
|
You need to add areference to a compiled DLL. Then you can use those classes as any other .NET or your class.
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Thank you so much
|
|
|
|
|
How to validate the given text to the text area? for example check the phone number is it has only integers.
I'm new student to VB.NET
Please help me!
Sadee
skaushalye
|
|
|
|
|
Use the keypress event of the text box read this article[^] for more information.
|
|
|
|
|
sir, could u pls tell me ho wto create button back in vb.net?i m very new to this vb.
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
-- modified at 23:26 Monday 24th April, 2006
|
|
|
|
|
Keep this in the same thread please!
And you still haven't said what you mean by "back"... Back what?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
owh, i mean, that button will go back to the previous window,which is frmMain, when user click on it.i m vy sorry to bother u sir.thank u for ur help
-- modified at 23:56 Monday 24th April, 2006
|
|
|
|
|
You can call it anything you want, but usually they're called "OK" and "Cancel". The simplest form of this is to put these 2 buttons on a form and in the click events set the forms DialogResult property. You also set the form's AcceptButton property to the OK button and its CancelButton property to the Cancel button (after you put the buttons on the form!)
Private Sub OKButton_Click(blah, blah) Handles OKButton.Click
Me.DialogResult = DialogResult.OK
Me.Close()
End Sub
Private Sub OKButton_Click(blah, blah) Handles OKButton.Click
Me.DialogResult = DialogResult.Cancel
Me.Close()
End Sub
In the form that puts this form up:
Dim myNewForm As Form2
If myNewForm.DialogResult = DialogResult.OK Then
' Do whatever based on the data in myNewForm
End If
myNewForm.Dispose()
There's a more to forms and buttons than this, but way too much for a forum environment.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I have create an application which receive a command argument,
The sub main will check the process list, if the same with my application process name,
it will terminate. It is my stupid method to control single instance.
But how can I get the second command argument?
For example,
First time, command argument is "Hello"
and the application shows "Hello"
Second time, command argument is "World!"
but the process list contains my process name, and so it terminate.
How can I send the "World!" to existing instance of my application?
Can I add any listener to do that except adding a watch file handler?
Please advise, Thank you!
|
|
|
|
|
All you have to do is search the articles for "single instance" and you'll find a few examples of what you're talking about. Or click here[^]...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi everybody ,
can you tell me please how to update a database with a command builder ?
actualy i know the code to do it ,or the codeS to do that & i want you see this S cuz i found many codes do that
i havn't understood all the statements can you axplain to me please ??
thank you very much;)
try to be good if you can't be the best
|
|
|
|
|
please i want to know how can i bind a file music with a event in ma application
for example from load untill unload or when we click a button or .....
can you help ??
thnx even if you can't
try to be good if you can't be the best
|
|
|
|
|
Hi ,
sorry the title wasn't clear enough isn't it ??
anyway thank you , i will give you an example to let you better understand
i have two forms in the first i have a textbox & a button & in the second i have a label & a button too
i want when i pick the button in the first form ,the second form shown & when i pick the button of the second one , the content of the textbox in the first form shown on the label
i hope you understand this stupide english please if you know how just tell me
thank you again
try to be good if you can't be the best
|
|
|
|
|
In Form1's Button Click event, write the following code.
[code]
Load Form2
Form2.Show
[/code]
In Form2's Button Click event, write the following code.
[code]
Me.Label1.Caption=Form1.Text1.Text
[/code]
|
|
|
|
|
how to create button back ..i dunno how to create it!!
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WHAT SHOULD I PUT HERE ???
End Sub
-- modified at 23:11 Monday 24th April, 2006
|
|
|
|
|
And a "button back would be...?? Were going to need a bit more information to figure out what you even want to do, let alone how to do it...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi ,
please i need to build an application in vb.net 2003 & i'm just a beginer that mean i need some help from profs like you
please if you can tell me how can i make my own cotrols (a button for example) i want to use it in ma windows application
if you don't know how just tell me how to affect the XP Style on your controls
thank you very much for your help
try to be good if you can't be the best
|
|
|
|
|
Making your own controls is not something that can be explained in a forum post. This subject can take up entire books and still not tell you everything about control creation.
As you've probably figured out by now, this will take a lot of research. Start Googling for "vb.net create custom control" and you'll come up with a large list of articles covering a wide range of control creation.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
thnx for the advice man
i have sought before & i knew something called User controls i tried with them but actualy i didn't understand
i know this is stupide but can you help ?? do you have any good sourses something like that ??
try to be good if you can't be the best
|
|
|
|
|
My best source is Google. I taught myself everything I know about custom controls by trial and error and Google. There is no one site that has everything you need to know, not even the basics, on how to create your own custom control.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I wrote a small app in Visual Studio 2003 for a pocket pc which works well in the emulator but comes up with the following error when running on the device itself:
SmartDeviceApplication1.exe
TypeLoadException
Could not load type
System.Data.SqlServerCe.SqlCeRemote
DataAccess from assembly
System.DataSqlServerCe,
Version=1.0.5000.0
What do I need to do to correct the problem.
Thanks for any help!
|
|
|
|
|
Is there a way to override the code that vb.net generates for Deletes, Updates and Inserts?
The code generated is slowing down my app for these functions, especially for only 1 record.
I'm using the BindingNavigator controls to add, update, delete, etc.
PPOBindingSource.EndEdit()
PPOTableAdapter.Update(Me.DwCustomDataSetPPO.BenefitAdj_PPO)
Is there someway to over ride what Vb generated and create my own code for these functions?
The generated code is inefficient and convoluted.
Any help greatly appreciated.
Mike
|
|
|
|