224 Posted Topics
Re: 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] | |
Re: 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] | |
Re: 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 … | |
Re: 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 | |
Re: did you use inbuilt visual studio deployment option..? | |
Re: making a snake game in vb.net would be easy.. u can try it | |
Re: 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] | |
Re: check this out [URL="http://www.knowdotnet.com/articles/createshortcutondesktop.html"]http://www.knowdotnet.com/articles/createshortcutondesktop.html[/URL] | |
Re: use this in batch file [CODE] @echo off set /p pass= What is Password? if %pass% ==yourpassword start c:\passwordprotected.txt [/CODE] | |
| |
Re: 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 … | |
Re: 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 … | |
Re: 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] | |
Re: do you mean calling button click of a button on another form???? | |
Re: can u explain further .. where are you using this?? what appliction some.. screens or code? | |
Re: [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] | |
Re: 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] | |
Re: can Please explain it further?? do both table have same structure..or different? Please Provide table structure | |
Re: Use Bit Datatype to store values.. if checked then TRUE or else FALSE | |
Re: Here is a Tutorial: [URL="http://www.java-samples.com/showtutorial.php?tutorialid=1055"]http://www.java-samples.com/showtutorial.php?tutorialid=1055[/URL] | |
Re: can u clear little bit of your concept..? may a screen shot or a little code would do | |
Re: 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 … | |
Re: 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 … | |
Re: your video is set to private | |
Re: 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 … | |
Re: 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 | |
Re: 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" … | |
Re: 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. | |
Re: 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) | |
Re: use something like this [CODE] listView1.Items.Contains(listView2.Items(0)); [/CODE] | |
Re: 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] | |
Re: change below in you code: [CODE] .Actv = dr.GetBoolean(11) [/CODE] | |
Re: 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 … | |
Re: hi use this code: [CODE] Me.TextBox1.Font = New Font("Arial", 20) [/CODE] | |
Re: 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. | |
Re: 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) … | |
| |
Re: view this: [URL="http://www.functionx.com/vbnet/oledb/Lesson02.htm"]http://www.functionx.com/vbnet/oledb/Lesson02.htm[/URL] | |
Re: this link will help [URL="http://www.codeproject.com/KB/install/Program_Uninstaller.aspx"]http://www.codeproject.com/KB/install/Program_Uninstaller.aspx[/URL] | |
Re: 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 … | |
Re: 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] | |
Re: 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 … | |
Re: 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 … | |
Re: does your app require basics like .net framework, sql server etc.. ???? | |
Re: [CODE]Dim bindingsourcearry() As BindingSource[/CODE] u can access and modify each bindingsource by using bindingsourcearry(i) |
The End.