|
i want to add a schema table in a treeview which contains the tables that the user selected from afiledialog's file table names
|
|
|
|
|
Write a procedure that changes all text styled in Heading 1 to Heading 3 in a Word doc
sukh
|
|
|
|
|
Why are you even doing a course in VB6 ? It's totally unsupported.
In any case, what you are doing is rude, self centred, and evidence that you're wasting your time with this course. I recommend dropping out and applying at McDonalds.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
You want to look up and learn VBA for MS Word. There are tons of stuff out there. Just google for it...
Chandra
|
|
|
|
|
Based on your last couple of questions plus past questions you are obviously looking for homework answers.
|
|
|
|
|
Most lists in VBA are 1 based. There is at least 1 case where 0 based indexing is used. What is this case?
sukhchain
|
|
|
|
|
This is pathetic. Do your own homework.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: This is pathetic. Do your own homework.
I've almost spilled my coffee :->
|
|
|
|
|
Based on your last few questions you are obviously looking for homework answers.
|
|
|
|
|
|
Hi. Did you have a question ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
what is boxing in Concept in .net?
Pavan Pareta
|
|
|
|
|
When a value type needs to be passed as a reference type ( typically as an object ), for example, in the non generic .NET containers, it needs to be put inside an object, hence 'boxing'.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I think this link on Microsoft's website will be halpful to you
http://msdn2.microsoft.com/en-us/library/25z57t8s.aspx
|
|
|
|
|
Thanks
its halpful for me...
Pavan Pareta
|
|
|
|
|
Hello,
I am developing a application where in I am calling a web page from vb6 application, now from vb6 i want to send that page by email.
I want to use IE - File/Send/page by email, functionality from vb6.
Please can anyone tell me how to capture IE - File/Send/page by email from vb6.
Regards
Raj
|
|
|
|
|
Hello, Im trying to figure out how to find the amount of data being sent and recieve by the internet (kB/s) and the time the connection has been active.
Pretty much the infomation that is contained the connection info window, but I need to access this infomation by declares only.
Thanks,
bob
-- modified at 1:39 Tuesday 7th November, 2006
|
|
|
|
|
To All,
This is something totally out of my league; but I wanted to know; so I was wondering if someone might point me in the right direction to get started...
What would I have to do to try and write my own VNC like control for a server/viewer much like this one? (http://cdot.senecac.on.ca/projects/vncsharp/quickstart.html)
I used that control in my project only to discover that (had I been paying attention) it was only a viewer control. I wanted to build an app that emulated VNC with file transfer capabilities; etc.
So.. where would I start? I don't want to try and re-invent the wheel; but I don't want to distribute two apps (a server like app that would allow me to get the remote computer's drive information and then spit that to my viewer control -- that in addition to having to send over a distro of VNC like Ultra or Tight VNC).
I'm at a loss guys; what would I have to learn?
Thanks all,
-Randy
|
|
|
|
|
Actually, this topic did interest me a while back as well, and i made some research.
I'm not sure there is a .NET VNC server implementation, but search Google for vnc activex server and you will find a commercial company that just released a beta of a vnc server activex control.
(I tested it and it works well)
i would be vary happy to find some project about a vnc .NET server
|
|
|
|
|
Hi, using VB net (2003) I Have 2 DataGrids on a Windows. Form(Tab Control with 3 pages) on page2 is DataGrid2, and on page3 is DataGrid3. Both DataGrid have 5 Rows and both first Columns are identical, ex: Normal Price is (Col. 0, Row 0), Credit Card is (Col. 0, Row 1), Discount 5% is (Col. 0, Row 2), Discount 10% is (Col. 0, Row 3), Discount 20% is (Col. 0, Row 4). What I need to do is when I click on any row of either DataGrid (highlighted meaning selecting a row) that the same row in the other DataGrid be selected. Is there a Way to do that programmatically, hope you can help me and thank-you in advance,.
|
|
|
|
|
It's not my best work by far but you get the idea
Private Sub Form2_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim dsTbl As New Data.DataTable("test")
Dim dsRow As Data.DataRow
dsTbl.Columns.Add("col1", GetType(System.String))
dsTbl.Columns.Add("col2", GetType(System.String))
dsTbl.Columns.Add("col3", GetType(System.String))
dsTbl.Columns.Add("col4", GetType(System.String))
dsTbl.Columns.Add("col5", GetType(System.String))
Dim dstbl2 As Data.DataTable = dsTbl.Clone
For i As Int16 = 1 To 10
dsRow = dsTbl.NewRow
dsRow("col1") = Chr(65 + i)
dsRow("col2") = Chr(66 + i)
dsRow("col3") = Chr(67 + i)
dsRow("col4") = Chr(68 + i)
dsRow("col5") = Chr(69 + i)
dsTbl.Rows.Add(dsRow)
dsRow = Nothing
Next
For i As Int16 = 1 To 10
dsRow = dstbl2.NewRow
dsRow("col1") = Chr(69 + i)
dsRow("col2") = Chr(68 + i)
dsRow("col3") = Chr(67 + i)
dsRow("col4") = Chr(66 + i)
dsRow("col5") = Chr(65 + i)
dstbl2.Rows.Add(dsRow)
dsRow = Nothing
Next
Me.DataGridView1.DataSource = dsTbl
Me.DataGridView1.Refresh()
Me.DataGridView2.DataSource = dstbl2
Me.DataGridView2.Refresh()
End Sub
Private Sub DataGridView1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGridView1.SelectionChanged
If DataGridView1.SelectedRows.Count = 0 OrElse DataGridView2.Rows.Count = 0 Then Exit Sub
DataGridView2.Rows.Item(DataGridView1.SelectedRows.Item(0).Index).Selected = True
End Sub
Private Sub DataGridView2_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGridView2.SelectionChanged
If DataGridView2.SelectedRows.Count = 0 OrElse DataGridView1.Rows.Count = 0 Then Exit Sub
DataGridView1.Rows.Item(DataGridView2.SelectedRows.Item(0).Index).Selected = True
End Sub
|
|
|
|
|
How can i read all of the entries in a registry subkey and then display them in a list inside a textbox?
|
|
|
|
|
Hi,
I have got this issue where I need to copy/paste multiple rows. At the moment, copying and pasting a single row seems possible. And it seems to work. copying and pasting multiple rows seems to be the problem. Only the last row that was highlighted to be copied seems to be entered within ClipBoard.
Here is my code:
Try
If e.KeyCode = Keys.C Then
'copy key c is pressed
Dim counter As Integer = 0
Dim selectedItemsArrayList As New ArrayList
For Each r As DataStructure.ItemsRow In MainForm.Data.Items
If dg.IsSelected(counter) Then
selectedItemsArrayList.Add(counter)
End If
counter += 1
Next
Dim format As DataFormats.Format = DataFormats.GetFormat(Me.ToString)
Dim data As IDataObject = New DataObject
Dim row As DataRow
If selectedItemsArrayList.Count > 0 Then
'if count is greater than 0, there are some rows selected
For Each i As Integer In selectedItemsArrayList
'for each row that is selected to be added
'add to clipboard
selectedDataGridRow = selectedItemsArrayList(i)
row = MainForm.Data.Items(selectedItemsArrayList(i))
data.SetData(format.Name, False, row.ItemArray)
Clipboard.SetDataObject(data, False)
Next
End If
End If
If e.KeyCode = Keys.V Then
'paste key is pressed
Dim row As Object()
Dim ClipData As IDataObject = Clipboard.GetDataObject
Dim format As String = Me.ToString
If ClipData.GetDataPresent(format) Then
row = CType(ClipData.GetData(format), Object())
'add row to datagrid
MainForm.Data.Items.Rows.Add(row)
End If
End If
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
I guess I need to either modify the way I add items into ClipBoard or modify the way I retrieve items from within ClipBoard.
Cheers
---------------------------------
There is life outside coding.
|
|
|
|
|
The reason why you are only getting the last row is because of the clipboard works. it only retains one setdata at a time. it will not append automatically for you. so you need to bundle all your rows and use setdata once.
|
|
|
|