Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~4K People Reached
Favorite Forums
Favorite Tags
Member Avatar for xxxtian

I was required to have my ID number, which is the primary column of my table, to be formatted with date. Instead of having just a number incremented by 1 (identity(1,1)), I need to have something like 318111 that means March 18, 2011 and the last digit is incremented by …

Member Avatar for debasisdas
0
67
Member Avatar for xxxtian

I have a project and I've been required to start it through the use of a separate coding module. I must decide what actions are appropriate for this project for the coding module (i.e Log-in form). What does it mean? The project uses ADO.NET

0
65
Member Avatar for xxxtian

I successfully populated my listview with an image using a dataset. I used the large icon view for my listview. I can only show a single text for an image using this. [CODE]ListViewItem lvi1 = new ListViewItem(dr["userID"].ToString()); [/CODE] How could I put another text near the image in listview? Subitems …

0
136
Member Avatar for xxxtian

I have a combobox that is consist of 'Male' and 'Female' selection. I have a datagridview that when double click, will go to another form which is named 'Edit Form'. I need to be ale to change whether the value is a male or female, but there is a problem. …

Member Avatar for xxxtian
0
269
Member Avatar for xxxtian

my problem is how can i format the columns to fit the page because i have many columns and when i preview the page for printing. the page become 2 because there is one column that is excess .. tnx in advance ..

Member Avatar for ddanbe
0
85
Member Avatar for xxxtian

I have two textbox that corresponds to the my two combobox. [CODE]if (purposecb.Text == "-Select One-") { MessageBox.Show("Please select the purpose of the visitor's visit.", "message", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); purposecb.Focus(); } else if (placevisitcb.Text == "-Select One-") { MessageBox.Show("Please select the place where the visitor would visit.", "message", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); placevisitcb.Focus(); …

Member Avatar for xxxtian
0
119
Member Avatar for xxxtian

what is your more preferred approach for filtering a dataset in a datagridview? dataRow.Filter or Stored Procedure using select command for filtering? tnx pleas help me to decide ..

Member Avatar for Momerath
0
117
Member Avatar for xxxtian

I have a combobox that is being sorted alphabetically(by default). I need to change the position of a particular item to the last index for a certain requirement. Isn't there any other way than disabling the sort and manually position the items?

Member Avatar for Momerath
0
75
Member Avatar for xxxtian

how can I get data in my datagridview that is populated from my database to reportviewer?? please can someone help me ..

Member Avatar for RogR
0
58
Member Avatar for xxxtian

I am able to save an image from a picture box into the database of SQL. I used a byte array and filestream to read the image. [CODE]FileStream fs = new FileStream(imagename, FileMode.Open, FileAccess.Read) byte[] picbyte = new byte[fs.Length] fs.Read(picbyte, 0, System.Convert.ToInt32(fs.Length)) fs.Close()[/CODE] For some reason, I can't retrieve the …

Member Avatar for xxxtian
0
183
Member Avatar for xxxtian

Could someone help me with my problem here? I am using C# and working on a project in visual studio 2008 with SQL server express as the database. In visual studio 2008, I have a project and two forms. The first form that is named 'Informations' has a single datagridview …

Member Avatar for akshintlakalyan
0
183
Member Avatar for xxxtian

[code] private void btnBackup_Click(object sender, EventArgs e) { Backup bkp = new Backup(); this.Cursor = Cursors.WaitCursor; this.dataGridView1.DataSource = string.Empty; try { string fileName = this.txtFileName.Text; string databaseName = this.ddlDatabase.SelectedItem.ToString(); bkp.Action = BackupActionType.Database; bkp.Database = databaseName; bkp.Devices.AddDevice(fileName, DeviceType.File); bkp.Incremental = chkIncremental.Checked; this.progressBar1.Value = 0; this.progressBar1.Maximum = 100; this.progressBar1.Value = 10; bkp.PercentCompleteNotification …

Member Avatar for akshintlakalyan
0
132
Member Avatar for xxxtian

[CODE] Restore res = new Restore(); this.Cursor = Cursors.WaitCursor; this.dataGridView1.DataSource = string.Empty; try { string fileName = this.txtFileName.Text; string databaseName = this.ddlDatabase.SelectedItem.ToString(); res.Database = databaseName; res.Action = RestoreActionType.Database; res.Devices.AddDevice(fileName, DeviceType.File); this.progressBar1.Value = 0; this.progressBar1.Maximum = 100; this.progressBar1.Value = 10; res.PercentCompleteNotification = 10; res.ReplaceDatabase = true; res.PercentComplete += new PercentCompleteEventHandler(ProgressEventHandler); res.SqlRestore(srv); …

Member Avatar for Momerath
0
394
Member Avatar for xxxtian

because when I debug the code step by step, the report couldn't be loaded at all.. what do you think is the problem?

Member Avatar for xxxtian
0
78
Member Avatar for xxxtian

I have this code in design's code behind [CODE]int id; cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "usp_addvisitor"; cmd.Connection = con; cmd.Parameters.Add("visitorname", SqlDbType.NVarChar).Value = textBox1.Text; SqlParameter bookidparam = new SqlParameter("@visitorid", SqlDbType.Int); bookidparam.Direction = ParameterDirection.Output; cmd.Parameters.Add(bookidparam); id = Convert.ToInt32(bookidparam.Value); con.Open(); cmd.ExecuteNonQuery(); con.Close(); for (int i = 0; i < checkedListBox1.Items.Count; i++) { if …

Member Avatar for kvprajapati
0
534
Member Avatar for xxxtian

How to save the checked items on checkedlistbox in sql database? I searched through the web and found out that for loop or foreach is necessary. Could someone give me a sample code and an explanation. I really need to do this, but can't find a good tutorial for this.

Member Avatar for xxxtian
0
1K