|
sir,
error initiates when i double click my setup file.The error message is ... The dot net framework is not installed.i am mounting 2.0 framework.
Can u send me the installation steps (especially for adding the dot net framework)
|
|
|
|
|
|
Hi all
how to accomplish email validation in windows application
Thanks in advance
PraveenKumar Palla
-- modified at 9:39 Friday 22nd June, 2007
|
|
|
|
|
|
Really i am verry sorry
i need email validation in windows application
|
|
|
|
|
The email address format validation is normally done by a regular expression. The link he posted was kind of accurate, but since it's a C++ article, it may be difficult to understand.
This code was taken from this article[^] and converted to VB.NET.
Imports System.Text.RegularExpressions
.
.
.
Public Shared Function EmailAddressIsValid(ByVal address As String) As Boolean
Dim strRegex As String = "^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}" & _
"\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\" & _
".)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"
Dim re As New Regex(strRegex)
If re.IsMatch(address)
Return True
Else
Return False
End Function
|
|
|
|
|
|
Try something like the following:
<br />
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
Dim objRegEx As New System.Text.RegularExpressions.Regex("^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$")<br />
If objRegEx.IsMatch(TextBox1.Text) Then<br />
ErrorProvider1.SetError(sender, "")<br />
Else<br />
ErrorProvider1.SetError(sender, "Email address is not valid")<br />
End If<br />
End Sub<br />
You may have to adjust the regex depending on what you consider a valid email address.
|
|
|
|
|
whenever I am generating EXE of our vb.net project then all those crystal report that is generated using through data set are not proprly running on other system but running fine on same system .
MARA !DEA
|
|
|
|
|
hi,
what problem occur on other system ?
describe the problem which is occur on other system.
without any proper indication how can anybody help you?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
Probably because you didn't install the Crystal Reports runtime when you created your application's installer. Read more here[^].
|
|
|
|
|
How are you deploying your application to the other system? If you are just moving the EXE you are probably missing the Crystal dependency files. Create a Setup project for your app, it will grab all of the needed files and install them on the other system.
|
|
|
|
|
My application draws a pie chart using DrawPie.
Here is a sample:
g1.DrawPie(Pen:=myPen, rect:=New Rectangle _
(x:=x + XAdjust, y:=y + yAdjust, Width:=Width, Height:=Height), _
startAngle:=startPos, sweepAngle:=sweep)
I am finding that the resolution is fairly low.
Is there any other method or object I can use to get a really crisp smooth diagonal line on the pie chart?
Regards
Guy Thiebaut
Cambridge UK
-- modified at 7:04 Friday 22nd June, 2007
You always pass failure on the way to success.
|
|
|
|
|
do work hard i am sure ane day u will get solution
MARA !DEA
|
|
|
|
|
oh - ok thanks.
You always pass failure on the way to success.
|
|
|
|
|
Solved it to some extent...
Using the built in anti-aliasing.
It's not perfect but it is good enough for the moment.
So here is the code:
Public b1 As Bitmap
Public g1 As Graphics
b1 = New Bitmap(Width, Height, Panel1.CreateGraphics())
g1 = Graphics.FromImage(b1)
g1.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias
-- modified at 10:08 Friday 22nd June, 2007
You always pass failure, and a few fools, on the way to success.
|
|
|
|
|
hi everyone,
i have a datagridview on my form at design time. Some column's type of this grid is combobox type. however i can add some items to this combo column at design time but i don't know that how can i add some more items to this combo column at run time ?
any help will be appreciated
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
in the databound event get the control of the particular column then u can add a new control there.
Sathesh Pandian
|
|
|
|
|
hi sathesh,
can u provide some example code or any link?
thanks in advance
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
how to create text file(.txt) with vb.net
1) Create file
2) Save file
3) Read file
4) close file
|
|
|
|
|
hi
read following code
<br />
Private Sub CreateTextFile(ByVal FilePath As String, ByVal data As String)<br />
Dim oFile As System.IO.File<br />
Dim oWrite As System.IO.StreamWriter<br />
Dim oRead As System.IO.StreamReader<br />
Dim PreviousData As String = ""<br />
<br />
<br />
If File.Exists(FilePath) Then<br />
oRead = oFile.OpenText(FilePath)<br />
While oRead.Peek <> -1<br />
If PreviousData = "" Then<br />
PreviousData = oRead.ReadLine()<br />
Else<br />
<br />
PreviousData = PreviousData & ControlChars.NewLine & oRead.ReadLine<br />
<br />
End If<br />
End While<br />
oRead.Close()<br />
End If<br />
<br />
oWrite = oFile.CreateText(FilePath)<br />
<br />
If PreviousData = "" Then<br />
PreviousData = data<br />
oWrite.WriteLine(PreviousData)<br />
Else<br />
PreviousData = PreviousData & ControlChars.NewLine & data<br />
oWrite.WriteLine(PreviousData)<br />
End If<br />
<br />
oWrite.Close()<br />
end sub
Hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
All you have to do is read a little documentation[^]. Pay particular attention to the links at the bottom of that page, under "Tasks".
|
|
|
|
|
How i can open pdf file in vb.net applicatin?
Regards,
Tariq Younas
Software Engineer
Descon Information Systems
|
|
|
|
|
You'll have to use a 3rd party library to open the file for you. All you have to do is Google for "PDF library .NET".
|
|
|
|
|