You must Sign In to post a response.
  • Category: .NET

    I want to select classnames in checkbox after add the mobilenos in mobiletextbox

    iam using bulksms online software sir .. perfect sending messgess
    but present iam using sms api to trying develop own windows application sir

    I want to select classnames in checkbox after automatically add the mobile nos in mobiletextbox in

    <a href=""> checkbox select jpg file</a>

    Private Sub CheckedListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckedListBox1.SelectedIndexChanged

    which code write in this sir

    End Sub

    Hi sir,
    Iam created student data

    Class name & name & phone number
    1st class – prabhakar – 9908302604
    1st class – rajesh – 9999999999
    2nd class – codeproject – 8888888888
    3rd class – prasd – 8888888888

    <pre lang="C#">Iam writed code in form load

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Sub classcheckbox1()

    Dim CN As New OleDbConnection(css)
    adp = New OleDbDataAdapter()
    adp.SelectCommand = New OleDbCommand("SELECT distinct RTRIM(chitgroupname) FROM caddingroup", CN)
    ds = New DataSet("ds")
    For Each drow As DataRow In dtable.Rows
    Catch ex As Exception
    MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
    End Try
    End Sub

    Form open after come classes in checkboxes perfect sir

    Present now I want to
    Checkbox in classname select after automatically add phone numbers in moibletexbox

    i want this changes after seelct checkbox:

    If iam select 1st class add only 1st class phone numbers in mobiletextbox
    If iam select all classess add all class phone numbers in mobiletextbox
  • #764390
    First of all get all the mobile number in a datatable.
    use foreach to loop through the datatable and send sms one by one inside loop.

    Foreach(Datarow dr in DT1.Rows)
    SendSMS(dr["mobno"].ToString(),"Message to Send");

    Private Void SendSMS(string mobno,string msg)
    //Your Code to Send SMS

    If you are unable to do something properly for the first time, call it Version 1.0!

    Thanks & Regards,

  • Sign In to post your comments