|
i have a method that contains two parameters . Now my question is , how should i give the address of that method to thread , as the thrad don't allow two parameters ?
|
|
|
|
|
There are two different ways of doing that:
1. Create a class as a container for the two values, and send an instance of the class to the method.
2. Put the method in a class among with two member variables, and put the values in the member variables before starting the thread so that the method can access them.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
3 Pass an array of values into the delegate (I think)
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Yes, that would work. I would call it a cheap version of #1.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi all forum menber
I have XLS file which have format
Adress Name Adress Name Adress Name
Adr1 Name1 Adr2 Name2 Adr3 Name3
Adr4 Name4 Adr5 Name5 Adr6 Name6
this data is read and input DataGridView which have format
Adress Name
Adr1 Name1
Adr2 Name2
Adr3 Name3
Adr4 Name4
Adr5 Name5
Adr6 Name6
Please tell me the way to do it
Thanks all Surport
This will appear at the end of articles you submit to the Code Project
|
|
|
|
|
Have a look in your Control Panel/Administrative Tools/Data Sources. You may find that you have a Data Source called Excel Files under either the User DSN or System DSN tab. Using this, connector may be the simpliest way of achieving your desired results.
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Hi,
I want to import data from Tally to Ms Access or SQL using VB.net,how will i do it, Thank you.
coolsatty
|
|
|
|
|
What is Tally? Presumably a vertical software package that you do not have access to the database.
Find out if you can connect to the database.
Find out if you can export the data.
Find out if you can output the data as reports.
Deal with the resulting output by parsing the information.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello
How can I connect a Nokia phone with PC and send/receive sms ?
which dll file must I use to connect to every phone?
|
|
|
|
|
Do you have a VB question at all? You might be better off asking your question in the Mobile Development[^] forum.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi everyone...Can anyone of you help with this task because I started an application that supports audio and media format but I don't know how can I use OpendDialog to place a song on a ListBox...
best wishes
Qendro
|
|
|
|
|
Hi!
To just put the song's name in the listbox I suggest using the FileName from the OpenFileDialog and splitting it in order to extract the filename only, for example:
Dim OpenSong As New OpenFileDialog
OpenSong.ShowDialog()
If Not OpenSong.CheckFileExists Then Exit Sub
If OpenSong.FileName = "" Then Exit Sub
Dim SongSplit As Array = Split(OpenSong.FileName, "\")
Dim SongName As String = SongSplit(SongSplit.Length - 1).ToString
MyListBox.Items.Add(SongName)
This Should Work, If All you want to do is add the song's name to a listbox, forgive me if I misunderstood your question.
Hope This Helps!
MrWolfy
|
|
|
|
|
There's always Path.GetFileNameWithoutExtension
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Check this link.[^]
Hope this will help you.
Pershendetje
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Hi All!
Having browsed through several immensely complicated and powerful docking form frameworks, I have found that my knowledge of Visual Basic is just not great enough to use them and that my application does not require such powerful frameworks.
All I am looking for is something that can take standard windows forms and dock them to the edges of a parent form. I have considered creating a control myself but don't know where to start.
Does anybody know where I can find an example, article or control that can accomplish, or help me accomplish this?
Thanks!
MrWolfy
|
|
|
|
|
Is this not an MDI application. I am not aware that you can "dock" a standard form to a parent form unless it is MDI. I never use MDI but thought this was one of the features.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi And Thanks!
Okay, I guess I'll just have to find some other way of accomplishing this, worth a try though eh?
Thanks Again!
MrWolfy
|
|
|
|
|
Hi,
Make the 2nd form "un-moveable" after posisioning it at the required loction. in VB6 set "Moveable=false"
|
|
|
|
|
Hi And Thanks!
Hey! Great Idea! And What's more, it worked!
Thanks Again!
MrWolfy
|
|
|
|
|
|
Why can't you just divide the Value by the Maximum ?
|
|
|
|
|
Exactly....
I think the trouble is... the"value" of what. I think sometimes that is the value of the dataset if I am doing a query on a database in which case I think I need to know the total number of records returned which I might know after retriving the dataset.
Other times it might be the size of a file that I am either saving or opening, which I would know after the fact.
Thats kind-of what I'm wondering is if there is some gerenic Algorithm that can be used when you don't know ahead of time how big something is.
It seems if you don't know then the progress is not really a direct feedback of what I'm doing at the time.
Which is why the examples in the help files etc are some lame.
Thanks thought for the response
Rafone
Statistics are like bikini's...
What they reveal is astonishing ...
But what they hide is vital ...
|
|
|
|
|
Now you know why the industry is moving towards the rotating progress image, don't know how long it will take but I'm still working....
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi folks I am using Visual Basic script and I need to select a range based on one of the following notation
Worksheets(SetMonth).Range($D$8:$D$24).Select
StartLocation = "$D$8"
EndLocation = "$D$24"
Worksheets(SetMonth).Range(" & StartLocation & ":" & EndLocation & ").Select
Both of the above seem to work with other formulations however I don't seem to be able to use either of the above to select the range of cells required.
Can Anyone help
|
|
|
|
|
Matthew Leggett wrote: Worksheets(SetMonth).Range(" & StartLocation & ":" & EndLocation & ").Select
Is that the full code line, since it doesn't make sense. Starting and ending quotation marks don't match. If this is Excel VBA, it would look something like:
Worksheets("SetMonth").Range(StartLocation & ":" & EndLocation).Select
|
|
|
|