|
You can only set a reference to a .NET or COM-based .DLL. Since the reference won't go, you're trying to set one on a normal library .DLL. The only way to get at the functions of a library .DLL is to use P/Invoke. But, in order to do that, you need the documentation on the functions in the .DLL. Wihtout it, you're just guessing at the parameters you have to setup for each function.
|
|
|
|
|
Dave, many thanks I'll try a work around...
|
|
|
|
|
Hi group,
I have a tree view with eg. following nodes
# People
|
+--# Custumers
|
+-- # Anne Charles, Hillroad 14, 7766 MyTown, My Country
|
+-- # Steve Jones, Forestroad 12, 7766 MyTown, My Country
With the command
Me.treeViewM.Nodes(0).Nodes(0).Nodes(0).EnsureVisible()
I can ensure that "Anne Charles" is visible within the treeview. My problem is: If the treeview is not wide enough to show the complete node text of this node, the horizontal scroll bar is automatically moved to the right so that node structure shown left from the "A" in the text "Anne Charles" is not visible any more. Thus
Anne Charles, Hillroad 14, 7766 MyTown, My Country
Steve Jones, Forestroad 12, 7766 MyTown, My Country
is visible and the node structure is hidden.
Question: How can I ensure that the node "Anne Charles" is visible and also the horizontal scrollbar is aligned to the left, which means that the node structure left from the text is still visible?
Best wishes
Michael
[Visual Basic .net 2005]
|
|
|
|
|
Take a look at this[^]. One of the responses claims to do the trick. Unfortunately the code is C#, but have a look, you may be able to convert it yourself, but if not I'm sure that someone here will be able to help you out.
I have also found this snippet:
SendMessage(treeView.Handle, WM_HSCROLL, SB_LEFT, 0);
This also uses the Windows API, I don't think it is possible without doing that, but there's plenty on the web about the SendMessage API call, you will also need to look up the values for the WM_HSCROLL and SB_LEFT constants.
Good luck!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
modified on Wednesday, April 1, 2009 6:58 PM
|
|
|
|
|
thanks for your hints.
I've found the explanations on
[^]
It solved my problem.
best wishes
Michael
|
|
|
|
|
hi .... everybody
who can give me example of Database + listbox with image or icon
the icon and image within listbox can be checked by people and give the result of database query
garnett
|
|
|
|
|
If memory serves, QuickBooks used to use that technique.
Hope this helps.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I can use VB.Net or C# .... just what I want
I now estimate the method
please don't post the reply answer of no help
garnett
|
|
|
|
|
This guy has posted the same request in more than one forum.
I have asked him to remove one, and explained the reasons that he should.
He appears not to want to.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I just want to know C# or VB.Net method
so I post to two forum
and plz don't waste time to reply unuseful answer
I only want to know the method that how to do it
garnett
|
|
|
|
|
I found the answer by myself, it uses component called "listbar"
I only want the answer like this , ok ?
garnett
|
|
|
|
|
Hi all,
i have vb.net dll and i used this dll from webbage, i want this dll to display message box through webpage to the client ans open new page contains textbox to get input from user.
please i want urgant help in this point.
Thanks
|
|
|
|
|
Several things wrong with your post:
0: this is the VB.NET forum, your question is about webdevelopment so go to the ASP.NET forum : Correct forum[^] and ask there again
1: every question here is urgent, the people answering however don't get payed so you'll get an answer whenever you get it.
2: from what I can understand from your question, what you are trying to do isn't possible (as far as I know), but ask in the correct forum and people can make better suggestions
|
|
|
|
|
|
Hello friends,
I want to copy a file from one folder to another.
I am using File object.copy to copy the file from one folder to another. How can i make sure that the copy is success or not?
Thanks and regards
Jishith
|
|
|
|
|
If it succeeds, no exception will be thrown, and File.Exists(destination) will return true
|
|
|
|
|
I have a text file that has similar lines..;
i want to count those similar lines and write it as 1 line with a new fieldname Quantity indicating the number of similar lines...
thanks in advance
|
|
|
|
|
Import it in a database and do a SELECT DISTINCT
I are troll
|
|
|
|
|
When handling text files and doing actions on them I always find its best to read the whole text file line by line into a datatable or array or list. Do your actions you need to do on that datatable / array / list and then overwrite the file with a new one.
|
|
|
|
|
i have not used datatable before...
i have no idea about it.
i searched google, but did not get anything useful to do...
any help to import text file into datatable will be mmore helpfull.
thanks for the previous reply and for the future replies...
|
|
|
|
|
From memory :
dim dt as new datatable("a name")
dt.columns.add(new datacolumn("column1",getttype(string)))
dt.columns.add(new datacolumn("column2",getttype(string)))
dt.columns.add(new datacolumn("column3",getttype(string)))
dt.columns.add(new datacolumn("column4",getttype(string)))
...
'now that you have your datatable
'read your textfile line by line
do while not reader.eof
dim dr as datarow = dt.newrow
dr.item("column1")= "your value for that column here"
dr.item("column2")= "your value for that column here"
dr.item("column3")= "your value for that column here"
dr.item("column4")= "your value for that column here"
...
dt.rows.add(dr)
loop
'now you have your entire textfile in a datatable
'you can do all your actions on that datatable now and then overwrite your textfile with a new one
hope this helps
|
|
|
|
|
what tool should i add from the toolbox to use this code???
is it a DataGridView or DataSet or something else.....
i feel like sitting in a dessert where there is nothing available...
my mind is completely blank.....
|
|
|
|
|
If you don't want to display the file on a form you don't need a tool
This
dim dt as new datatable("tablename")
create's the datatable
This
dt.columns.add(new datacolumn("column1",gettype(string)))
Create's a column within that datatable with the name 'column1' and datatype 'string'
this
dim dr as datarow = dt.newrow
create's a new row in the datatable
this
dr.item("column1")= "value goes here"
puts 'value goes here' into this new row in the column 'column1'
so you do the code I send you urlier
while reading your textfile (you already have that code) you fill the datatable.
Every line in your textfile is a new row (dim dr as datarow = dt.newrow) in your datatable.
Every "column" in your textfile is a column in your datatable
Once you have done this you can easily go over the datatable and add / delete / alter rows
for each dr as datarow in dt.rows
if (some check)=true then
'do something here
...
else
'do something else here
...
end if
next
and as last action just run over your datatable again and for every row you write a line to your textfile
|
|
|
|
|
|
vijay2482 wrote: Do While Not sa.ReadToEnd
That's where its going wrong. Readtoend returns a string. When doing a check with 'not' in it you need to have a boolean type.
For reading the text file you have to use the code you already had. (nothing changes there) but instead of trying to do your alterations (delete/new/alter) inside that loop you just put your data (from the textfile) in the correct column in the datatable.
Then after you'v read the text file, you can do all your alterations on the datatable.
(A datatable is basicly the same as a table in sql or access)
|
|
|
|