|
sir,i want the code for that,can you have please share with me
code should be in Vb.net
regards
rajesh
-
|
|
|
|
|
am using mastpage ang membership provider. i want to be able to load menu and submenu dynamically. when a user login. i dont want to do this on each form load. how else can i achieve this
|
|
|
|
|
Don't you want the ASP.NET forum instead?
|
|
|
|
|
|
Firstly before you Post, Google
Secondly VB6 is Dead and Buried, why would wanna punish your self by still learning anything in vb6 style. try any of the .NET Languages.
http://www.google.co.za/search?hl=en&q=how+smtp+used+in+vb+6.0+&btnG=Google+Search&meta=[^]
Next time you must google before you ask someone who a thing is done
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
I need to pass a variable from one procedure to another in visual basic, can anyone help me by sending me a small example
|
|
|
|
|
What Version of Vb are you using (Hope not vb6), because i have no plan in helping you if you still use that(vb6 is dead). Explain Exacly what you want and by showing us what have you done so far, lets see your code or you Procedure.
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Just because a language is no longer supported by its maker does not mean it is dead. A language is "dead" when no one uses it anymore. There are plenty of legacy applications written in Visual Basic 6 that I'm sure will need to be updated in the years to come.
Private Sub A (ByVal Param As String)
' Do something with Param
End Sub
To pass it, call A("string") .
|
|
|
|
|
Hi
Private Sub Month_Click()
Worksheets(SetMonth).Range("M1").Select
Count6 = 0
Do
Count6 = Count6 + 1
ActiveCell.Value = "0"
ActiveCell.Offset(1, 0).Activate
Loop Until Count6 = Count5
need to pass Count6 to Procedure1
Sub Procedure1()
SetMonth = "August"
Count7 = 0
Do
Worksheets(SetMonth).Range("M1").Select
Bill1 = Application.InputBox("Enter July Amount?")
ActiveCell.Value = Bill1
ActiveCell.Offset(1, 0).Activate
Count7 = Count7 + 1
Loop Until Count7 = Count6
Worksheets(SetMonth).Range("A:K").Select
Worksheets(SetMonth).Columns("A:K").AutoFit
End Sub
Does this mean then that I change the following or am I misunderstanding, its been a while since I wrote visual basic script:
Private Sub Month_Click(ByVal Count6 As String)
and
Sub Procedure1(Count6 As String)
|
|
|
|
|
No, I wrote that as VB.Net. For VBScript make it Sub Procedure1(variablename) . Look for the Passing Variables into a Subroutine section on VBScript in a Nutshell[^].
|
|
|
|
|
i am not understand your ans. so pls. describe it
|
|
|
|
|
Can i trap crystal report pop up msg in vb 6.0
|
|
|
|
|
|
i used google but i can't find ans proper
& here i used crystal report this sof connect with any technology vb 6.0, vb.net ..... so give me ans in with any tech if u know in vb.net then give ans.
Thanx
|
|
|
|
|
From what I know you can only use Crystal Reports 11.5 with .Net.
Here at work we use 7-8.5 in VB6 with no problems, but I'm not sure what you mean by "trap the message box".
|
|
|
|
|
when i run project (vb 6.0) & open at a time more then 5 report (Crystal report 8.5) then it will give me error
Run-time error '-2147189547'(80047cd5)
there are not enough concurrent access licenses to log you on. This system has 5 concurrent access license. Please try again later, or contact your system administrator to obtain more licenses. Licenses can be purchased direct from Seagate Software or through the Segate Software Online Store.
Which pop up in crystal report but i wan't to trap this error in vb 6.0 here i put on error goto command but due to the error is pop up in cr so it is not worked so give proper solution for that.
Thanx
|
|
|
|
|
have you tried a "try... catch" block to grab the error and do something with it?
Like:
Try
rpt.Load(rptfile)
CrViewer.ReportSource = rpt
Catch ex as Exception
MsgBox(ex.Message.ToString)
Finally
rpt.Close
End Try
If that wont work.. then it might be the CR 8.5 will only let you have 5 reports open on your computer... no matter what. In that case you'll have to buy more licenses.
|
|
|
|
|
hi
see he traps the Errors in this article, its not different
http://www.codeproject.com/KB/vb/JatsArticle1.aspx[^]
Hoep it helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
|
Stop Posting One Question many times
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hello,
I'm creating a parser for some logs derived from ssh. I used an array to split the logs for every "next line" I encounter then I have to go through all those lines again (one by one) to check for certain keywords. My problem is after going through the 1st index, the 2nd index acquires a "next line" at the beginning meaning my search can't function accurately. My question is how do I remove that line at the beginning of my 2nd index? I've tried TRIM and REPLACE but none of it doesn't seem to work. Many thanks for any help you could give me.
Oh by the way I'm prehistoric...this is done in vb6
Here's my code:
a = txtSam.Text
strarray = Split(a, Chr(13))
For b = 0 To 3
strarray(b) = Replace(strarray(b), Chr(13), "")
strarray(b) = Trim(strarray(b))
If Mid(strarray(b), 21, 4) = "[15]" Then
pos1 = InStr(1, strarray(b), "<")
strurl = Mid(strarray(b), pos1)
strurl = Replace(strurl, "<", "")
strurl = Replace(strurl, ">", "")
strurl = Trim(strurl)
ElseIf Mid(strarray(b), 21, 4) = "Sent" Then
pos1 = InStr(1, strarray(b), "[msg")
pos2 = InStr(1, strarray(b), "[udh")
str1 = Mid(a, pos1, pos2 - pos1)
str1 = Replace(str1, "[msg:", "")
str1 = Trim(str1)
str1 = Mid(str1, InStr(1, str1, ":") + 1)
str1 = StrReverse(str1)
str1 = Mid(str1, 2)
str1 = StrReverse(str1)
End If
Next b
Aim small, miss small
|
|
|
|
|
You probably also need to remove the newline character. So, after removing the carriage return character, do a replace to remove the newline character. Those two lines of code will look like...
strarray(b) = Replace(strarray(b), Chr(13), "")
strarray(b) = Replace(strarray(b), Chr(10), "")
Hopefully that will do the trick for you...
|
|
|
|
|
This forum never ceases to amaze me. Works perfectly. Many thanks for the help friend!
Aim small, miss small
|
|
|
|
|
Hai,
Can you help me to add the button column in the datagrid using vb.net2003.
This button i want for the purpose of (When i select one row and if we press enter)i have to close that grid,and goto other Form)..
Thanks,
Hanuman.G
hanuman
|
|
|
|
|
Hello,
I'm not totally familiar with vb.net but I think there's an option in the properties box. Try the layout tab. Then just code the opening of the other form like
Private Sub dgdDataGrid_ButtonClick(ByVal ColIndex As Integer)
Form1.Show vbModal
End Sub
Hope this helps
Aim small, miss small
|
|
|
|