224 Posted Topics

Member Avatar for bhagawatshinde

check this : [URL="http://bytes.com/topic/net/answers/544484-how-make-c-richtextbox-autosize"]http://bytes.com/topic/net/answers/544484-how-make-c-richtextbox-autosize[/URL]

Member Avatar for bhagawatshinde
0
117
Member Avatar for Kath_Fish
Member Avatar for Momerath
0
182
Member Avatar for RenanLazarotto

Why Dont You Merge Your DLLs in EXE then u wont have to do this.. Use Ilmerge.exe [URL="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=22914587-b4ad-4eae-87cf-b14ae6a939b0&displaylang=en"]http://www.microsoft.com/downloads/en/details.aspx?FamilyID=22914587-b4ad-4eae-87cf-b14ae6a939b0&displaylang=en[/URL]

Member Avatar for RenanLazarotto
0
185
Member Avatar for bklynman01

Suppose i have 50 textboxes on my form and i want to : enable TextBox1 and Disable TextBox2. So Do something like this [CODE] For Each ctrl As Control In Me.Controls If ctrl.Name = "TextBox1" Then ctrl.Enabled = False End If If ctrl.Name = "TextBox2" Then ctrl.Enabled = True End …

Member Avatar for bklynman01
0
2K
Member Avatar for wewehalim

humm.. its easy.. if you want just the total price in Total price column.. do something like this [CODE] Dim i As Integer For i = 0 To Me.DataGridView1.Rows.Count - 2 Me.DataGridView1.Rows(i).Cells(3).Value = Double.Parse(Me.DataGridView1.Rows(i).Cells(1).Value) * Double.Parse(Me.DataGridView1.Rows(i).Cells(2).Value) Next [/CODE] here : Me.DataGridView1.Rows(i).Cells(1).Value = price Me.DataGridView1.Rows(i).Cells(2).Value = quantity

Member Avatar for hansys
0
265
Member Avatar for Netcode
Member Avatar for Netcode
-1
91
Member Avatar for josephbeluan
Member Avatar for codeorder
-1
96
Member Avatar for ezekiel13

Below link will help you a lot: [URL="http://vb.net-informations.com/crystal-report/vb.net_crystal_report_sample_database.htm"]http://vb.net-informations.com/crystal-report/vb.net_crystal_report_sample_database.htm[/URL]

Member Avatar for ezekiel13
0
192
Member Avatar for m1234ike

check this out [URL="http://www.knowdotnet.com/articles/createshortcutondesktop.html"]http://www.knowdotnet.com/articles/createshortcutondesktop.html[/URL]

Member Avatar for sandeepparekh9
0
75
Member Avatar for billly

use this in batch file [CODE] @echo off set /p pass= What is Password? if %pass% ==yourpassword start c:\passwordprotected.txt [/CODE]

Member Avatar for sandeepparekh9
0
172
Member Avatar for RenanLazarotto
Member Avatar for darkelflemurian

its simple.. first Import followings: [CODE] Imports System.Data.SqlClient Imports System.IO [/CODE] Now Suppose u have a button2 to perform the operation u said. . so just write following code to button's click event [CODE] Dim conn As SqlConnection Dim cmd As SqlCommand Dim da As SqlDataAdapter Dim ds As DataSet …

Member Avatar for darkelflemurian
0
111
Member Avatar for paulablanca

Add a timer to your form: suppose u have a start button for exam start..and a timer named Timer1 here is a complete code with example: [CODE] Imports System.Data.OleDb Public Class Form1 Dim conn As OleDbConnection Dim cmd As OleDbCommand Dim strQ As String = String.Empty Dim da As OleDbDataAdapter …

Member Avatar for paulablanca
0
118
Member Avatar for CrankyMero

here is a complete guide: [URL="http://www.dreamincode.net/forums/topic/58021-deploying-a-c%23-application-visual-studio-setup-project/"]http://www.dreamincode.net/forums/topic/58021-deploying-a-c%23-application-visual-studio-setup-project/[/URL]

Member Avatar for CrankyMero
0
121
Member Avatar for emily1989
Member Avatar for Ranx
0
424
Member Avatar for tim8w
Member Avatar for tim8w
0
242
Member Avatar for dougancil

[CODE] .CommandText = "exec sp_opsum, exec sp_opintcheck ,exec sp_opexceptsum, exec sp_empsum, exec sp_empexceptsum" [/CODE] replece , with ; and try [CODE] .CommandText = "exec sp_opsum; exec sp_opintcheck ;exec sp_opexceptsum; exec sp_empsum; exec sp_empexceptsum" [/CODE]

Member Avatar for dougancil
0
129
Member Avatar for holden1986

see this link [URL="http://vb.net-informations.com/crystal-report/vb.net_crystal_report_from_multiple_tables.htm"]http://vb.net-informations.com/crystal-report/vb.net_crystal_report_from_multiple_tables.htm[/URL]

Member Avatar for holden1986
0
97
Member Avatar for airesh
Member Avatar for paulablanca

can Please explain it further?? do both table have same structure..or different? Please Provide table structure

Member Avatar for sandeepparekh9
0
54
Member Avatar for airesh
Member Avatar for airesh
0
110
Member Avatar for vn412

Here is a Tutorial: [URL="http://www.java-samples.com/showtutorial.php?tutorialid=1055"]http://www.java-samples.com/showtutorial.php?tutorialid=1055[/URL]

Member Avatar for vn412
0
83
Member Avatar for paulablanca
Member Avatar for airesh

here is the complete code: i only have one button on my form: [CODE] Imports System.Runtime.InteropServices Public Class Form1 Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Integer, ByVal dwExtraInfo As Integer) Private Const VK_CAPITAL As Integer = &H14 Private Const …

Member Avatar for airesh
0
1K
Member Avatar for kruxena

hi see below code: [CODE] [B][U]Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress, TextBox4.KeyPress, TextBox3.KeyPress, TextBox2.KeyPress[/U][/B] If e.KeyChar <> ChrW(Keys.Back) Then If Char.IsNumber(e.KeyChar) Then Else e.Handled = True End If End If End Sub [/CODE] Notice Handles .. this event handles textbox 1,2,3,4. u can add …

Member Avatar for codeorder
0
21K
Member Avatar for starmax
Member Avatar for paulablanca

Here is the Code: Here i only have 4 combobox on my Form1 [CODE] Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.ComboBox1.Items.Add("A") Me.ComboBox1.Items.Add("B") Me.ComboBox1.Items.Add("C") Me.ComboBox1.Items.Add("D") Me.ComboBox2.Items.Add("A") Me.ComboBox2.Items.Add("B") Me.ComboBox2.Items.Add("C") Me.ComboBox2.Items.Add("D") Me.ComboBox3.Items.Add("A") Me.ComboBox3.Items.Add("B") Me.ComboBox3.Items.Add("C") Me.ComboBox3.Items.Add("D") Me.ComboBox4.Items.Add("A") Me.ComboBox4.Items.Add("B") Me.ComboBox4.Items.Add("C") Me.ComboBox4.Items.Add("D") End Sub Private Sub ComboBox1_SelectedIndexChanged(ByVal …

Member Avatar for sandeepparekh9
0
169
Member Avatar for jamshed ahmed

hi.. its very easy .. You have to change some settings in [B]"Region and Language Settings"[/B] in Control panel See the attached thumbnail Change Short Date Format from MM/dd/yyyy to dd/mm/yyy. (if u dont find dd/mm/yyy. inthe option then dont worry just write it.) and apppy and see effect

Member Avatar for sandeepparekh9
0
145
Member Avatar for cjoyce

suppose u want to delete table named "temp" in Database1.mdb First Imports: [CODE] Imports System.Data.OleDb [/CODE] then u can write following code on button click [CODE] Dim cn As OleDbConnection Dim cmd As OleDbCommand cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Database1.mdb;") Dim strQ As String = String.Empty strQ = "DROP TABLE temp" …

Member Avatar for cjoyce
0
111
Member Avatar for vanzhyme

hi create a sub or function of the code that u have written on Form_LOad Event.. when ever u add new data to database call this new created sub and it will populate the list with the new data.

Member Avatar for vanzhyme
0
157
Member Avatar for RenanLazarotto

hi.. u should check or unchecked the sub items. if u disable another on clicking the other then how will u enable the disable one..(because u cant click disabled item)

Member Avatar for RenanLazarotto
0
91
Member Avatar for Korenai
Member Avatar for sandeepparekh9
0
125
Member Avatar for get connected
Member Avatar for vn412

look here : [URL="http://social.msdn.microsoft.com/forums/en-US/winformsdatacontrols/thread/fea3dcff-5447-450a-8f7c-bb1c4f63371d/"]http://social.msdn.microsoft.com/forums/en-US/winformsdatacontrols/thread/fea3dcff-5447-450a-8f7c-bb1c4f63371d/[/URL] this will help u.. but its in c# [URL="http://www.codeguru.com/forum/showthread.php?p=1537635#post1537635"]http://www.codeguru.com/forum/showthread.php?p=1537635#post1537635[/URL]

Member Avatar for sandeepparekh9
0
117
Member Avatar for adarshcu
Member Avatar for RenanLazarotto

hi here is the complete code with screen shot.. u can easily understand it: [CODE] Imports System.IO Imports System.Text Public Class Form1 Dim ofd As OpenFileDialog Dim strbldr As StringBuilder Dim arr() As String Dim i As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click …

Member Avatar for codeorder
0
2K
Member Avatar for RenanLazarotto
Member Avatar for RenanLazarotto
0
10K
Member Avatar for jcb1269

hi i am not clear of requirement but if you want something like as shown in the attached image just click the BlueBar where 2011 is written.

Member Avatar for jcb1269
0
85
Member Avatar for chabo

here is complete code: here i only have a button on a form and a timer. [CODE] Public Class Form1 Dim c As Integer = 0 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) …

Member Avatar for manimaran.m
0
111
Member Avatar for gabika318
Member Avatar for cjoyce

view this: [URL="http://www.functionx.com/vbnet/oledb/Lesson02.htm"]http://www.functionx.com/vbnet/oledb/Lesson02.htm[/URL]

Member Avatar for cjoyce
0
277
Member Avatar for horserider

this link will help [URL="http://www.codeproject.com/KB/install/Program_Uninstaller.aspx"]http://www.codeproject.com/KB/install/Program_Uninstaller.aspx[/URL]

Member Avatar for horserider
0
179
Member Avatar for afylegacy

here is a simple code for that: [CODE] Dim c As Integer = 1 Dim sr As New System.IO.StreamReader("demo.txt") Dim line As String = String.Empty line = sr.ReadLine() Do While (Not line Is Nothing) If line.Contains(TextBox1.Text) Then Label1.Text = c.ToString() End If line = sr.ReadLine() c = c + 1 …

Member Avatar for afylegacy
0
174
Member Avatar for Quazy

this code will help: [CODE] Me.DataGridView1.Rows.Add("a", "100", "20", "") Me.DataGridView1.Rows.Add("b", "200", "30", "") Me.DataGridView1.Rows.Add("c", "300", "40", "") Me.DataGridView1.Rows.Add("d", "400", "50", "") 'row 1 now is read only - others are editable Me.DataGridView1.Rows(0).ReadOnly = True Me.DataGridView1.Rows(0).DefaultCellStyle.ForeColor = Color.DarkBlue Me.DataGridView1.Rows(0).DefaultCellStyle.BackColor = Color.Crimson Me.DataGridView1.Rows(2).DefaultCellStyle.ForeColor = Color.DarkBlue Me.DataGridView1.Rows(2).DefaultCellStyle.BackColor = Color.Crimson [/CODE]

Member Avatar for sandeepparekh9
0
198
Member Avatar for wewehalim

hi.. here is an example: i have 2 forms.. on form1 there is a datagridview with 2 columns.. and on form2 there is another one with no column.. see screen shot. it might help [CODE] Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click …

Member Avatar for sandeepparekh9
0
291
Member Avatar for Netcode
Member Avatar for Netcode
Member Avatar for paulablanca

here is a sample program for what u want to do.. i have used the NorthWind Database. u can use yours. Complete Coding: [CODE] Imports System.Data.SqlClient Public Class Form1 Dim conn As SqlConnection Dim cmd As SqlCommand Dim da As SqlDataAdapter Dim ds As DataSet Dim itemcoll(100) As String Private …

Member Avatar for paulablanca
0
2K
Member Avatar for MaddTechwf
Member Avatar for sandeepparekh9
0
137
Member Avatar for wewehalim

[CODE]Dim bindingsourcearry() As BindingSource[/CODE] u can access and modify each bindingsource by using bindingsourcearry(i)

Member Avatar for sandeepparekh9
0
116

The End.