Click here to Skip to main content
15,901,122 members
Home / Discussions / C#
   

C#

 
QuestionArgument 1: cannot convert from 'object' to 'string' Pin
User 1460643731-Oct-19 0:53
User 1460643731-Oct-19 0:53 
AnswerRe: Argument 1: cannot convert from 'object' to 'string' Pin
OriginalGriff31-Oct-19 1:19
mveOriginalGriff31-Oct-19 1:19 
GeneralRe: Argument 1: cannot convert from 'object' to 'string' Pin
User 1460643731-Oct-19 1:35
User 1460643731-Oct-19 1:35 
GeneralRe: Argument 1: cannot convert from 'object' to 'string' Pin
OriginalGriff31-Oct-19 1:47
mveOriginalGriff31-Oct-19 1:47 
GeneralRe: Argument 1: cannot convert from 'object' to 'string' Pin
User 1460643731-Oct-19 1:59
User 1460643731-Oct-19 1:59 
GeneralRe: Argument 1: cannot convert from 'object' to 'string' Pin
OriginalGriff31-Oct-19 2:20
mveOriginalGriff31-Oct-19 2:20 
AnswerRe: Argument 1: cannot convert from 'object' to 'string' Pin
Richard MacCutchan31-Oct-19 1:37
mveRichard MacCutchan31-Oct-19 1:37 
GeneralRe: Argument 1: cannot convert from 'object' to 'string' Pin
User 1460643731-Oct-19 1:57
User 1460643731-Oct-19 1:57 
That actually did work (atleast the debugger won't whine about it anymore) but I'm getting a new error at:
adpt.Fill(myDataSet, "Companies");

"An exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll but was not handled in user code

Additional information: Invalid object name 'Companies'."

I have created a database with two tables: Companies and Stores. So Companies exists.

modified 1-Dec-20 21:01pm.

GeneralRe: Argument 1: cannot convert from 'object' to 'string' Pin
Dave Kreskowiak31-Oct-19 2:16
mveDave Kreskowiak31-Oct-19 2:16 
GeneralRe: Argument 1: cannot convert from 'object' to 'string' Pin
Richard Deeming31-Oct-19 2:45
mveRichard Deeming31-Oct-19 2:45 
QuestionCreate New Label when click button in window form, move it when click and move mouse, and save it again when close file exe Pin
Member 1045263729-Oct-19 21:10
Member 1045263729-Oct-19 21:10 
AnswerRe: Create New Label when click button in window form, move it when click and move mouse, and save it again when close file exe Pin
OriginalGriff29-Oct-19 21:44
mveOriginalGriff29-Oct-19 21:44 
GeneralRe: Create New Label when click button in window form, move it when click and move mouse, and save it again when close file exe Pin
Member 1045263729-Oct-19 23:07
Member 1045263729-Oct-19 23:07 
GeneralRe: Create New Label when click button in window form, move it when click and move mouse, and save it again when close file exe Pin
OriginalGriff29-Oct-19 23:22
mveOriginalGriff29-Oct-19 23:22 
QuestionHow to solve complex captcha in C# Pin
rflprado29-Oct-19 5:53
rflprado29-Oct-19 5:53 
AnswerRe: How to solve complex captcha in C# Pin
OriginalGriff29-Oct-19 5:55
mveOriginalGriff29-Oct-19 5:55 
AnswerRe: How to solve complex captcha in C# Pin
OriginalGriff29-Oct-19 5:56
mveOriginalGriff29-Oct-19 5:56 
Questionc sharp Pin
Member 1115563928-Oct-19 9:41
Member 1115563928-Oct-19 9:41 
AnswerRe: c sharp Pin
OriginalGriff28-Oct-19 10:37
mveOriginalGriff28-Oct-19 10:37 
QuestionRe: c sharp Pin
ZurdoDev28-Oct-19 10:45
professionalZurdoDev28-Oct-19 10:45 
Questionarray manipulation Pin
Member 1463677627-Oct-19 23:54
Member 1463677627-Oct-19 23:54 
AnswerRe: array manipulation Pin
OriginalGriff28-Oct-19 0:32
mveOriginalGriff28-Oct-19 0:32 
AnswerRe: array manipulation Pin
ZurdoDev28-Oct-19 10:46
professionalZurdoDev28-Oct-19 10:46 
GeneralRe: array manipulation Pin
Nathan Minier29-Oct-19 1:18
professionalNathan Minier29-Oct-19 1:18 
GeneralRe: array manipulation Pin
ZurdoDev29-Oct-19 1:22
professionalZurdoDev29-Oct-19 1:22 

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.