15,911,789 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Dhinesh kumar.V (Top 71 by date)
Dhinesh kumar.V
22-Dec-14 7:26am
View
Thanks for your suggestion buddy. here mostly my url with out special character. But testing team manually check url with special character. I wants to redirect my site to error.aspx page if url contain such characters. Is there any possibilities please let me know.
Dhinesh kumar.V
7-Feb-14 1:31am
View
Hi JoCodes,
Thanks for your comment.Here am not using DataPager, am using Repeater control.
Thanks,
DhineshKumar VelMayil
Dhinesh kumar.V
6-Feb-14 1:40am
View
Hi Prasad,
For Ex: I had put one data, Tendulkar retired from cricket at National and International table. But when am extract that data from DB by using National and International Id. Successfully finished yet. But my requirement is same data(tendulkar retired) shown at both user controls. this is not fair for my site. i wants to avoid this repeated data display at screen.
Thanks,
Dhinesh kumar Velmayil
Dhinesh kumar.V
5-Jul-13 9:57am
View
sorry i cant get u... can you elaborate..
Dhinesh kumar.V
5-Jul-13 9:08am
View
Thanks buddy... Its works fine... I need one more thing, that is i wanna change particular word of the body in bold.
Dhinesh kumar.V
5-Jul-13 9:04am
View
yes am used... But result is like Dear UserSystem.Web.UI.WebControls.LiteralYour password has been changed, this is your new password 5KyU)6-P Thanks and Regards, Dhineshkumar V
Dhinesh kumar.V
28-Jun-13 5:21am
View
Thanks buddy...
Dhinesh kumar.V
4-Jun-13 10:41am
View
i got answer for above question from google. Now i wanna to find current url of webpage using PowerShell.
Dhinesh kumar.V
5-Feb-13 3:19am
View
i wanna create event for dataGridView_CellClick for my need. When am fill something in first row(first cell), the result will be displayed at next cells of the same row.
Dhinesh kumar.V
5-Feb-13 3:16am
View
i tried this one.
private void dataGridView2_CellClick(object sender, DataGridViewCellEventArgs e)
{
//if (dataGridView2.CurrentCell.ColumnIndex.Equals(0) && e.RowIndex != -1)
//{
// if (dataGridView2.CurrentCell != null && dataGridView2.CurrentCell.Value != null)
// MessageBox.Show(dataGridView2.CurrentCell.Value.ToString());
//}
}.
But no Use. My goal is when am fill first cell of datagridView, result will be shown in next cells.
Ex:
Name Age Class
step 1
Name Age Class
Dhinesh
After the step 1 i wanna got this output without click anything
Name Age Class
Dhinesh 23 B.E.,
So i wanna create dataGridview_CellClick event. hope you got my problem. Am tried lot.
Dhinesh kumar.V
1-Feb-13 7:07am
View
yep surely will try dude... Thanks for your reply..
Dhinesh kumar.V
1-Feb-13 6:57am
View
yes. Abhishek..
Dhinesh kumar.V
31-Jan-13 7:06am
View
is this support windows application. Because now am working at windows app. only.
Dhinesh kumar.V
17-Nov-12 6:52am
View
Use this one.. Hope this one is help you.
SmtpClient Client;
MailMessage Msg;
Attachment Anexo;
use this try block coding under button_click event
try
{
Client = new SmtpClient("smtp.gmail.com");
Msg = new MailMessage();
Anexo = new System.Net.Mail.Attachment(label7.Text);
Msg.From = new MailAddress(textBox1.Text);
Msg.To.Add(textBox4.Text);
Msg.Body = richTextBox1.Text;
Msg.Attachments.Add(Anexo);
Msg.Subject = textBox3.Text;
SmtpClient smtps = new SmtpClient("smtp.gmail.com", 587);
Client.Credentials = new NetworkCredential();
Client.Port = 587;
Client.Credentials = new System.Net.NetworkCredential(textBox1.Text, textBox2.Text);
Client.EnableSsl = true;
Client.Send(Msg);
}
catch
{
// MessageBox.Show("adf");
}
Dhinesh kumar.V
31-Oct-12 2:59am
View
Hi All,
Is there any possibility for send mail from any other ID like yahoo,hotmail.. I had done for gmail for long ago but dont know for other id... all replies welcome..
Dhinesh kumar.V
30-Oct-12 2:12am
View
Hi,
Thanks for your command, but i dont wanna connect my mobile with pc. i wanna just i have one window application and that app. is used to send sms for particular numbers.
Thanks & Regards,
Dhinesh kumar.V
Dhinesh kumar.V
28-Sep-12 5:08am
View
Thanks a lot your comments Stephen. And this is my first web application.. So i will follow your words and get you back...
Thanks & Regards
Dhinesh Kumar Velmayil
Dhinesh kumar.V
21-Sep-12 8:06am
View
why we use here @ santhosh.
Dhinesh kumar.V
21-Sep-12 7:35am
View
thanks for your reply santhosh. But here am using datetimepicker for select two dates and that seasons also update by me anytime...
Dhinesh kumar.V
29-Aug-12 7:41am
View
You will try to add some extra reference and use ReportDocument report =new ReportDocument() instead of your create instance line. Just try this one.
Dhinesh kumar.V
25-Aug-12 10:11am
View
Thanks for your comment...
Dhinesh kumar.V
Dhinesh kumar.V
17-Aug-12 7:40am
View
Deleted
Dear Sir,
I had done this one myself. Anyway thanks for your reply. We will meet again this block...
Dhinesh Kumar.V
Dhinesh kumar.V
17-Aug-12 7:11am
View
sure sir. I have one listview. and that one is having 3 columns like NAME, AGE, CLASS. i insert 3 data(name,age,class) at listview. But i dont know how to save this one database. because normal sql insert commond is not suitable for this one.
I tried this one
for (int i = 0; i < listView1.Items[i].Checked; i++)
{
SqlConnection _sqlconnection = new SqlConnection();
string[] conString1 = DBSettings.connectionStringValues();
string connectionString1 = string.Format(@"server=" + conString1[0] + ";database=POSNET_ROOM;uid=" + conString1[2] + ";pwd=" + conString1[3]);
_sqlconnection.ConnectionString = connectionString1;
_sqlconnection.Open();
// SqlCommand _sqlcommand = new SqlCommand("insert into Listview (RoomType,RoomNumber,GuestName,EnteredDate)values('"+listView1.Items[i].SubItems[0].Text+"','"+listView1.Items[i].SubItems[1].Text+"','"+listView1.Items[i].SubItems[2].Text+"','"+listView1.Items[i].SubItems[3].Text+"')",_sqlconnection);
// SqlCommand _sqlcommand = new SqlCommand("insert into Listview (RoomType,RoomNumber,GuestName,EnteredDate)values('" + listView1.Items[1].SubItems[0].Text + "','" + listView1.Items[1].SubItems[1].Text + "','" + listView1.Items[1].SubItems[2].Text + "','" + listView1.Items[1].SubItems[3].Text + "')", _sqlconnection);
SqlDataAdapter _sqldataadapter = new SqlDataAdapter("insert into Listview (RoomType,RoomNumber,GuestName,EnteredDate)values('"+listView1.Items[i].SubItems[0].Text+"','"+listView1.Items[i].SubItems[1].Text+"','"+listView1.Items[i].SubItems[2].Text+"','"+listView1.Items[i].SubItems[3].Text+"')",_sqlconnection);
// SqlDataReader _sqldatareader = _sqlcommand.ExecuteReader();
_sqldatareader.Read();
}
But i gotta error. now u got my question. And thanks for your reply.
Thanks in Advance
Dhinesh kumar
Dhinesh kumar.V
14-Aug-12 1:09am
View
Thanks for your comment.. i will try to follow your words..
Dhinesh kumar.V
14-Aug-12 1:08am
View
Dear Sir,
you said many ways for do my question.. may i know few of them if you know any.....
Dhinesh kumar.V
10-Aug-12 8:45am
View
dear sir, i want to set ticker can u help me..plz
Dhinesh kumar.V
10-Aug-12 8:44am
View
can u explain briefly in code..please
Dhinesh kumar.V
10-Aug-12 6:34am
View
sir i tried by Intellisense but that is only suitable for TextBox.
Dhinesh kumar.V
9-Aug-12 6:42am
View
can you explain your code brief. Because i have little bit confusion.
Dhinesh kumar.V
7-Aug-12 5:58am
View
But where i get Common_btn_Click_event.
Dhinesh kumar.V
7-Aug-12 5:57am
View
Dear All,
please explain clearly.
Dhinesh kumar.V
7-Aug-12 0:48am
View
private void btn_Room1_Click(object sender, EventArgs e)
{
if (btn_Room1.Text == "Room 1")
{
Frm_Customer _Frm_Customer = new Frm_Customer();
_Frm_Customer.refToFrm_Rooms = this;
_Frm_Customer.ButtonBase = "Room1";
btn_Room1.BackColor = Color.Red;
this.Visible = true;
_Frm_Customer.Show();
}
else if (btn_Room1.Text == "Reserved")
{
DialogResult dlgResult = MessageBox.Show("You Have More Time?", "Do You wnat to Vocate?", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (dlgResult == DialogResult.Yes)
{
{
btn_Room1.BackColor = Color.Red;
btn_Room1.Text = "Room 1";
SqlConnection con = new SqlConnection();
string[] conString = DBSettings.connectionStringValues();
string connectionString = string.Format(@"server=" + conString[0] + ";database=Restaurant;uid=" + conString[2] + ";pwd=" + conString[3]);
con.ConnectionString = connectionString;
con.Open();
SqlCommand cmd = new SqlCommand("update AllRooms set RunFlag=0 where RoomName='Room1'", con);
SqlDataReader _sqldatareader = cmd.ExecuteReader();
_sqldatareader.Read();
con.Close();
}
}
else if(dlgResult==DialogResult.No)
{
}
}
}
private void btn_Room2_Click(object sender, EventArgs e)
{
if (btn_Room2.Text == "Room 2")
{
Frm_Customer _Frm_Customer = new Frm_Customer();
_Frm_Customer.refToFrm_Rooms = this;
_Frm_Customer.ButtonBase = "Room2";
btn_Room1.BackColor = Color.Red;
this.Visible = true;
_Frm_Customer.Show();
}
else if (btn_Room2.Text == "Reserved")
{
DialogResult dlgResult = MessageBox.Show("You Have More Time?", "Do You wnat to Vocate?", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (dlgResult == DialogResult.Yes)
{
{
btn_Room2.BackColor = Color.Red;
btn_Room2.Text = "Room 2";
SqlConnection con = new SqlConnection();
string[] conString = DBSettings.connectionStringValues();
string connectionString = string.Format(@"server=" + conString[0] + ";database=Restaurant;uid=" + conString[2] + ";pwd=" + conString[3]);
con.ConnectionString = connectionString;
con.Open();
SqlCommand cmd = new SqlCommand("update AllRooms set RunFlag=0 where RoomName='Room2'", con);
SqlDataReader _sqldatareader = cmd.ExecuteReader();
_sqldatareader.Read();
con.Close();
}
}
else if (dlgResult == DialogResult.No)
{
}
}
}
Here Room1-> Button1(btn_Room1), Room2->Button2(btn_Room2)...etc
Dhinesh kumar.V
4-Aug-12 7:40am
View
sure sir. For ex i have 5 buttons. btn 1, btn 2...btn5. Here my all buttons are used to extract data from datbase. But inside of my coding contain BUTTON NAME. That place only i wanna change my button name. All other places are same coding.
Dhinesh kumar.V
4-Aug-12 7:38am
View
Ya. same code but inside of that code BUTTON NAME only changed.
Dhinesh kumar.V
3-Aug-12 7:19am
View
Deleted
sorry dialogbox1 will be open when press that button from second dialog box sir.
Dhinesh kumar.V
3-Aug-12 7:17am
View
Deleted
sir actually i want to call the first dialogbox by using a button in second dialog box.when i am press that button in dialogbox2.
dialogbox1 want's to open.please
explain breifly in code.
Dhinesh kumar.V
3-Aug-12 6:20am
View
Deleted
please tell me in code i can't catch you sir
Dhinesh kumar.V
3-Aug-12 6:14am
View
Deleted
dear sir ,
please tell me in code.
actually i place a button in a dialog box2 now i want to click that button .that button will opens the dialog box1.i am waiting for your valuable reply..
Dhinesh kumar.V
3-Aug-12 5:17am
View
Deleted
sir i want to call a dialog1 box with in the same form. from a dialog2 box when press a button in a dialog2 box i want's to open dialog1 box using win32 application
Dhinesh kumar.V
2-Aug-12 9:52am
View
Deleted
i have gave the full code below.
Dhinesh kumar.V
2-Aug-12 9:41am
View
Deleted
k brother leave it.
actually i want to call a dialog box from a button with out using mfc
Dhinesh kumar.V
2-Aug-12 9:40am
View
Deleted
// digd.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "digd.h"
#define MAX_LOADSTRING 100
// Global Variables:
HWND hWnd;
HINSTANCE hInst; // current instance
TCHAR szTitle[MAX_LOADSTRING]; // The title bar text
TCHAR szWindowClass[MAX_LOADSTRING]; // the main window class name
// Forward declarations of functions included in this code module:
ATOM MyRegisterClass(HINSTANCE hInstance);
BOOL InitInstance(HINSTANCE, int);
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM);
INT_PTR CALLBACK New(HWND, UINT, WPARAM ,LPARAM);
INT_PTR CALLBACK Save(HWND, UINT, WPARAM ,LPARAM);
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
// TODO: Place code here.
MSG msg;
HACCEL hAccelTable;
// Initialize global strings
LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
LoadString(hInstance, IDC_DIGD, szWindowClass, MAX_LOADSTRING);
MyRegisterClass(hInstance);
// Perform application initialization:
if (!InitInstance (hInstance, nCmdShow))
{
return FALSE;
}
hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_DIGD));
// Main message loop:
while (GetMessage(&msg, NULL, 0, 0))
{
if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
return (int) msg.wParam;
}
//
// FUNCTION: MyRegisterClass()
//
// PURPOSE: Registers the window class.
//
// COMMENTS:
//
// This function and its usage are only necessary if you want this code
// to be compatible with Win32 systems prior to the 'RegisterClassEx'
// function that was added to Windows 95. It is important to call this function
// so that the application will get 'well formed' small icons associated
// with it.
//
ATOM MyRegisterClass(HINSTANCE hInstance)
{
WNDCLASSEX wcex;
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = CS_HREDRAW | CS_VREDRAW;
wcex.lpfnWndProc = WndProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = hInstance;
wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_DIGD));
wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName = MAKEINTRESOURCE(IDC_DIGD);
wcex.lpszClassName = szWindowClass;
wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));
return RegisterClassEx(&wcex);
}
//
// FUNCTION: InitInstance(HINSTANCE, int)
//
// PURPOSE: Saves instance handle and creates main window
//
// COMMENTS:
//
// In this function, we save the instance handle in a global variable and
// create and display the main program window.
//
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{
hInst = hInstance; // Store instance handle in our global variable
hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);
if (!hWnd)
{
return FALSE;
}
ShowWindow(hWnd, nCmdShow);
UpdateWindow(hWnd);
return TRUE;
}
//
// FUNCTION: WndProc(HWND, UINT, WPARAM, LPARAM)
//
// PURPOSE: Processes messages for the main window.
//
// WM_COMMAND - process the application menu
// WM_PAINT - Paint the main window
// WM_DESTROY - post a quit message and return
//
//
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
int wmId, wmEvent;
PAINTSTRUCT ps;
HDC hdc;
switch (message)
{
case WM_COMMAND:
wmId = LOWORD(wParam);
wmEvent = HIWORD(wParam);
// Parse the menu selections:
switch (wmId)
{
case IDM_ABOUT:
DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About);
break;
case ID_FILE_NEW:
DialogBox(hInst, MAKEINTRESOURCE(IDD_DIALOG1), hWnd, New);
break;
case ID_FI
Dhinesh kumar.V
2-Aug-12 9:34am
View
Deleted
// digd.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "digd.h"
#define MAX_LOADSTRING 100
// Global Variables:
HWND hWnd;
HINSTANCE hInst; // current instance
TCHAR szTitle[MAX_LOADSTRING]; // The title bar text
TCHAR szWindowClass[MAX_LOADSTRING]; // the main window class name
// Forward declarations of functions included in this code module:
ATOM MyRegisterClass(HINSTANCE hInstance);
BOOL InitInstance(HINSTANCE, int);
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM);
INT_PTR CALLBACK New(HWND, UINT, WPARAM ,LPARAM);
INT_PTR CALLBACK Save(HWND, UINT, WPARAM ,LPARAM);
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
// TODO: Place code here.
MSG msg;
HACCEL hAccelTable;
// Initialize global strings
LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
LoadString(hInstance, IDC_DIGD, szWindowClass, MAX_LOADSTRING);
MyRegisterClass(hInstance);
// Perform application initialization:
if (!InitInstance (hInstance, nCmdShow))
{
return FALSE;
}
hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_DIGD));
// Main message loop:
while (GetMessage(&msg, NULL, 0, 0))
{
if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
return (int) msg.wParam;
}
//
// FUNCTION: MyRegisterClass()
//
// PURPOSE: Registers the window class.
//
// COMMENTS:
//
// This function and its usage are only necessary if you want this code
// to be compatible with Win32 systems prior to the 'RegisterClassEx'
// function that was added to Windows 95. It is important to call this function
// so that the application will get 'well formed' small icons associated
// with it.
//
ATOM MyRegisterClass(HINSTANCE hInstance)
{
WNDCLASSEX wcex;
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = CS_HREDRAW | CS_VREDRAW;
wcex.lpfnWndProc = WndProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = hInstance;
wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_DIGD));
wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName = MAKEINTRESOURCE(IDC_DIGD);
wcex.lpszClassName = szWindowClass;
wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));
return RegisterClassEx(&wcex);
}
//
// FUNCTION: InitInstance(HINSTANCE, int)
//
// PURPOSE: Saves instance handle and creates main window
//
// COMMENTS:
//
// In this function, we save the instance handle in a global variable and
// create and display the main program window.
//
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{
hInst = hInstance; // Store instance handle in our global variable
hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);
if (!hWnd)
{
return FALSE;
}
ShowWindow(hWnd, nCmdShow);
UpdateWindow(hWnd);
return TRUE;
}
//
// FUNCTION: WndProc(HWND, UINT, WPARAM, LPARAM)
//
// PURPOSE: Processes messages for the main window.
//
// WM_COMMAND - process the application menu
// WM_PAINT - Paint the main window
// WM_DESTROY - post a quit message and return
//
//
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
int wmId, wmEvent;
PAINTSTRUCT ps;
HDC hdc;
switch (message)
{
case WM_COMMAND:
wmId = LOWORD(wParam);
wmEvent = HIWORD(wParam);
// Parse the menu selections:
switch (wmId)
{
case IDM_ABOUT:
DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About);
break;
case ID_FILE_NEW:
DialogBox(hInst, MAKEINTRESOURCE(IDD_DIALOG1), hWnd, New);
break;
case ID_FI
Dhinesh kumar.V
31-Jul-12 10:16am
View
Thanks for your reply. But i dont need to change color dynamically. now i improve my question. so please see that and send your valuable reply. Thanks in Advance.....
Dhinesh Kumar.V
Dhinesh kumar.V
30-Jul-12 9:07am
View
Deleted
private void button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection();
con.ConnectionString = (@"Data Source=EUNIK-705F2C195\SQLEXPRESS;Initial Catalog=images;User ID=sa;Password=fintransys");
con.Open();
SqlCommand _sqlcommand = new SqlCommand("select Images from imagestore where ImageID='" + txt_EnterID.Text + "'", con);
SqlDataAdapter _sqldataadapter = new SqlDataAdapter(_sqlcommand);
DataSet _dataset = new DataSet();
DataTable _dataTable = new DataTable();
_sqldataadapter.Fill(_dataset,"imagestore");
int c = _dataset.Tables["imagestore"].Rows.Count;
if(c>0)
{
Byte[] _Byte = new Byte[0];
_Byte = (Byte[])(_dataset.Tables["imagestore"].Rows[c - 1]["Images"]);
MemoryStream _Memorystream = new MemoryStream(_Byte);
pictureBox1.Image = Image.FromStream(_Memorystream);
pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
pictureBox1.Refresh();
}
con.Close();
}
Here TableName-> imagestore ColumnName->Images
Dhinesh kumar.V
30-Jul-12 9:07am
View
Snip! 8<
Code removed from comments - posted 3 times! Pasted into original question.
-enhzflep
Dhinesh kumar.V
30-Jul-12 9:07am
View
Deleted
private void button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection();
con.ConnectionString = (@"Data Source=EUNIK-705F2C195\SQLEXPRESS;Initial Catalog=images;User ID=sa;Password=fintransys");
con.Open();
SqlCommand _sqlcommand = new SqlCommand("select Images from imagestore where ImageID='" + txt_EnterID.Text + "'", con);
SqlDataAdapter _sqldataadapter = new SqlDataAdapter(_sqlcommand);
DataSet _dataset = new DataSet();
DataTable _dataTable = new DataTable();
_sqldataadapter.Fill(_dataset,"imagestore");
int c = _dataset.Tables["imagestore"].Rows.Count;
if(c>0)
{
Byte[] _Byte = new Byte[0];
_Byte = (Byte[])(_dataset.Tables["imagestore"].Rows[c - 1]["Images"]);
MemoryStream _Memorystream = new MemoryStream(_Byte);
pictureBox1.Image = Image.FromStream(_Memorystream);
pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
pictureBox1.Refresh();
}
con.Close();
}
Here TableName-> imagestore ColumnName->Images
Dhinesh kumar.V
27-Jul-12 2:21am
View
see if u don't know just ignore.i am not ask a question.i need a help.don't give unnessary commands here..
Dhinesh kumar.V
26-Jul-12 7:04am
View
dear sir, first i want motion detect to capture images.after i will call the timer.please tell me in code to motion detect by webcamera and i will use the timer. i really don't know the code for motion detection.please help me..
Dhinesh kumar.V
26-Jul-12 6:50am
View
dear sir,
first i want motion detect to capture images.after i will call the timer.please tell me in code to motion detect by webcamera and i will use the timer.
i really don't know the code for motion detection.please help me..
Dhinesh kumar.V
25-Jul-12 10:20am
View
k sir please don't close this question i will try and catch you.
Dhinesh kumar.V
25-Jul-12 10:09am
View
not like that sir.
helper.saveimagecapture(imgcapture.image); i have used in this program.it will capture the image only when i am pressed a button.
i want continuosly capture Motion images and it will saved into a folder.when i am click a button.
Dhinesh kumar.V
25-Jul-12 10:03am
View
i want to detect motion and it will be saved in a specified folder.
Dhinesh kumar.V
25-Jul-12 10:02am
View
i want to capture motion.
Dhinesh kumar.V
25-Jul-12 9:59am
View
i don't know sir.please tell me how to call..
Dhinesh kumar.V
25-Jul-12 9:41am
View
actually i want to capture images continuously.it will saved in to the folder.when i am press the button
Dhinesh kumar.V
25-Jul-12 9:39am
View
using System;
using System.Linq;
using System.Text;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using System.ComponentModel;
using System.Collections.Generic;
namespace WinFormCharpWebCam
{
//Design by Pongsakorn Poosankam
public partial class mainWinForm : Form
{
public mainWinForm()
{
InitializeComponent();
}
WebCam webcam;
private void mainWinForm_Load(object sender, EventArgs e)
{
webcam = new WebCam();
webcam.InitializeWebCam(ref imgVideo);
}
private void bntStart_Click(object sender, EventArgs e)
{
webcam.Start();
detector = new MotionDetector3();
detectorType = 3;
SetMotionDetector();
}
private void SetMotionDetector()
{
Camera camera = cameraWindow.Camera;
// enable/disable motion alarm
if (detector != null)
{
detector.MotionLevelCalculation = motionAlarmItem.Checked;
}
// set motion detector to camera
if (camera != null)
{
camera.Lock();
camera.MotionDetector = detector;
// reset statistics
statIndex = statReady = 0;
camera.Unlock();
}
}
private void bntStop_Click(object sender, EventArgs e)
{
webcam.Stop();
}
private void bntContinue_Click(object sender, EventArgs e)
{
webcam.Continue();
}
private void bntCapture_Click(object sender, EventArgs e)
{
imgCapture.Image = imgVideo.Image;
}
private void bntSave_Click(object sender, EventArgs e)
{
Helper.SaveImageCapture(imgCapture.Image);
}
private void bntVideoFormat_Click(object sender, EventArgs e)
{
webcam.ResolutionSetting();
}
private void bntVideoSource_Click(object sender, EventArgs e)
{
webcam.AdvanceSetting();
}
}
}
this is my code please help me.if i wanna click a button automatic capture the images in to a folder continuously.
Dhinesh kumar.V
25-Jul-12 9:18am
View
actually i want to capture image continuosly from a webcam. and it will stored automatically in to a folder.
Dhinesh kumar.V
25-Jul-12 1:24am
View
Dear Sir/Madam,
Thanks for your reply. I have searched lostfocus Event at form Event
properties. But Form properties have nothing named as LostFocus. What can i do
here.
Dhinesh kumar.V
20-Jul-12 6:29am
View
Sir now i explain my problem brief. Normally you insert removable disk on your system and go to MYComputer->Removable Disk and after that double click and opened. But here my problem is when you going to open the removable disk an window is display for ask password. If you entered correct password means removable disk is open otherwise shows error message...
Thanks in Advance
Dhinesh Kumar.V
Dhinesh kumar.V
19-Jul-12 5:15am
View
i want to set a path to save the images and videos.
Dhinesh kumar.V
9-Jul-12 6:59am
View
i want to develop a firewall
Dhinesh kumar.V
9-Jul-12 6:56am
View
I want to build a firewall
Dhinesh kumar.V
9-Jul-12 6:07am
View
Thanks for your reply.. but i dont know where i put the above exactly.. please send with simple syntax.
Thanks & Regards
Dhinesh Kumar.V
Dhinesh kumar.V
6-Jul-12 6:22am
View
windows application
Dhinesh kumar.V
6-Jul-12 5:23am
View
sir can you tell me how can i start now.from which application to start..
Dhinesh kumar.V
6-Jul-12 5:21am
View
Deleted
i want to develop a firewall
Dhinesh kumar.V
4-Jul-12 5:12am
View
i developed one application for hide removable disk. Here my setup successfully run at Administrator account but am go switch user account(limited user account) my application cant work.
Dhinesh kumar.V
4-Jul-12 4:10am
View
ok sir. now explain brief. i developed one application for hide removable disk. Here my setup successfully run at Administrator account but am go switch user account(limited user account) my application cant work. but i didnt got any error also.
Dhinesh kumar.V
28-Jun-12 9:36am
View
sure sir. For example An supermarket(Server_DB) which is located at Delhi. And their branch(Client_DB) located at Mumbai,Kol,Bangalore,Chennai,etc. All branches have some different databases. And these are stored at Server_DB(Delhi). Here how can we connect Client and server databases and That Server how identify the clent from where..
Thanks in Advance
Dhinesh kumar.V
28-Jun-12 8:08am
View
ok Very thanks. but the server how can identify this data came from client1, or client10..
Show More