Click here to Skip to main content
16,005,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: Detecting if a "Using" directive is not available in different computers Pin
PIEBALDconsult13-Jan-08 13:28
mvePIEBALDconsult13-Jan-08 13:28 
GeneralRe: Detecting if a "Using" directive is not available in different computers Pin
yoavyoavyoav13-Jan-08 19:22
yoavyoavyoav13-Jan-08 19:22 
GeneralRe: Detecting if a "Using" directive is not available in different computers Pin
PIEBALDconsult14-Jan-08 4:24
mvePIEBALDconsult14-Jan-08 4:24 
GeneralRe: Detecting if a "Using" directive is not available in different computers [modified] Pin
yoavyoavyoav14-Jan-08 4:29
yoavyoavyoav14-Jan-08 4:29 
GeneralRe: Detecting if a "Using" directive is not available in different computers Pin
mav.northwind15-Jan-08 1:30
mav.northwind15-Jan-08 1:30 
GeneralDatabase... Problems with a textbox converting.. Pin
Jacob Dixon12-Jan-08 4:57
Jacob Dixon12-Jan-08 4:57 
GeneralRe: Database... Problems with a textbox converting.. Pin
Colin Angus Mackay12-Jan-08 5:03
Colin Angus Mackay12-Jan-08 5:03 
GeneralRe: Database... Problems with a textbox converting.. Pin
Jacob Dixon12-Jan-08 10:05
Jacob Dixon12-Jan-08 10:05 
Sorry...

Under Data Sources I have a file called AddressesDataSet.Xsd, I right click it and go to Edit Dataset with Designer, which then shows a table of all my columns in the Addresses.mdf file (the database). Whhen I click a column in the table like HomePhone, CellPhone, or Fax, under the properties window it shows: Data Type: System.String. Here are all my "columns":

ID - primary key
FirstName
LastName
Address
City
State
Zip
Email
Picture
Notes
HomePhone
CellPhone
Fax

FirstName through State under the properties are set the Data Type to: System.String (which work and do not have any problems with)

Zip is set to System.Int32

Picture is set to System.Byte[]

The rest are System.String.


All of this I believe was automatically generated when I put the database in the project.

When I have a form open and I Drag and Drop the database to the form. I can choose to have all the columns displayed in DataGridView or all of the columns displayed on the form in TextBoxes, PictureBox, ComboBox, DateTimePicker, and more..


**wait**

I think I figured it out, I shouldn't be editing this in the DataSet. I should be doing this in the Addresses.mdf! Now I see where it is getting the INT and not varchar!

Ok now I feel stupid.. Thanks for the help though Shucks | :-\
GeneralRe: Database... Problems with a textbox converting.. Pin
Jacob Dixon12-Jan-08 10:23
Jacob Dixon12-Jan-08 10:23 
GeneralRe: Database... Problems with a textbox converting.. Pin
Colin Angus Mackay12-Jan-08 11:06
Colin Angus Mackay12-Jan-08 11:06 
GeneralRe: Database... Problems with a textbox converting.. Pin
Jacob Dixon12-Jan-08 11:16
Jacob Dixon12-Jan-08 11:16 
GeneralRe: Database... Problems with a textbox converting.. Pin
Gareth H12-Jan-08 12:57
Gareth H12-Jan-08 12:57 
GeneralRe: Database... Problems with a textbox converting.. Pin
Jacob Dixon12-Jan-08 16:01
Jacob Dixon12-Jan-08 16:01 
GeneralRe: Database... Problems with a textbox converting.. Pin
Colin Angus Mackay12-Jan-08 22:50
Colin Angus Mackay12-Jan-08 22:50 
GeneralRe: Database... Problems with a textbox converting.. Pin
Colin Angus Mackay12-Jan-08 22:57
Colin Angus Mackay12-Jan-08 22:57 
GeneralRe: Database... Problems with a textbox converting.. Pin
Jacob Dixon13-Jan-08 9:15
Jacob Dixon13-Jan-08 9:15 
GeneralRe: Database... Problems with a textbox converting.. Pin
Colin Angus Mackay13-Jan-08 9:46
Colin Angus Mackay13-Jan-08 9:46 
GeneralRe: Database... Problems with a textbox converting.. Pin
Paul Conrad13-Jan-08 6:40
professionalPaul Conrad13-Jan-08 6:40 
GeneralODBC connection Error Pin
Thaer Hamael12-Jan-08 4:05
Thaer Hamael12-Jan-08 4:05 
GeneralRe: ODBC connection Error Pin
pmarfleet12-Jan-08 6:48
pmarfleet12-Jan-08 6:48 
GeneralRe: ODBC connection Error Pin
Jimmanuel12-Jan-08 10:16
Jimmanuel12-Jan-08 10:16 
GeneralRe: ODBC connection Error Pin
PIEBALDconsult13-Jan-08 13:30
mvePIEBALDconsult13-Jan-08 13:30 
GeneralAn icon inside list view Pin
Strategic_Thinker12-Jan-08 2:57
Strategic_Thinker12-Jan-08 2:57 
GeneralRe: An icon inside list view Pin
Abhijit Jana12-Jan-08 3:08
professionalAbhijit Jana12-Jan-08 3:08 
Generalcrystal report Pin
shabonaa12-Jan-08 2:48
shabonaa12-Jan-08 2:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.