Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
62% Quality Score
Upvotes Received
6
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
6
Posts with Downvotes
6
Downvoting Members
1
3 Commented Posts
~57.3K People Reached
Favorite Tags

118 Posted Topics

Member Avatar for AngelicOne

I tried [CODE]If (checkedListBox1.SelectedItem.ToString() == "Others") { //do something }[/CODE] but it's not working the way I wanted to.. Whenever the 'Others' item is checked, the code executes but if I tried to uncheck it, it still execute the code as if it runs when that item is selected checked …

Member Avatar for 3004426279
0
5K
Member Avatar for AngelicOne

I can clear the content of the datagridview by clearing the dataset [CODE]ds.Clear();[/CODE] Then reset the datasource [CODE]datagridview.datasource = ds.Tables[0];[/CODE] Now I will do a select statement that has different columns from the current datagridview. What happens is, the column from the previous datasource is still intact. As if the …

Member Avatar for creations1220
0
1K
Member Avatar for AngelicOne

how to do this? I only know how to set the error [CODE]errorprovider.seterror(textbox, "message);[/CODE] remove the error [CODE]error.provider.seterror(textbox, "");[/CODE] But instead of just removing the error, I want to display something like a check mark.

Member Avatar for Rash1988
0
193
Member Avatar for AngelicOne

I have a form that is being validated using PHP server side scripting. To show multiple errors, I store it in an array and used foreach to loop through the values and echo it for dislay. I thought i'm finished using PHP validation but I noticed that everytime I submit …

Member Avatar for urtrivedi
-1
179
Member Avatar for AngelicOne

I'm using javascript for my client validation and I would like this to work the way I wanted to. I have three textboxes for last name, middle name and firstname. All the fields are mandatory and if the form is submitted there would be an error to display below the …

Member Avatar for AngelicOne
0
247
Member Avatar for AngelicOne

I know I am doing this right but it just doesn't work. The condition for radiobutton that if it's not checked then an alert should display. But it won't work! [CODE]<script> function valid() { var element = document.forms["form"]["gender"]; var check = false; for(i=0;i<=element.length;i++) { if(element[i].checked) { check = true; break; …

Member Avatar for AngelicOne
0
122
Member Avatar for AngelicOne

I have table B that has reference to table A. I need to insert value to table B's foreign key. How to do it using PHP? Do I need to use mysql_insert_id()?

Member Avatar for AngelicOne
-1
103
Member Avatar for AngelicOne

I don't what is wrong but there's an error [B]Error: Incorrect date value: '' for column 'DateBirth' at row 1[/B] I searched for answers but there seems nothing wrong with my code. I used date as datatype for date of birth. my php script. [CODE] <?php $m = $_POST["month"]; $d …

Member Avatar for AngelicOne
0
175
Member Avatar for AngelicOne

I'm having troubles with the website I'm making. When zooming out, the navigation bar's contact us link is going to the bottom. Each link is set to specific width so I can make it full horizontal but it seems complicated to specify width. The content which is 800px at size …

Member Avatar for Arkinder
0
181
Member Avatar for AngelicOne

know that building webpages should be built with something like "master pages" wherein when you go to another page the headers, navigations and footers would not load(same), only the content. How could I do this using only XHTML? I'm just doing this in notepad.

Member Avatar for Arkinder
0
68
Member Avatar for AngelicOne

I'm having a hard time validating a checkbox. How to do it? This is my checkboxes input [CODE] <input type="checkbox" name="topic[]" value="HTML"/>HTML<br/> <input type="checkbox" name="topic[]" value="XHTML"/>XHTML<br/> <input type="checkbox" name="topic[]" value="CSS"/>CSS<br/> <input type="checkbox" name="topic[]" value="JavaScript"/>JavaScript<br/> <input type="checkbox" name="topic[]" value="XML"/>XML<br/> <input type="checkbox" name="topic[]" value="PHP"/>PHP<br/> [/CODE] I would like to check whether the …

Member Avatar for AngelicOne
0
96
Member Avatar for AngelicOne

How could I validate a checkbox and radiobutton input using PHP? I wish to display a message if there's no selected value from checkbox or radiobutton. I tried this for my checkbox. [CODE]$check = $_POST["checkbox"]; if(empty($check)) { echo "You need to select at least one from the checkboxes"; } [/CODE] …

Member Avatar for AngelicOne
0
146
Member Avatar for AngelicOne

I know it's a good way to catch an exception but why not just make it into a simple if..else statement and run a block of codes then used die to stop the code following it from executing or echo to enable the scripts following it from executing. What's the …

Member Avatar for pritaeas
1
197
Member Avatar for AngelicOne

I'm trying to open a txt file that doesn't exist just to display an error but it doesn't! I already modified my php.ini [QUOTE] error_reporting = E_ALL | E_STRICT display_errors = On html_errors = On [/QUOTE] but still doesn't work. I haven't experience errors since I used PHP! It just …

Member Avatar for AngelicOne
0
308
Member Avatar for AngelicOne

I'm having a hard time to send a message to a certain e-mail account. I read that I should setup the PHP.INI at line where SMTP is located, which the default value is localhost. If the SMTP is to the computer itself which is 127.0.0.1 or localhost then the mail …

Member Avatar for NettSite
0
138
Member Avatar for AngelicOne

Today, i'm working with base tag elements and I find base href to be very useful. I'm having a hard time to set a source for an image tag because of the specified link in base href. I tried to set an image that is located from a folder (background-image:url('my …

Member Avatar for twiss
0
54
Member Avatar for AngelicOne

I know that I can set it up in the property window but I need to do it in code. How?

Member Avatar for brokenarrow_vip
0
117
Member Avatar for AngelicOne

I'm having a hard time to return a string value. I usually do this by passing an int, which works just fine. Now, I need to pass a string but couldn't. Is this possible? Or int is only type that SQL can return?

Member Avatar for buddylee17
0
139
Member Avatar for AngelicOne

I got an error saying "There is already an open DataReader associated with this Command which must be closed first". I have only used datareader once while using the same connection for my dataset. Would that make some conflict? Need help.

Member Avatar for OnePostWonder
0
95
Member Avatar for AngelicOne

I need to have a watermark on both of my form using this [CODE] public static class TextBoxWatermarkExtensionMethod { private const uint ECM_FIRST = 0x1500; private const uint EM_SETCUEBANNER = ECM_FIRST + 1; [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)] private static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, uint wParam, …

Member Avatar for Momerath
0
136
Member Avatar for AngelicOne

I have a column in my table that is named 'startDateTime' and 'endDateTime'. I need to select all the rows where current time stamp is in between the startdatetime and enddatetime. Note that the datatype is smalldatetime. How to do this?

Member Avatar for Mitja Bonca
-1
56
Member Avatar for AngelicOne

I have three forms. All forms are shown and I have a button on the third form. The button should close all the forms including the form where the button was created. Application.Exit() is not suitable for this because I don't want the application to exit including the forms that …

Member Avatar for AngelicOne
0
117
Member Avatar for AngelicOne

I made a project in Visual Studio 2008 that is consist of three forms named 'Main Menu', 'First Menu' and 'Second Menu'. My main menu has a datagridview that is being populated by a dataset. [CODE]datagridview.DataSource = ds.Tables[0];[/CODE] My Main Menu form has a button that will show First Menu …

0
65
Member Avatar for AngelicOne

I'm having a memory exception because I only read my table's image column without specifying that it's a byte. How can I do this? [CODE] con.Open(); SqlDataReader rdr = cmd.ExecuteReader(); if (rdr.HasRows) { while (rdr.Read()) { FileStream fs = new FileStream("image.bmp", FileMode.Create); byte[] picbyte = (byte[])rdr["userimage"]; fs.Write(picbyte, 0, picbyte.Length); displaypb.Image …

Member Avatar for AngelicOne
0
3K
Member Avatar for AngelicOne

My form1 has a datagridview that is being populated by a dataset. I need to get the row's values selected on the datagridview to another form, which is form2 that is consist of textboxes. I am quite confused whether to pass the dataset to form2 or use a datareader to …

Member Avatar for Mitja Bonca
0
205
Member Avatar for AngelicOne

I used to fill a listview with dataset that is set to details view. Now, I need to fill the listview with images and by that I believed that I'd set the view to large icons. How to do this? this is how I feel the listview [CODE] foreach (DataRow …

Member Avatar for Mitja Bonca
0
239
Member Avatar for AngelicOne

Could I select a datetime record using date only? I need to show rows containing a particular date. I'm thinking to separate it into two column instead if I couldn't select only date from a datetime.

Member Avatar for Momerath
0
151
Member Avatar for AngelicOne

I have two combobox, which is 'names' and 'types' and it's being populated by a dataset. It contains an additional item "-- ALL --" to indicate that all items of a particular field are being shown. I have an SQL select statement to filter the records according to the selected …

Member Avatar for Momerath
0
136
Member Avatar for AngelicOne

How to select records with today's event? I have a column that is set to smalldatetime. I need to select those that have a row of today's event.

Member Avatar for Momerath
0
246
Member Avatar for AngelicOne

There's an error saying that the combobox is already b, inded to a datasource, thus cannot add new items. This is how I populate my combobox [CODE] cmd = new SqlCommand(); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "usp_distinctevent"; cmd.Connection = con; da = new SqlDataAdapter(); da.SelectCommand = cmd; ds = new …

Member Avatar for Mitja Bonca
0
360
Member Avatar for AngelicOne

I read an article about versatile webcam and I successfully worked it out. The thing is I can't save the image from the pictureBoxDisplay to SQL. Please I really need help on this. I'm converting the pictureBox into a byte array but there's an error in this line (line 123), …

Member Avatar for AngelicOne
0
1K
Member Avatar for AngelicOne

I binded data to a combobox using a dataset. [CODE] companycb.DisplayMember = "company"; companycb.ValueMember = "visitorVisitID"; companycb.DataSource = ds.Tables["tblVisitorVisit"];[/CODE] I need to remove the duplicate values from the combobox. Is there any other way instead of doing it using an SQL Distinct query?

Member Avatar for Mitja Bonca
0
101
Member Avatar for AngelicOne

I'm rather confused whether the application I have seen used a tool strip or a tab control for its main menu. When I tried clicking the tool strip images, the panel below changes instantly just like the behavior of a tab control, moreover, inside the panel is a tab control. …

Member Avatar for Momerath
0
130
Member Avatar for AngelicOne

I read that there are two ways of doing this: using WIA SDK and avicap32.dll. This is the first time I worked on an API that utilize a webcam. It seems that there are no official ways of using a webcam in .NET. Could someone give a link for a …

Member Avatar for AngelicOne
0
101
Member Avatar for AngelicOne

I need to make a copy of my already made form instead of adding new. I tend to do this by copy/paste the controls and manually setting the location. Is there any other way to do this?

Member Avatar for Momerath
0
77
Member Avatar for AngelicOne

I have a datagridview and a status strip on my form. When I click a row or cell, the label from the status strip should change according to it's row number. My datagridview is being generated at run time by a dataset.

Member Avatar for Mitja Bonca
0
798
Member Avatar for AngelicOne

I have a table that contains ID, lastname and firstname of a person. How to make my stored procedure handle the where conditions using only stored procedure. SELECT * FROM person where lastname = @lastname SELECT * FROM person where firstname = @firstname SELECT * FROM person where ID = …

Member Avatar for debasisdas
0
225
Member Avatar for AngelicOne

I successfully implement in my application a listview that can get the values of selected items using a for loop [CODE] for (int i = 0; i < eventlv.Items.Count; i++) { if (eventlv.Items[i].Checked == true) [/CODE] and using this to get the specific value on my parameter [CODE]eventlv.FocusedItem.SubItems[0].Text[/CODE] Though, I …

Member Avatar for Mitja Bonca
0
5K
Member Avatar for AngelicOne

How can I loop through a particular column of a datagridview? For example, I have three tables and I only need to get the selected items of the first column. I'll use for loop, right?

Member Avatar for Mitja Bonca
0
4K
Member Avatar for AngelicOne

I read some articles with regards on watermarks in windows app, but I found it to be quite complicated. What is the best way to implement watermark in textboxes?

Member Avatar for Momerath
0
122
Member Avatar for AngelicOne

I'm having difficulty to implement a select query for my database using datagridview to bind to and textbox for searching a particular value in my table. I have this stored procedure [CODE]CREATE PROCEDURE usp_searchvisitor @keyword nvarchar(20) AS SELECT * FROM tblVisitor WHERE lastName = @keyword OR firstName = @keyword OR …

Member Avatar for Mitja Bonca
0
166
Member Avatar for AngelicOne

How can I resize the height of a textbox? I know that you can do it by setting the multiline to true but whenever the text reaches the right edge it will make a new line. I just want to make a large textbox and behaves just like a normal …

Member Avatar for AngelicOne
0
122
Member Avatar for AngelicOne

I set the autosize mode to column header for my datagridview headers, but it doesn't work the way I wanted to. I have a header text "User ID", and instead of making a header that contains only one line of text, it makes two lines. User ID < should be …

Member Avatar for Mitja Bonca
0
61
Member Avatar for AngelicOne

While using an insert query for a certain table, can I used a select statement to know whether there's an already existing value in the stored procedure using a return value where insert occurs? Or do I need to separate a procedure? I don't know much of return values.

Member Avatar for AngelicOne
0
215
Member Avatar for AngelicOne

I have an application that contains a textbox wherein my database could only accept an int value, which is the contact number. The contact number field is only optional, so an empty field couldn't be accepted because it's still a character and not a number. How could I fix this? …

Member Avatar for Mitja Bonca
0
269
Member Avatar for AngelicOne

This is my app.config [CODE]<?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="radicalGuard" value="Data Source = MICHAEL-PC\SQLEXPRESS; Initial Catalog = radicalGuardDB; Integrated Security = True" /> </appSettings> </configuration>[/CODE] And this is my connection string [CODE]SqlConnection con = new SqlConnection(ConfigurationSettings.AppSettings["radicalGuard"].ToString());[/CODE] Whenever I try to debug, it says "object reference not set to …

Member Avatar for AngelicOne
0
210
Member Avatar for AngelicOne

My textbox is set to read-only, but I need to disable the focus on a textbox. There's an error that a read-only textbox could not lost focus. Is there any other way to get a white backcolor that has a particular width? I tried to do it with textbox and …

Member Avatar for AngelicOne
0
251
Member Avatar for AngelicOne

Instead of changing my 15 textboxes manually, I would like to do it automatically, maybe doing a foreach loop? I don't know what do you call it but this kind of method is usually done when clearing textboxes and controls that is instead of putting a .clear() to all textbox, …

Member Avatar for AngelicOne
0
103
Member Avatar for AngelicOne

I thought by setting up the custom format of date time picker to |MM/dd/yy hh:mm tt" would work, but the selection doesn't change from date picker only! I need an object that I can be able to choose both date and time.

Member Avatar for AngelicOne
0
93
Member Avatar for AngelicOne

I have two textbox and I want to have two different messagebox validation for each. It goes like this [CODE]if(text1.Text.Length == 0) { messagebox.Show("error 1"); } else { OK }[/CODE] Where would I put the textbox 2 for a different messagebox? Else if will not work. Need help

Member Avatar for AngelicOne
0
126

The End.