|
try moving this line:
Dim st As New System.Windows.Forms.TextBox()
into the for loop
|
|
|
|
|
Thanks i moved the line into the loop and it worked.
Now any number of textboxes i want can be displayed at run-time.
Zacharyshroyer i am glad for the heplp
Fikunmi Feyijin
Hicad Systems
Nigeria
|
|
|
|
|
Hi all,
i have a web application developed in vb.net 2005.... now i want the clients on LAN to use it....i'm unable to do so please tell me how do i do that.
Thanks and Regards..
|
|
|
|
|
when you run you web aaplicationthern address will look like this http://localhost/ApplicationName/login.aspx so let the client replace
the localhost with your ip address like this
http://ip address/ApplicationName/login.aspx
Tamimi - Code
|
|
|
|
|
Hi Tamimi,
Thanx for your help....but sorry it did not work instead it gives some error...the error is....
Source Error:
Line 11: debugging ASP.NET files.
Line 12: -->
Line 13: <compilation defaultLanguage="vb" debug="true"><assemblies><add assembly="CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.ReportSource, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.Shared, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.Web, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></assemblies></compilation>
Line 14:
Line 15: <!-- CUSTOM ERROR MESSAGES
Please Help..
Thanks and Regards
|
|
|
|
|
i don't know its work for me with VS 2003
sorry !!
Tamimi - Code
|
|
|
|
|
Hi
i know that it works on VB.Net 2003....it has also worked for me in past....but its not working in VB.Net 2005....i dunno wat to do.....can anybody else help....
Thanks and Regards.
|
|
|
|
|
Go back to basics and RTFM re: Crystal, ASP.NET, VB.NET and web design.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
|
|
|
|
|
Thanks for your Help steve.
But the way it used to work in Vb.Net 2003 its not doin in VB.Net 2005...so i asked...
Thanks and Regards.
|
|
|
|
|
I am working on VB .NET 2005. I have created one windows form. In that I made one text box as tb1. Then I created on thread as
public ts as new thread(Addressos doit)
in form load i have writen
ts.start()
then i made the sub as follows:
Public Sub doit()
tb1.Text="Hello world!!"
End Sub
Here it is triwing an exception...
Cross-thread operation not allowed...or like this....
Kindly, tell me how can I use the text box what i have created on the form in a thread.
Thanks.
Abhideep
|
|
|
|
|
Add the following at the top of the Form Load event:
Control.CheckForIllegalCrossThreadCalls = False
|
|
|
|
|
Hi I'm writing an asp.net app with vb.net backend
I populate a dataset from a db
Dim ds As DataSet = databaseConn.getds()
I now want to filter a column called department, i want to select all rows where department = 'igls' I'm using the select function on a dataset
Dim foundRows As DataRow() = ds.Tables(0).Select("department = igls")
my problem is writing the FilterExpression ("department = igls") anoyone know the syntax of a filterexpression is or point me in the dirrection of some articals on it, i can't find anything, thanks
|
|
|
|
|
hi
if the column department defined as string then the syntax is
("department = 'igls' ") you must put the single quote around the string
Tamimi - Code
|
|
|
|
|
wow I feel pretty damn stupid,
thanks for your help
|
|
|
|
|
HOw can i print preview of print my text file in vb.net?
Thanks
................
|
|
|
|
|
More info-- are you trying to open a text file then print it out to a printer. If so
you could just print it to a text box and use the printpreviewdialog control.
depending on the file size you may want to use a stream reader to populate a listbox line by line. Then print each line to the the print document.
|
|
|
|
|
Can u give me an example?
Thanks
................
|
|
|
|
|
'first read the file line by line into an array using a file reader------
Dim fs As New FileStream(path, FileMode.Open)
Dim MyFS As New StreamReader(fs)
Dim Lin As Object
Dim I as integer
Dim strTest as string(50)
Lin = MyFS.ReadLine()
While Not Lin = Nothing
strTEST(I) = Lin
Lin = MyFS.ReadLine()
I +=1
End While
"This is kind of rough but you should have an array of up to 50 lines of text
'put this into a button click event-------------------------------
Dim pd As PrintDocument = New PrintDocument 'Assumes the default printer
AddHandler pd.PrintPage, AddressOf Me.pd_PrintPage
PrintPreviewDialog1.Document = pd
PrintPreviewDialog1.ShowDialog()
'---------------------------------------------------------
Private Sub pd_PrintPage(ByVal sender As Object, ByVal ev As System.Drawing.Printing.PrintPageEventArgs)
Dim vbFont As New System.Drawing.Font("Times New Roman", 9)
Dim q,n as integer
for q = 0 to 50
ev.Graphics.DrawString(strTest, vbFont, New SolidBrush(ForeColor), 0, n)
n += 20
end sub
'any way this is the general idea
'I didn't test the code, but this should get you started
|
|
|
|
|
Thank for your answer, by the way can you help me, how can i change title when jajascript is alert in WebBrowser Control.?
................
|
|
|
|
|
Hi
Can anybody help me out for , is it possible to send an email through an vb.net desktop application.
Is there any way .
|
|
|
|
|
yes you can !!
Imports System.Web.Mail in your code
then use the MailMessage Class
Tamimi - Code
|
|
|
|
|
Tamimi you code is use for web application not in window application.
................
|
|
|
|
|
sorry
i know only this way
Tamimi - Code
|
|
|
|
|
The System.Web.xxxx namespace can be used in either type of application.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Actually, I believe that code will work in a WinForms application as well. I suggest downloading the '101 Visual Basic and C# Code Samples' and taking a look at the one titled 'How-To Send Mail'.
Scott
|
|
|
|