Pgmer 50 Master Poster Featured Poster

Oooops..:)
Anyways nice that u got the sollution..
Happy coding...:)

Pgmer 50 Master Poster Featured Poster

You can go for threads where u can give some pause..
m i right debasis?

Pgmer 50 Master Poster Featured Poster

Do u have permision on file?
Is File is read only?
Check out

Pgmer 50 Master Poster Featured Poster

you want handle it for perticlar session?
if yes have session level variable. in click event of face count and validate

Pgmer 50 Master Poster Featured Poster

Change ur Query to get one value after adding

Select Fileld1+Field2 as ColumnName from Table where conditon

Pgmer 50 Master Poster Featured Poster

Hi debasis das Is it not good idea to have property then having variables with wider scope?

Pgmer 50 Master Poster Featured Poster

Please mark the thread as solved. when it is solved.

Pgmer 50 Master Poster Featured Poster

If both the control are same which u want to fire then you can do something like this.

Private Sub Label1_Click(ByVal sender As Object, ByVal e As System.EventArgs)Handles Label1.Click, Label2.Click, Label3.Click
' Your code what u want to do
End Sub
Pgmer 50 Master Poster Featured Poster
Dim txt As New TextBox
            txt.Name = "txttest"
            Dim loc As System.Drawing.Point
            loc.X = 300
            loc.Y = 168
            txt.Location = loc
            txt.Text = "Testing textbox"
           
            txt.ReadOnly = False
            Me.Controls.Add(txt)

Get the location of your label control and set that location to textbox and after adding the textbox hide your lable control

Pgmer 50 Master Poster Featured Poster

ya izyrider is correct. when click on one control u want to fire one more control that you can do..

Pgmer 50 Master Poster Featured Poster

Then plz mark the thread as solved.

Pgmer 50 Master Poster Featured Poster

You want to open the page? if yes you can use response.redirect("URL").

Pgmer 50 Master Poster Featured Poster

But he has mentioned like
I want the vb.net code(asp.net 2.0) for validating multiple email address in a textbox(multiline).

Pgmer 50 Master Poster Featured Poster
Private Function ValidateEmail(ByVal EmailAddress As String) As Boolean
        Try
            If EmailAddress.Trim.Length = 0 Then
                MsgBox("Please enter the email Address")
                Return False
            End If
            Dim pattern As String = "^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$"

            Dim emailAddressMatch As Match = Regex.Match(EmailAddress, pattern)
            If emailAddressMatch.Success Then
                Return True
            Else
                MsgBox("Please enter the valid email address")
                Return False
            End If


        Catch ex As Exception

        End Try
    End Function

Pass each email adress from array to this function and it will return true or false

Pgmer 50 Master Poster Featured Poster

First Design the tabs as u want and the Set its allign proerty to left

Pgmer 50 Master Poster Featured Poster

go to IIS and rightclick on ur virtual directory go to properties and then click on remove and then create.. try this out..

Pgmer 50 Master Poster Featured Poster

Add timer control to ur form set the interval of the timer and make enable=true
and then in timer_click event write the cde what u want to do.

Pgmer 50 Master Poster Featured Poster

Have you tried the code to load the listbox witth one item? i have pasted the code.
And have you not used the timer control?

Pgmer 50 Master Poster Featured Poster

After creating the webservice have you tried to browse ur web service within the IIS?. If yes Whats the URL ur getting? have you added the Same URL while adding the referce in ur project?

Pgmer 50 Master Poster Featured Poster

Can you please paste your code here? so that we can help..

Pgmer 50 Master Poster Featured Poster

Plz mark the thread as solved

Pgmer 50 Master Poster Featured Poster

Hi Devanadhan,

U need to use autocomplete source and autocomplete mode property of combo to do that.

And plz start new thread dont post is some one else post

Pgmer 50 Master Poster Featured Poster

DataGridView1.Rows.RemoveAt(DataGridView1.CurrentRow.Index)

Pgmer 50 Master Poster Featured Poster
Private Shared _Instance As Form1 = Nothing

    Public Shared Function Instance() As Boolean
        If _Instance Is Nothing OrElse _Instance.IsDisposed = True Then
            _Instance = New Form1
            Return False
        End If
        _Instance.BringToFront()
        Return True
    End Function

Try this

Pgmer 50 Master Poster Featured Poster

Sorry there is no such method called instance.
We need to write custome code to check.

Pgmer 50 Master Poster Featured Poster

Use the instance method of the object(form) to check one instance is already running..

Pgmer 50 Master Poster Featured Poster

Hi,
Write the property in the form with get set values...
and set the values based on that. hope this will give you an idea

Pgmer 50 Master Poster Featured Poster

How ur binding data to combobox?

Pgmer 50 Master Poster Featured Poster

Explain in details what exactly you want to do?
u want to monitor state of process?
if yes try out System.process ("ProcessName")

Pgmer 50 Master Poster Featured Poster

Explain in details what exactly you want to do?
u want to monitor state of process?
if yes try out System.process ("ProcessName")

Pgmer 50 Master Poster Featured Poster

Use IF EXISTS method in sql
if EXISTS returns true then rerun -1 or boolean as false... then give the message box appropriately...

Pgmer 50 Master Poster Featured Poster

Hi, Use instr method and substring method to get ur out put...
Happy coding... )

Pgmer 50 Master Poster Featured Poster
' Form Level varibales
 Dim dsNew As New DataSet
 Dim Index As Integer = 1


'' Form load event
       Dim strCon As String = "Ur Data base connections"
        Dim conn As New SqlConnection(strCon)
        conn.Open()
        Dim comm As New SqlCommand("Select * from test", conn)
        Dim da As New SqlDataAdapter(comm)
        Dim ds As New DataSet
        da.Fill(ds)
        If ds.Tables.Count > 0 Then
            lstBox.Items.Add(ds.Tables(0).Rows(0).Item(0))
        End If

'' Button Next click Event
      Try
            Dim strCon As String = "ur data base connections"
            Dim conn As New SqlConnection(strCon)
            conn.Open()
            Dim comm As New SqlCommand("Select * from test", conn)
            Dim da As New SqlDataAdapter(comm)
            Dim ds As New DataSet
            da.Fill(ds)
            dsNew = ds
            Dim irowcount As Integer
            lstBox.Items.Clear()
            irowcount = ds.Tables(0).Rows.Count
            If Index >= irowcount Then
                MsgBox("Questionary over Thanks for  Attending...")
                Exit Sub
            End If
            If ds.Tables.Count > 0 And ds.Tables(0).Rows.Count > 0 Then
                irowcount = ds.Tables(0).Rows.Count
                lstBox.Items.Add(ds.Tables(0).Rows(Index).Item(0))
                Index = Index + 1

            End If
        Catch ex As Exception

        End Try
    End Sub
Pgmer 50 Master Poster Featured Poster

what is ur aproach to load the data to list box? are you using dataset?

Pgmer 50 Master Poster Featured Poster

oohhh Sorry Vineeth i think i have not understood your question properly..
and myt have given wrong answer..:(

Pgmer 50 Master Poster Featured Poster

Try using Checked list box control. its very easy if you bind ur data from database..

Pgmer 50 Master Poster Featured Poster

which data base ur using?

Pgmer 50 Master Poster Featured Poster

Build your webservice and copy the output files on the server and cofigure IIS by creating virtual folder then you can access from wherever you want to.

Pgmer 50 Master Poster Featured Poster

I think you havel already created thread for this.. :)
Did you try the sollution given there?

Pgmer 50 Master Poster Featured Poster

Hi Vineeth,
In Vb i dont think so u can EDIT the application like this. You need to make the changes whatever you want and build the application and need to give the exe... just cant edit the published version becoz once you pulbish the version your application will be in GAC and ur application will be looking for reference and other info from the old Menifest file.

Pgmer 50 Master Poster Featured Poster

Hi,
you can for Checkedlistbox control first load all the students from DB for that subject and then Get the student who are present, based on that mark the check boxes

Pgmer 50 Master Poster Featured Poster

Pass the command to the adapter, before filling the adapter just pass the command to it and see...

Pgmer 50 Master Poster Featured Poster

Select * from Customer where customerreferene number='Pass the reference number'.
Fill the data set with the records, loop through all the records and assign the values to the respective textboxes.

Pgmer 50 Master Poster Featured Poster

ur welcum:) Please mark the thread as solved if it is solved.

Pgmer 50 Master Poster Featured Poster
' Form level variable 
Dim index As Integer = 1
    Dim dt As New DataTable
    Dim dc As New DataColumn("Numbers")
    Dim NoOfRows As Integer = 0

' Put it in form load event
            dc.DataType = System.Type.GetType("System.String")
            dt.Columns.Add(dc)
            DataGridView1.DataSource = dt
'' in Button add Click
             Try
            Dim dr As DataRow
            dr = dt.NewRow
            dr.Item(0) = index
            dt.Rows.Add(dr)
            DataGridView1.DataSource = dt
            index = index + 1
            NoOfRows = NoOfRows + 1
        Catch ex As Exception
            MsgBox(ex.ToString)
        End Try
'' In buton remove click
            Try

            index = 1
            DataGridView1.DataSource = Nothing
            dt.Clear()
            For i As Integer = 0 To NoOfRows - 2
                Dim dr As DataRow
                dr = dt.NewRow
                dr.Item(0) = index
                dt.Rows.Add(dr)

                index = index + 1
            Next
            DataGridView1.DataSource = dt
        Catch ex As Exception
            MsgBox(ex.ToString)
        End Try

try this out in seperate test project and u can try in ur main project later..

Pgmer 50 Master Poster Featured Poster

prepare sql statement at front end only based on the condition. and pass to DB and return the dataset and load...

example:

Private sub SerachDetails(Byval firstname as string,lastname as string,dob as date)
Try
--here you check for all the parameters which are not nothing and based on that write where condition..
catch
End Try
End sub
Pgmer 50 Master Poster Featured Poster

Hi adarapost Thanks for your reply.
anyways i got workarround for it.

Pgmer 50 Master Poster Featured Poster

what exactly you want to search for? can you please give me the table and column name? so that i can write query

Pgmer 50 Master Poster Featured Poster

Hi you can use IF EXISTS(Select * from table where condition is)

Pgmer 50 Master Poster Featured Poster

Cheers...Please mark the thread as solved if it is solved..:)