|
OK. So I take it you have a directory tree on the left and when the user clicks on a node, the listbox on the right is populated with the filenames in that directory. Correct?
What exactly are you having a problem with? Getting a list of selected filnames?, actually doing the copy?, gettings some kind of destination?, Dragging and Dropping the selected files?, ...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am using a datagrid to display records. I can sort by any of the colums without a problem. Typeing anything into a colum and hiting enter drops the listing down to the correct key. The problem is that the row I typed the key into now contains the typed value along with all the other data on the record in the row. I need to either clear out the other data in the row or insert a new record with only the search key filed in. Any ideas how to do either of these things?
|
|
|
|
|
hi ppl,
i have a database with three columns namely first_name, second_name and third_name. and i want only the contents of first column i.e contents of first_name column to be displayed in a dropdownlist how do i do this.
thanks and regards
|
|
|
|
|
by using the following code u will be able to add data from first_name:
dim Cn as new adodb.connection
dim rs as new adodb.recordset
dim str as string
cn.Open "DSN-NAME", "UID", "PWD"
Set rS.ActiveConnection = cn
str_State = "Select DISTINCT FIELD-NAME from TABLE-NAME"
rs.Open str, cn, adOpenStatic, adLockReadOnly
For j = 1 To rs.RecordCount
cmbo1.AddItem rs.Fields(0).Value
rs.MoveNext
Next
If rs.State = 1 Then
rs.Close
Set rs = Nothing
End If
If cn.State = 1 Then
cn.Close
Set cn = Nothing
End If
|
|
|
|
|
Populate a dataset with data from the table containing the first_name columns.Then set the following properties of the combo-box(dropdown):-
ComboBox1.datasource = name-of-dataset.Tables(0)
ComboBox1.DisplayMember = "first_name"
ComboBox1.ValueMember = "first_name"
|
|
|
|
|
You can do it at run time by using code
Private myRow As DataRow
Private myCol As DataColumn
Private myTable As DataTable
myCol = myTable.Columns(0)
For Each myRow In myTable.Rows
ComboSample.Items.Add(myRow(0))
Next
or simply use
comboBox1.DataSource=dataSet
where dataset contains the required table.
Lata Agrawal
|
|
|
|
|
hi,
im using dhtledit control in vb6 for displaying html files.now i want to search word in that opened html files but without using FIND WINDOW.
Is there any way by which i can Select the word and highlight or move the cursor to that word.
e.g. if i want to find AND word in file it will select first AND word and then next AND and so on.
If any member of this forum knows it how to do then please write me.if possible give the source code.
Thanks in Advance
|
|
|
|
|
That component is so old, all the docs have been removed from Microsoft's site.
Check into using an embedded IE control for this.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i am using dhtmledit in VB. And i want know syntax and details about its parameters(specially execCommand method). if anyone knows please help
var1="and"
DHTMLEdit1.execCommand(DECMD_FINDTEXT, OLECMDEXECOPT_DONTPROMPTUSER,var1)
|
|
|
|
|
can anyone help me to develop irc chat in asp.net
Veeresh R M
|
|
|
|
|
Sorry, but that's not really a valid goal - irc is instant chat, and ASP.NET is based on a page being served when the user clicks on something. The best you could do is make your pages autopostback in a way that would kill your server with useless traffic.
Although, I believe there's an article on CP about having controls that talk to the server, I still don't see ASP.NET as the way to write a chat program.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
thank u for replying,
i tried to connect irc chat with tcpclient, it gave some following error,
i cld'nt understand it, plz help me out.
NOTICE AUTH :*** Looking up your hostname NOTICE AUTH :*** Checking Ident NOTICE AUTH :*** Couldn't look up your hostname :blueyonder2.uk.quakenet.org 451 * :Register first. :blueyonder2.uk.quakenet.org 451 * :Register first. :blueyonder2.uk.quakenet.org 451 * :Register first. :blueyonder2.uk.quakenet.org 451 * :Register first. :blueyonder2.uk.quakenet.org 451 * :Register first. :blueyonder2.uk.quakenet.org 451 * :Register first. ERROR :Closing Link: by blueyonder2.uk.quakenet.org (Registration Timeout) Cannot read from a closed TextReader.
|
|
|
|
|
The IRC server tried to reverse your IP address to get a DNS name. Apparently, you need to contact the owner of the IRC server to get an account first. At least that's what I think when it returns "Register first."
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
does anyone know about Dhtmledit executecommand option in detail. with exapmle VB6.0 please help
thanks in advance
|
|
|
|
|
Have anyone got this error : Unexpected Error (50003) when running VB6 application? I tried looking into the MSDN, but couldn't find the solution.
<italic>Work hard, Work effectively.
|
|
|
|
|
|
can anyone briefly explain me about .NET porting ?
What are the significant changes need to be done after porting a VB application to VB.NET?
|
|
|
|
|
Basically, you need to rewrite it, from what I've been told. The reason some MVPs are asking Microsoft to still support VB6 is that they find the process of importing a VB6 app into VB.NET to be less than stable, and less than complete.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Porting vb6 to vb.net simply isnt worth it. For a project of any real size you would need to spend weeks/months implementing the stuff that did not port and testing the stuff that LOOKS LIKE it did import. Then at best you would have an under performing vb.net application coded in the same crappy style as a vb6 application. The truth is that its applications like this that give vb.net a bad name.
The correct way to go is the following:
1. Take a good look at the vb6 app and evaluate whats good / bad about it.
2. Start from scratch in VB.net using all the nice new OO methods now available to you.
Jon
|
|
|
|
|
i have 2 picture in my MS Word. I need to delete the second picture. Anyone knows how to delete it using vb.net??
thanks..
|
|
|
|
|
Is anyone know about Crystal Reports with vb? I created a mailing label in crystal reports 8.5, but I don't know how to skip used mailing labels and print duplicate. any idea?
Lisa
|
|
|
|
|
Can anyone help. I'm trying to set the font of a label property to 'strikeout' by clicking on a command button. When I do this I get "Property Strikeout is read only". I've put in this code
Public ReadOnly Property Strikeout() As Boolean
Get
End Get
End Property
but whatever I put in between the Get & End Get statement isn't an accepted value. All MSDN info is only general not specific. This is probably simple but I just can't get passed it.
|
|
|
|
|
You will have to create a new Font instance:
label1.Font = new Font(label1.Font, FontStyle.Strikeout)
|
|
|
|
|
Thank you very much that works well. The next step is to apply the strikeout to a checkedlistbox line when it is checked. Can certainly determine if the line has been checked but need to apply strikeout to only one line at a time.
|
|
|
|
|
This is a bit more tricky, because the CheckedListBox doesn't support this by default. First you will have make your own CheckedListBox by inheriting from the normal CheckedListBox class. Then override the OnDrawItem method and implement it the way you want.
The easiest way to implement it should be to call the base implementation and just draw a line over the whole item when it is checked. Other possibility would be to get Reflector and look into the default implementation to get a feeling for what has to be implemented.
|
|
|
|