- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
8 Posted Topics
This code will call a phone number and try to play a wav file. It sounds like a man on a CB that you cant understand. It should be a woman voice. I dont know if its the flo control or something else. Does anyone have any ideas?
[QUOTE=yoavgold;159328]Hi there, Does anyone knows ho to create an appointment in outlook using VB.net ? thanks :rolleyes:[/QUOTE] Dim objOutlook As Outlook.Application objOutlook = New Outlook.Application() Dim objNS As Outlook.NameSpace = objOutlook.Session '---------Write to Shared calendar----------------- Dim objFolder As Outlook.MAPIFolder = objNS.Folders.Item("Public Folders") objFolder = objFolder.Folders.Item("All Public Folders") objFolder = objFolder.Folders.Item("Boss …
''' at the very top of the form Imports System.Drawing.Printing ''' new sub procedure Private Sub printtext(ByVal sender As Object, ByVal ev As PrintPageEventArgs) ev.Graphics.DrawString(lblQ2.Text, New Font("arial", 11, FontStyle.Regular), Brushes.Black, 120, 120) ev.HasMorePages = False End Sub ''' button event Private Sub btn2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) …
I would replace : [CODE] 1. private void btnSubmit_Click(object sender, EventArgs e) 2. { 3. DataTable dtDataTableName = new DataTable("TABLENAME"); 4. dataGridView.DataSource = dtDataTableName; 5. foreach (DataRow dataRow in dtDataTableName.Rows) 6. { 7. foreach (DataColumn dataColumn in dtDataTableName.Columns) 8. { 9. StringBuilder sql = new StringBuilder(); 10. sql.Append("Insert into TABLENAME …
System.Media.SoundPlayer p = new System.Media.SoundPlayer(); p.SoundLocation = @"C:\Users\Master\Desktop\Prmpt445.wav"; p.Play();
THis will print a label it might help guide you in the rignt direction. ''' at the very top of the form Imports System.Drawing.Printing ''' new sub procedure Private Sub printtext(ByVal sender As Object, ByVal ev As PrintPageEventArgs) ev.Graphics.DrawString(lblQ2.Text, New Font("arial", 11, FontStyle.Regular), Brushes.Black, 120, 120) ev.HasMorePages = False End …
Why dont you just make it a varable and run a loop? for x = 0 to ds.Tables("query1").Rows.count-1 column1string = ds.Tables("query1").Rows(x).Item(0) pupilfore1.Items.Add(column1string) next not sure of the "ds.Tables("query1").Rows.count-1" you might use length.
To do calculations I would need more info, but to add a $ and two decimal you must format the output. dim UnitPrice as Double = 9.99 lableTotal.text=String.Format("{0:c}", UnitPrice) This will display $9.99 Hope this helps...
The End.
slavedogg