|
You could always create your own from scratch. It isn't that difficult to do.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Hi Guys,
Can someone show me how to put a message
in outlook's outbox (Microsoft outlook by the way )
Thanks in advance.
|
|
|
|
|
You might want to look into Microsoft Interop for that. I've worked with it in Word and Excel, but not sure about in Outlook. It's worth looking into.
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus
|
|
|
|
|
Hi friends,
I face problem in VB.net 2003,could you tell how we insert the progress bar in the status bar?
Thanks a lot
|
|
|
|
|
tharshini wrote: I face problem in VB.net 2003,could you tell how we insert the progress bar in the status bar?
Visual Studio 2003 does not have a progress bar control built into the status bar (like VS 2005 does). What you have to do is to drag and drop a progress bar on top of your status bar, and then either anchor the progress bar control "Left and Bottom", or "Right and Bottom", depending on if you want to show it on the left or right side.
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
I am not 100% sure on 2003, but with 2005 all you need to do is first insert the status bar. Once inserted, you should be able to click on the status bar and add a progress bar.
|
|
|
|
|
i wanna create a setup file with vb.net. i wanna send a font file to c:\window\font folder when my setup run.please tell me any action or coding for that matter...my mail is phowarso@gmail.com.
|
|
|
|
|
These two links taught me everything I needed to know on setup files.
Guess what, they are both on codepoject
Link1
Link2
They are both well written tutorials.
-- modified at 4:34 Tuesday 25th September, 2007
You always pass failure on the way to success.
|
|
|
|
|
Please read the forum guidelines and give your messages appropriate titles. "help" gives us no clue what the problem is and will get you ignored.
__________________________
Don't drink and derive.
Alcohol and calculus don't mix.
|
|
|
|
|
Hi friends ,I select budget monitoring title for my final project, we do our project with VB.net 2003& sql server 2000,Can you help to do my project
Thank You
Your's Friend
|
|
|
|
|
No, you haven't asked any specific questions that we could possibly answer.
|
|
|
|
|
Here is my situation:
My application fill up an ArrayList with numbers from where I need to generate random numbers from this Array...is like picking some numbers ramdonly from this universe of numbers.
I have tried everything I know but no manage to get working.
I will appreciate any sugestions.
Thank all and my regards.
Marcio Muniz
|
|
|
|
|
demasoft wrote: I have tried everything
please explain!
demasoft wrote: no manage to get working
please explain!
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hi Luc..
Ok...suppose you have an ArrayList with values , like:
index value
0 8
1 12
2 17
3 22
4 26
5 34
what i need to do is generate a function to pick for example 3 values randomly from the values on on the ArrayList....like
1st numbers generated: 8, 17, 26
2nd numbers generated: 12,26,34... and so on.
I tried use random using as reference the index of the ArrayList but its generated numbers from the lowest index to the higher one...on this example it will include numbers 9,10,11,13,14...
and i just can use the numbers in the Array.
Got it??
Thanks for your replay.
Marcio
Marcio Muniz
|
|
|
|
|
Marcio
In your function do the following:
let's say variable is names iaNumbers
Randomize()
return iaNumbers(Int(Rnd() * iaNumbers.count))
|
|
|
|
|
Hi nlarson,
have a look at my code...it's just a part of...
when load the form I have the ArrayList filled up and see the numbers on a listbox:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim i As Integer
With arrlst
.Add(4)
.Add(8)
.Add(12)
.Add(19)
.Add(23)
.Add(27)
.Add(28)
.Add(32)
End With
qtd = arrlst.Count
Try
For i = 0 To qtd - 1
ListBox1.Items.Add(arrlst(i))
Next
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
when I clicked on the btn, should generate the random numbers from the ArrayList:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim rndval As New Random()
Dim val As Integer
Dim a As Integer
Dim minval As Integer = arrlst(0)
Dim maxval As Integer = arrlst(qtd - 1)
For a = 0 To 4
Randomize()
val = Int(Rnd() * arrlst.Count)
ListBox2.Items.Add(val)
Next
End Sub
I tried your sugestion but the result brought me numbers that do not exists in the Array.
Thank you for your sugestion.
Marcio
Marcio Muniz
|
|
|
|
|
my code got you the index of the arralist now respond with what the index has in it
change to listbox2.items.add(arrlist(val))
|
|
|
|
|
YOU ARE A CHAMPION.....THANKS A MILLION...
ALL THE BEST!!!!!
Marcio
Marcio Muniz
|
|
|
|
|
How to in VB.NET 2005
It is possible in C# but how in VB ??
Thanks
|
|
|
|
|
like so:
Sub Main()
Dim sb() As String
Dim s As String
sb = sa()
For Each s In sb
Console.WriteLine(s)
Next
Console.ReadLine()
End Sub
Function sa() As String()
Dim saa() As String = New String() {"0", "1", "2"}
Return saa
End Function
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Possible in C# (see ASP Controls Toolkit) ut not in VB?
Thanks
|
|
|
|
|
when by itself, it does appear to blow up.
define a class and pass the array within it and pass the class back and forth...
note: the dll the class is in will need to be on both sides (client and webservice)
|
|
|
|
|
It's done exactly the same way it's done in C#. Though the syntax would be a little different.
|
|
|
|
|
Dave,
I tried it this way and the webserver blew up responding:
<WebMethod()> _
Public Function saTest() As String()
Dim sa(3) As String
sa(0) = "A"
sa(1) = "B"
sa(2) = "C"
Return sa
End Function
|
|
|
|
|
I can't see the error you posted, probably because it's wrapped in tags and you didn't check the "Ignore HTML tags in this message" checkbox before you hit "Post Message".
But, in any case, the code, as you posted it, DOES work.
This sample was done under VS2005, modified for .NET 3.0 and WCF extensions. See if you can guess which method will fail and why?
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel
<System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
Public Class Service1
Inherits System.Web.Services.WebService
<WebMethod()> _
Public Function GetArrayOfStrings() As String()
Dim strings As String() = {"Some text 1", "Some text 2", "Some text 3"}
return strings
End Function
<WebMethod()> _
Public Function GetArrayOfStrings2() As String()
Dim strings(3) As String
strings(0) = "Some text 1"
strings(1) = "Some text 2"
strings(2) = "Some text 3"
return strings
End Function
<WebMethod()> _
Public Function GetArrayListOfStrings() As ArrayList
Dim list As New ArrayList
list.AddRange(New String() {"Some text 1", "Some text 2", "Some text 3"})
return list
End Function
<WebMethod()> _
Public Function GetListOfStrings() As List(Of String)
Dim list As New List(Of String)
list.AddRange(New String() {"Some text 1", "Some text 2", "Some text 3"})
return list
End Function
End Class
|
|
|
|