|
There shure is no easy solution.
If you ware coding like you should and you speerated your buissnies logic and your data access layer from your windows forms then all you have to do is write a HTML interface. If you didn't then you have a big project before you.
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Visual Basic 2005 Express Edition:
I would like to print the banner at the top of Form1 (it is a color strip that goes from dark blue to light blue) at the top of my printed page.
How can I do that?
|
|
|
|
|
Visual Basic 2005 Express Edition:
I am trying to write out a record to an SQL database table:
Private Sub WriteOutRx()
Me.RxBindingSource.Current("PatientLastName") = PatientLastName <---Error on this line
Me.Validate()
Me.RxTableAdapter.Update(Me.RxDataSet.Rx)
End Sub
Below is the error message that I got:
NullReferenceException was Unhandled
Object variable or With block variable not set.
use the 'new' keyword to create an object instance.
|
|
|
|
|
hi, i have a problem to find out the database on the oracle,i do not know where is that..for ur info. i am usin g oracle8i,
can u teach me how to get there,coz i nedd to copy them.., thank you ,,,
|
|
|
|
|
hi, i am not sure whether i have to create my system as application or what.dont have a clear picture on it, pls helpme, iis it possible to connect application to the server? thank you
|
|
|
|
|
hi ,
i am not understand what you want pls give me detail
vipin paliwal
|
|
|
|
|
ezajan wrote: iis it possible to connect application to the server
What kind of server? That little detail makes all the difference in the world...
Dave Kreskowiak
Microsoft MVP - Visual Basic
-- modified at 7:18 Wednesday 26th April, 2006
|
|
|
|
|
first of all, the database u r using, is it server2000.
go to view/sever explorer/dataconnection right click/add connection .
add the server name/ select default database table northwind, then test connection/ok
after u created this path,this will be added under dataconnection in server tree.
right click the table name copy the path, before you start ur application programming , declare dim conn as new connection=(" paste the path")
the desired fields are:connection = password, security info,userID,initial catalog, data source, workstation ID.
bye
|
|
|
|
|
hello,
anyone can help me on how to position the textbox in MSHFlexGrid cell in VB.net when i click the cell. its easy if i do it in vb6 coz of textbox.move method. there's any way in VB.net?
regards
|
|
|
|
|
wilde wrote: its easy if i do it in vb6 coz of textbox.move
TextBox.Move? That would mean that the TextBox is not in the cell, or contained by the cell, but is sitting OVER the MSFlexGrid control and just appears to be within the borders of the cell.
To do the same thing in VB.NET, all you need to do is change the Location property of the TextBox, or its Top and Left properties to the position you want. You might also have to call its BringToFront method to get it over the MSFlexGrid.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
thank you mr.dave
sorry for confusion i've made. i mean the textbox will appears within the cell when clicked. the size and location of textbox will depend on CellLeft,CellTop, CellWidth,CellHeight property.
here is the sample code from vb6
Private Sub MSHFlexGrid1_Click()
With MSHFlexGrid1
txtDataEntry.Text = .TextMatrix(.row, .col)
txtDataEntry.Move .CellLeft + .Left, .CellTop + .Top, _
.CellWidth, .CellHeight
txtDataEntry.Visible = True
DoEvents
txtDataEntry.SetFocus
End With
End Sub
how can i do this in vb.net where there is no textbox.move method?
hope you can help me!
thanks a lot for your support.
|
|
|
|
|
I have an application with fileSystemWatcher,
When the user open the application, and use another application, for example, MS WORD, my application will be on background (but not minimize), How can I make my application on the top of screen when the fileSystemWatcher event fire(create file) ?
I have tried, me.show, me.topmost, ... but all fail to get the goal.
Thank you.
|
|
|
|
|
Hello
I have placed a background picture behind the cell of a table however the picture size is large than the cell's size. How can I adjust the size of the picture according to size of the cell? Some DHTML please...
Thanks
|
|
|
|
|
You can't resize a background image using CSS or DHTML.
-- modified at 18:21 Tuesday 25th April, 2006
Why are you asking for DHTML in the VB forum anyway?
---
b { font-weight: normal; }
|
|
|
|
|
how can i transfer files using TCPClient with a client/server in vb.net
thanks in advance!
Lxcite's Planet
... the ultimate solution
|
|
|
|
|
This site has many tutorials on this subject. Just use the search, it will not bite you.
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hello!
I am dealing with asp and I wanted to place a background picture behind a cell vith VBScript + asp. However the picture is not getting displayed. Here is the source code when I edit the page
style="background-image: url('../images/bart_3.jpg') background-repeat: no-repeat; background-attachment: fixed; background-position: center "
Here is the my asp code
<%Response.Write ("style=""background-image: url('../images/" + ObjectRecord("Picture1") + "') background-repeat: no-repeat; background-attachment: fixed; background-position: center """)%>
Thanks!
|
|
|
|
|
You are missing a semicolon after the url. Using background-attachment: fixed without repeat means that it will only be visible if the cell is at the absolute center of the window, as the position will be centered according to the window, not the cell.
---
b { font-weight: normal; }
|
|
|
|
|
I need to code where I can change the IP address to a static IP address and then to DHCP based on users choice.
Any code in VB.NET to do this?
The DOS command is
netsh interface ip set address local static 192.168.1.99 255.255.255.0
and
netsh interface ip set address local dhcp
TIA
|
|
|
|
|
You can run console commands via the Diagnostics.Process[^] class.
Dim arguments As String = "interface ip set address local static 192.168.1.99 255.255.255.0"
System.Diagnostics.Process.Start("netsh", arguments)
|
|
|
|
|
following code uses system.management classes(WMI)
CODE TO SET STATIC IP:
Sub IPchange()
Try
Dim inPar, outPar As ManagementBaseObject
Dim mc As New ManagementClass("Win32_NetworkAdapterConfiguration")
Dim moc As ManagementObjectCollection = mc.GetInstances()
For Each mo As ManagementObject In moc
If DirectCast(mo("IPEnabled"), Boolean) Then
inPar = mo.GetMethodParameters("EnableStatic")
inPar("IPAddress") = New String() {txtIP.Text}
inPar("SubnetMask") = New String() {txtSubnet.Text}
outPar = mo.InvokeMethod("EnableStatic", inPar, Nothing)
flag = True
MsgBox("IP Address successfully changed!!!", MsgBoxStyle.Information, "IP Changed")
Exit For
End If
Next
Catch ex As Exception
MsgBox("Error:" & ex.Message, MsgBoxStyle.Critical, "Error")
txtIP.Enabled = True
txtSubnet.Enabled = True
flag = False
End Try
CODE TO SET DHCP
Try
Dim t As Single
Dim objWMIService, objComputer As Object
objWMIService = GetObject("Winmgmts:root\cimv2")
objComputer = objWMIService.InstancesOf("Win32_NetworkAdapterConfiguration")
' Call always gets only one Win32_ComputerSystem object.
For Each objComputer In objWMIService.InstancesOf("Win32_NetworkAdapterConfiguration")
t = objComputer.EnableDHCP()
If t <> 0 Then
'MsgBox("Error!!! Cann't enable DHCP at this time.", MsgBoxStyle.Critical, "Error")
Else
MsgBox("DHCP Enabled!!!", MsgBoxStyle.Information, "Enable DHCP")
End If
Next
Catch ex As Exception
End Try
BYE!
Lxcite's Planet
... the ultimate solution
|
|
|
|
|
Thanks for the response and the code. All I can say is wow! I need more books on this stuff to catch up. Going through the IPchange() I get ManagementObjectCollection is not defined and the same for ManagementObject. I also get flag is not declared.
Where is it actually changing the IP address?
|
|
|
|
|
|
sell
netsh -f d:\ipchange\working.txt
pushd interface
reset all
popd
pushd interface ipv6
uninstall
popd
pushd interface ipv6 isatap
popd
pushd interface ipv6 6to4
reset
popd
pushd interface portproxy
reset
popd
pushd interface ip
set address name="本地连接" source=static addr=132.110.77.116 mask=255.255.255.0
set address name="本地连接" gateway=132.110.77.1 gwmetric=0
set dns name="本地连接" source=static addr=202.96.128.68 register=PRIMARY
set wins name="本地连接" source=static addr=10.16.6.88
popd
asfd
|
|
|
|
|
is this?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|