|
Can you please give me an example code on how to do this?
I am pretty new with programming such an application!
Thanks in advance.
|
|
|
|
|
use foreach to iterate through the Rows collection of your table. You can then access each property in the row using row("columnName"). Here[^] is an article on how to write text files in VB.NET.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hello everybody!
can you help me :
if in VB 6 uses VBKeyK then what VB.Net uses?
Thanks!
|
|
|
|
|
What is VBKey ? Is it like the Keys enum ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Sorry i did'nt mention the IDE:
VB.NET 2003
PatriceB
|
|
|
|
|
Hello Guys,
I am trying to sign my assembly with a Strong Name.
When I try to build the program I get this nice error:
Preparing resources...
Updating references...
Performing main compilation...
vbc : error BC30145: Unable to emit assembly: Referenced assembly 'Interop.Scripting' does not have a strong name
Building satellite assemblies...
Satellite assemblies could not be built because the main project output is missing.
I am interested to know how we could sign the 'Interop.Scripting' assembly
Is there someone having a clue ?
Thanks by advance
Pat
PatriceB
|
|
|
|
|
Hello there
I have a toolbar on the form using vb.Net 2003 . When I disable the buttons it shows the image as a shadow. where I want image to be same like before. Can any one tell me how to resume the shape of an image on disabled button.
Rizwan Bashir
|
|
|
|
|
Dear all
I am working on a project in VB, where i required to monitor any changes in in files in the entire system and log the file name of the modified file on the fly.
Language : VB 6.0
Platform : WIN2K /WIN XP
Is there any way to get the the modified file names in real time (i.e as and when any changes are made to file like changing file content or overwriting etc in the entire system)
Any help in this regard is appreciated
Thanks in advance
Dinakara K
CAIR, Bangalore
|
|
|
|
|
Hi iam a beginnner
How can i decompress a file to a path
Explain simple please
Thanks
|
|
|
|
|
hi, this is ajay bharti
i have to use tdb or flexi grid in my vb.net project, i m using data set.
how to show data of data set in tdb or flexi grid , i need some code for that....please help me.
its very urgent.
hi this ajay bharti
|
|
|
|
|
how could i using VB.Net
i want to genrate report for that selected row
Manoj
|
|
|
|
|
There are many ways to extract information, first you need to identify the index of the record you want to extract.
We can use the ME.Databindingcontext( datasource ).position to identify the current row.
Normally we assign a table to a datagrid's datasource, but here we will use the Table.Defaultview.
SO given TBL1 as your table
Datagrid.datasource = TBL1.Defaultview
then we can use
Me.BindingContext(TBL1.DefaultView).Position()
to indentify the current row, this should work even it you change the sort field of the datagrid.
I think thats it.
<br />
Dim ID As String<br />
<br />
'use the this event handle<br />
Private Sub DataGrid1_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles <br />
DataGrid1.CurrentCellChanged<br />
Dim x As Int16<br />
<br />
'Datagrid1.datsource = tbl1.Defaultview<br />
' instead of Datagrid1.datsource = tbl1<br />
' you must explicitly point to the tables defaultview <br />
<br />
'Get the position of the Table's Defaultview<br />
x = Me.BindingContext(TBL1.DefaultView).Position()<br />
<br />
'use x to identify you row<br />
ID = TBL1.DefaultView(x)("fieldname")<br />
End Sub<br />
Marvin N. Guerrero
- Taje Kage_bunshinNunJutsU
|
|
|
|
|
Thanks,
I'm using a DataGridTableStyle and for the MappingName it only seems to work if the MappingName equals "TBL1" instead of "TBL1.DefaultView". Is this correct?
|
|
|
|
|
How can I add a password for my setup?
So that the end-user must enter a passwrod/license ley before installation.
Marvin N. Guerrero
- Taje Kage_bunshinNunJutsU
|
|
|
|
|
ooops. he he .. 'i meant password/license key'
-dumb and dumber-
Marvin N. Guerrero
- Taje Kage_bunshinNunJutsU
|
|
|
|
|
Hello all,
I have a C++ console application written in .NET that I would like for to output to a Window as opposed to the DOS window.
Thanks!
|
|
|
|
|
Move it into a .NET dll, and then you can call it from VB.NET, and use VB.NET to show the output.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I did this once by redirecting stdout of the console to a stream with my GUI program. This works, but I would concur with the previous reply, that using a DLL is the right way to go. This is what I did, with quite a few ommisions.
Dim myProcess As Process = New Process()
Public sIn As System.IO.StreamWriter
Public sOut As System.IO.StreamReader
Public sErr As System.IO.StreamReader
'setup the process
'...
'...
myProcess.Start()
sIn = myProcess.StandardInput
sOut = myProcess.StandardOutput
sErr = myProcess.StandardError
Kevin
|
|
|
|
|
I program in VB.net , i do not know to catch a event that is raised when have a new file .csv in one folder.
Can you tell me.
Thanks
|
|
|
|
|
|
Have used the keyboard hooks from
http://www.developer.com/net/vb/article.php/10926_2193301_3
Looks great but having a strange problem whenever the form loads the browser dose not navigate unless i remove the hooks anyone know whay this is happening
On form load the following is run
Code=> Dim Urladd As String
Code=> Urladd = "http://www.google.ie"
Code=> WebBrowser1.Navigate(New Uri(Urladd))
Code=> HookKeyboard()
when the form closes
Code=> UnhookKeyboard()
Code=> Me.Close()
Seb ....
|
|
|
|
|
Disable the web browser and now the issue is just the hooks dose anyone else have VS-2005 to try run the code ???
|
|
|
|
|
Hi VB/Oracle expert!!
How can I utilize VB to read Oracle database?
Thanks a bunch,
icdavid
|
|
|
|
|
Yep have a look at this
Namespace: System.Data.OracleClient
OracleConnection
http://msdn2.microsoft.com/en-us/library/system.data.oracleclient.oracleconnection.aspx
OracleCommand
http://msdn2.microsoft.com/en-us/library/y051k82s(en-US,VS.80).aspx
OracleCommandBuilder
http://msdn2.microsoft.com/en-us/library/0ca0k1ad(en-US,VS.80).aspx
Example
The following example uses the ExecuteReader method of OracleCommand, along with OracleDataReader and OracleConnection, to select rows from a table.
Public Sub ReadMyData(ByVal connectionString As String)
Dim queryString As String = "SELECT EmpNo, DeptNo FROM Scott.Emp"
Using connection As New OracleConnection(connectionString)
Dim command As New OracleCommand(queryString, connection)
connection.Open()
Dim reader As OracleDataReader = command.ExecuteReader()
Try
While reader.Read()
Console.WriteLine(reader.GetInt32(0) & ", " _
& reader.GetInt32(1))
End While
Finally
' always call Close when done reading.
reader.Close()
End Try
End Using
End Sub
|
|
|
|
|
Is there a good way to put an animated jpg stream on a windows form?
Lots of IP cameras use this format with a java applet to view in a webpage... Just wondering if there was a good way to view this stream from vb.net and skip the java.
Joe
|
|
|
|