|
Dim e As New excel.Application
e.Quit
|
|
|
|
|
Hi,
I need to write a very little vb.net console application that can mute or unmute the sound device and change the level of each entry to 0 or max.
I've looked around without succes.
I'm sure that someone here can help me !
Thx
|
|
|
|
|
Hi ,
I want to populate a treeview with 1 million nodes.
How can i do that while maintaining the efficiency of the web page.
i want to achieve this in asp.net 1.1
though i have the option of working in asp.net 2.0 but i m not familiar with that.
suggestions for asp.net 2.0 are also welcome.
thanks & regards
Kapil Thakur
|
|
|
|
|
Kapil Thakur wrote: How can i do that while maintaining the efficiency of the web page.
You can't. Your page will still load exceptionally slowly even on a DSL line. That is if the treeview control will even support that many nodes (I seriously doubt that it supports more than +/- 32 thousand).
You should rather think of another solution.
|
|
|
|
|
hi,
thanks for the reply.
i knew that loading such a tree is impossible.
however is there any way by which i can implement the previous & next methods like paging in datagrid.
that is, on demand i can load a certain number of nodes and then get options like previous and next links. on clicking them, i will load next number of nodes.
can that be achieved?
thanks & regards,
Kapil Thakur
|
|
|
|
|
There is no way to do that. Even if you could add that many node (I think the limit is 65,535), the TreeView wouldn't be usable until the entire tree is loaded. With 1 million nodes, that would take a LONG time, even over a 10Mb/sec connection.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
As the previous two members stated, this is unrealistic.
What exactly are you trying to accomplish with your application? Perhaps we can suggest a more efficient working-model to solve your problem.
On the other hand. You might be able to use a TreeView. You would need to AutoPostBack based upon which nodes are clicked, and then generate childNodes for those upon Page Load. This way, you never have 1,000,000 nodes on a single page, but instead potentially just a few hundred.
Either way, you should tell us what it is you're trying to accomplish, and not how you wish to do so
Jonathan Sampson
www.SampsonResume.com
|
|
|
|
|
as a treeview nodes have indexes in integer you can not make nodes more than integer maximum amount.
try xml files to make a tree-shaped output.
|
|
|
|
|
hi,
can any one tell me how to add sound effects to a vb.net application.
Something like on button click..
|
|
|
|
|
What kind of sound effects? What format?
|
|
|
|
|
a simple beep sound is enough .r any other sound...
|
|
|
|
|
You could use Beep() or if you're using VS2005 My.Computer.Audio.PlaySystemSound(Media.SystemSounds.Beep) . For playing other audio in VS2005 look at My.Computer.Audio.* classes.
|
|
|
|
|
thanx dude..vl check it..
|
|
|
|
|
hello every one....
I have question that how cn i create reguler expression in vb.net and also i would like to ask that how can i use this regular expression with user data base which is in any database like SQL server , ASSCESS or ORECAL etc.So how cn i deal with regular expression ?
And one more question is that how can i get the user database constrain? I get till field's data type now i want the size of that field and the constraints which giving to that field.
|
|
|
|
|
Hi Mansi !
Try this Google[^]
Hope this helps you !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
good day again... how does a function return two value?
thanks
nothing is impossible.....
|
|
|
|
|
dim intTest as Integer = GetNumber()
...
.....
.......
function GetNumber() as Integer
dim i as Integer = 1+2
GetNumber = i
' or return i
end function
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
thanks, your function does involves to values, but return one result..
... i mean to ask, how does a function return to result..
ex: textbox1.text = getNumber(1)
textbox2.text = getNumber(2)
the code you provided was a great help, but it only returns 1 result... does anyone here knows how a function return two results?... thank you..
nothing is impossible.....
|
|
|
|
|
Correction i mean "two results"
nothing is impossible.....
|
|
|
|
|
{{ A7WAL }}
FLOAT LIKE A BUTTERFLY STING LIKE A BEE
Mohamad A. Flefel
mflefel@hotmail.com
+962 79 5963865
C#.net & VB.net Developer
|
|
|
|
|
|
Hi,
To return multiple values from a function, you will have to pass the arguments ByRef, not ByValue. The values you want to return will only be set to the arguments and these will be refelected outside the function.
Search MSDN for ByRef keyword for more details !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
thank you sir... your help is highly appreciated...
nothing is impossible.....
|
|
|
|
|
An alternative is to define a structure that has two values and return that. In .NET 2 you could use one of those libraries that has a Pair generic class, e.g., see the free PowerCollections library. In C++ the Standard Library also defines a Pair class precisely for situations where you want to return two values - which is quite a common scenario in fact. I try to avoid ByRef when possible because it makes code less clear. But often you can't avoid it. Unfortunately, I'm not using .NET 2.0 yet, so can't use libraries such as PowerCollections.
Kevin
|
|
|
|
|
Hi,
Alternatively you can simply work with arrays. I managed to do it like this:
Private Function Amounts(ByVal SomeByValIfNecessary As String) As Integer()<br />
Dim AMarray(2) As Integer<br />
Try<br />
AMarray(0) = 1<br />
AMarray(1) = 2<br />
AMarray(2) = 3<br />
Return AMarray<br />
Catch Ex As Exception<br />
msgbox(Ex.message)<br />
End Try
Elsewhere you can then call upon the different returned values like this:
SomeIntegerVariable1 = Amounts(SomeValueForTheByref).GetValue(0)<br />
SomeIntegerVariable2 = Amounts(SomeValueForTheByVal).GetValue(1)<br />
SomeIntegerVariable3 = Amounts(SomeValueForTheByVal).GetValue(2)<br />
Hope this helps,
Johan
-- modified at 7:30 Friday 24th November, 2006
|
|
|
|