User Profile
Collapse
Profile Sidebar
Collapse
Prathap
Last Activity: Mar 1 '12, 09:30 AM
Joined: Nov 5 '11
Location:
-
Prathap replied to How to remove the space occupied by a control when it is hidden in c# windows form?in C SharpSuppose, i placed 3 buttons directly in a form(button1 button2 button3)and i changed the visibility of button2 as hidden.When we run the form a blank space will be there between button1 and button2.I dont know how to remove that blank space.Please help -
Prathap started a topic How to remove the space occupied by a control when it is hidden in c# windows form?in C SharpHow to remove the space occupied by a control when it is hidden in c# windows form?
Could someone please tell me how to remove the space occupied by a control when it is hidden. -
How to Copy and drop controls from one panel to another?
Drag and drop controls from one panel to another is working.I want to drop only a copy of the control.Could someone please tell me what are the changes should i made to get it to work.Here is the code i have done so far
...Code:InitializeComponent(); this.panel2.DragOver += new DragEventHandler(panel2_DragOver); this.panel2.DragDrop += new DragEventHandler(panel2_DragDrop); -
Datagridview cell value increment
There are 3 columns(Count,I tem,Price) in datagridview which is bound to a datasource. The count is 1 by default and it should increment by 1 when i click on a button,so the count would be 2 if i click button again. Any suggestions? -
problem in calculating and displaying price in textbox
Hi all,
Check this code and please tell me a solution.I have 2 buttons (Pizza & pepsi),the price should display in textbox8 when i click on button, here the price had shown in Textbox8,but it is not getting added with next price when i click second button.
...Code:Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click con.ConnectionString = str TextBox8.Text -
How to keep first row blank in datagridview?
I am using vb.net.I'll be using a datagridview which is bound to a datasource.Norm ally it'll load datas in first row(row(0)) to n th row,i want to load datas only from second row.my question is how to left the first row blank.Someone please help -
Solved
...Code:Imports System.Data.SqlClient Imports System.Data Imports System.IO Public Class Form1 Dim str As String = "Data Source=NET3\SQLEXPRESS;Initial Catalog=RestPos;Persist Security Info=True;User ID=sa;Password=password" Dim con As New SqlClient.SqlConnection 'To open an image from computer '------------------------------- Private Sub Button2_Click(ByValLeave a comment:
-
Solved
...Code:Imports System.Data.SqlClient Imports System.Data Imports System.IO Public Class Form1 Dim str As String = "Data Source=NET3\SQLEXPRESS;Initial Catalog=RestPos;Persist Security Info=True;User ID=sa;Password=password" Dim con As New SqlClient.SqlConnection 'To open an image from computer '------------------------------- Private Sub Button2_Click(ByValLeave a comment:
-
Here i've used picturebox.
...Code:Imports System.Data.SqlClient Imports System.Data Imports System.IO Public Class Form1 Dim str As String = "Data Source=NET3\SQLEXPRESS;Initial Catalog=RestPos;Persist Security Info=True;User ID=sa;Password=password" Dim con As New SqlClient.SqlConnection 'To open an image from computer '------------------------------- PrivateLeave a comment:
-
Solved
...Code:Imports System.Data.SqlClient Imports System.Data Imports System.IO Public Class Form1 Dim str As String = "Data Source=NET3\SQLEXPRESS;Initial Catalog=RestPos;Persist Security Info=True;User ID=sa;Password=password" Dim con As New SqlClient.SqlConnection 'To open an image from computer '------------------------------- Private Sub Button2_Click(ByValLeave a comment:
-
Solved
...Code:Imports System.Data.SqlClient Imports System.Data Imports System.IO Public Class Form1 Dim str As String = "Data Source=NET3\SQLEXPRESS;Initial Catalog=RestPos;Persist Security Info=True;User ID=sa;Password=password" Dim con As New SqlClient.SqlConnection 'To open an image from computer '------------------------------- Private Sub Button2_Click(ByValLeave a comment:
-
Getting error: Parameter is not valid,could someone please help.
Private Sub Button4_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button4.Click
con.ConnectionS tring = str
adp = New SqlDataAdapter( "select Emp_Image from Employees where Emp_UserId='1' ", con)
adp.Fill(dsimag e)
Dim saveImage As IO.MemoryStream
Dim imgByte...Leave a comment:
-
How to save or move image from a picturebox to a folder?
Here is my code to save image in a folder,but i am getting this error(a generic error occurred in gdi+).
Could someone please help me?
...Code:Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click If (Not System.IO.Directory.Exists("d:/posimage")) Then System.IO.Directory.CreateDirectory("d:/posimage") End If -
Hi Sivaranjani,
Thanks for your concern.
I am new in vb.net. The image has been stored in sql server as <binary data> and i dont know how to convert it to display in picture box.Please tell me what are the changes should i made to get it to work.Here is the code which i have done so far...Code:Imports System.Data.SqlClient Imports System.Data Public Class Edit_Employee Dim str As String = "Data Source=NET3\SQLEXPRESS;InitialLeave a comment:
-
How to display image in datagridview or picturebox from sqlserver?
I am using vb.net.I want to display image in datagridview or picture box from sqlserver .Could someone please help me. -
-
What is meant by PerformClick() method?
Could someone please give an idea about PerformClick()? -
How to display same button(button1) in two different forms(form1 and form2)?
Suppose, i have a button(button1) in form1.
Now i have opened a new form.
I want to display the same button(button1) from form1 to form2.
Please help..
Thanks in advance
No activity results to display
Show More
Leave a comment: