|
Thank you very much it works but i changed the code little bit by typing datecontrol.value instead of date property and it works fine
Thanks a lot.
Nikhil Bandekar
Mumbai,
India
|
|
|
|
|
How Can i create a control that add to my other controls a propierty like tooltips. for example when you add to your form a tooltips control all the control appear with a new property name tips. i need to know how can i make for my control do that.
Magno R. Vasquez (Gbyte)
|
|
|
|
|
Hi,
I am having problem adding a datatable into a database. I have a gridview in my form, that gets it's datasource programmatically using a data adaptor.
gv.datasource = mydatasource
In my properties window, I enable editing, adding and deleting for the gridview.
Now I have a problem to add the new rows/columns(update) back to the database, programmatically.
Is there any way to do this?
|
|
|
|
|
First, when you configured your data adapter did you add update/insert statements?
If yes, then here's how to do it.
1. Create a new datarow off your dataset,
2. Add data to that datarow.
3. Add the row to the dataset.
3. Update the data source through the data adpaters Update method.
e.g. some sample code to update a name & surname to a database. (ds1 = dataset, da1 = data adapter, conn = connection).
'create a new datarow off a dataset
Dim dr As DataRow = Ds1.tblNames.NewRow
'add data to the row
dr.Item("Name") = txtName.Text
dr.Item("Surname") = txtSurname.Text
'add the new row to the dataset
Ds1.tblNames.Rows.Add(dr)
'update the data source
Try
conn.Open()
da1.Update(Ds1)
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
conn.Close()
End Try
You will obviously need to perform validation on the data to ensure that it is valid but that's the basic idea.
Hope that helps.
|
|
|
|
|
Hi,
Can we do the Web Part(ASP.NET) type functionality in Windows Form. If anybody having any idea or article, could you please share with me?
|
|
|
|
|
Hello Dear,
I want to develop a program that will be connecting to two or more computers which will be located in two or more diferent countries (e.i. USA and other country). It'll be kind of a chat program. If I were to open a business in another country while I am residing in the USA, I want to abe able to check my business through this program.
I have experience writing programs that run just in local computers. I have a good understanding and experience with the languages below. It is my first attemp to develope an application or program of this magnitude.
Tools I have available :
VB 6.0
VB.NET
C++.NET
MS SQL Server 2000
MY SQL
Microsoft Access
** I know some COM+
Would any one give me his/her suggestion.
--I would like to know how to do the connection between two or more computers located in diferent countries.
--Do I have to talk to my telephone service company to give me some access point. Or I can just simply use the internet?
--In terms of Development:
+ Which of the above languages will be more efficient for this project?
+ Should I use Remoting, Webservice, or TCP/IP Connection?
Any suggestion, idea or brainstorming will be appreciated.
Thank you
Amadeo
Amadeo
|
|
|
|
|
Hi
First you need the I.P of the other computer that you want to connect to. Either it must have a static ip / dynamic ip. If it is static ip then you can connect to that computer easily. if it is dynamic ip, you need some application to run on the dynamic ip machine to inform the current ip that it has been assigned.
hope this helps.
Kanniah
|
|
|
|
|
How can i open pdf file and stamp on all the pages using VB.net
Mansoor
|
|
|
|
|
Hi
Is it possible to display all child records of a datarelation and not just one at a time? I want a grid that the user doesnt have to open the child relation to see the contents, all parent and child records must be displayed.
If not with the datagrid that comes with Visual Studio, any free controls that can?
Thanks
Izak
|
|
|
|
|
Have you thought of perhaps using a TreeView control?
|
|
|
|
|
Hi
I need to edit the information in the child records
|
|
|
|
|
Dear Sir
Can I make setup for a program and run it onto a machine
that has not Visual Studio nor .Net framwork?
|
|
|
|
|
In VS 2005 use the publish option. This will create an install app on either a server or a path that you might want to cut to a CD. Part of the Prerequisites under the publish setup screen is to include .Net 2.0. If you leave this checked when you publish it will help when the client goes to install the app. When they install it from your CD or server, if .NET 2.0 framework doesn't exist, it will automatically install it.
Hope this helps
Lost in the vast sea of .NET
|
|
|
|
|
Dear Sir
How can I install a .Net FramWork when I make a setup for a program which made by VB.Net?
|
|
|
|
|
My dear friend,
if you are developing an application or program in .NET than you have to make sure that the target computer has .net framework in it. If the target machine does not have .Net Framework then do an update from Microsoft. Otherwise, your application will not work at all.
|
|
|
|
|
Hello,
You have to install .net framework on client machine before istalling your application developed in .net. Or else while deploying your application just include dotnetframe work which u can see in solution explorer(dependencies), during deployment. If you include dotnet frame work the file size of your application, i.e, your setup.exe will increase by 30 mb max. And when ever you will try to install your application on the machine which does not have framework it will istall the framework first automatically and then start with the installation of your actuall application, else if it will install only your actual application.
Try it out
Bye.
Nikhil Bandekar
Mumbai,
India
|
|
|
|
|
Dear Sir
I thank you for your answer
Please I want more details, since I add the setup file for .NET FrameWork onto the Application Folder (i.e. the Setup Solution) but when I run the program
onto another machine the .NET FrameWork does not setup automatically with it.
Good Luck
MNG
|
|
|
|
|
Hi
I don't think framework gets bundled with your setup program. Your setup program just contains the files that it requires to run (if you have added any extra files). You have to isntall the .net framework separately on the client machine and then install your application.
Hope this helps
Kanniah
|
|
|
|
|
How can I get the names for all computers which are connected to a LAN(Local Area Network)?
MMT_PC
|
|
|
|
|
Hi all,
how an I make with VB6 a dll to have all the functions and utilities that I usually need in a project? I've done it with an ActiveX Dll but I need to put them in a class. Is there any way to do it globally?
Thanks in advance,
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
How can I get the names for all computers which are connected to a LAN(Local Area Network)?
MNG
|
|
|
|
|
How can I get the names for all computers which are connected to a LAN(Local Area Network)?
MNG
|
|
|
|
|
Dear Sir
How can I install a .Net FramWork when I make a setup for a program which made by VB.Net?
MYH
|
|
|
|
|
Dear Sir
Can I make setup for a program and run it onto a machine
that has not Visual Studio nor .Net framwork?
|
|
|
|
|
Hi, I need to know the name od the current windows desktop in vb6. I use the following code. l which is the lenght of the string of desktop name, is filled but, the strig s would not be filled.
I would like to ask why this happens, and if there are any other methods to get current desktop name?
Option Explicit
Private Declare Function GetUserObjectInformation Lib "user32" Alias "GetUserObjectInformationA" (ByVal hObj As Long, ByVal nIndex As Long, pvInfo As Any, ByVal nLength As Long, lpnLengthNeeded As Long) As Long
Private Declare Function GetThreadDesktop Lib "user32" (ByVal dwThread As Long) As Long
Private Declare Function GetCurrentThreadId Lib "kernel32" () As Long
Private Const UOI_NAME As Long = 2
Private Function GetCurrentDesktopName() As String
Dim s As String, l As Long
Const MAX As Long = 500
s = String(65355, vbNullChar)
If GetUserObjectInformation(GetThreadDesktop(GetCurrentThreadId), UOI_NAME, VarPtr(s), MAX) Then
GetCurrentDesktopName = Left(s, l - 1)
End If
End Function
Private Sub Command1_Click()
MsgBox GetCurrentDesktopName
End Sub
|
|
|
|