Click here to Skip to main content
15,887,477 members
Home / Discussions / C#
   

C#

 
QuestionPossible Bug?? Pin
Muammar©12-Sep-08 23:28
Muammar©12-Sep-08 23:28 
AnswerRe: Possible Bug?? Pin
Muammar©12-Sep-08 23:42
Muammar©12-Sep-08 23:42 
JokeRe: Possible Bug?? Pin
Mycroft Holmes13-Sep-08 0:12
professionalMycroft Holmes13-Sep-08 0:12 
GeneralRe: Possible Bug?? Pin
Muammar©13-Sep-08 0:21
Muammar©13-Sep-08 0:21 
GeneralRe: Possible Bug?? Pin
Anthony Mushrow13-Sep-08 0:54
professionalAnthony Mushrow13-Sep-08 0:54 
GeneralRe: Possible Bug?? Pin
User 665813-Sep-08 1:04
User 665813-Sep-08 1:04 
AnswerRe: Possible Bug?? Pin
#realJSOP13-Sep-08 1:03
mve#realJSOP13-Sep-08 1:03 
QuestionTableAdapter.Insert method problem. [modified] Pin
hdv21212-Sep-08 23:19
hdv21212-Sep-08 23:19 
hi i was designed a new TableAdapter in Viusal Studio 2005 DataSet Designer(add new table and set it's CRUD command with Stored Procedures), the first column of table is pk and identity, my problem is that the insert method parameters is :
t1TableAdapter.Insert(ref int? id,int? number,string name)

first question : what is '?' ?
second question : when i insert my record by following code :
int id = -1;
int number = int.Parse(this.textBox2.Text);
string name = this.textBox3.Text;

this.adapter.Insert(ref id, number, name);


the following error message has shown me :
The best overloaded method match for 'DataAccessDesigner.DsMyDbTableAdapters.t1TableAdapter.Insert(ref int?, int?, string)' has some invalid arguments.
Argument '1': cannot convert from 'ref int' to 'ref int?'


how to solve it ?

---------------------------------------------------------------------------------

another problem is that when i declare id as int? instead of int, like this :
int? id = -1;
int number = int.Parse(this.textBox2.Text);
string name = this.textBox3.Text;

this.adapter.Insert(ref id, number, name);
this.button1_Click(null, null);


it compile and when i insert a new record, the stackOverFlow exception has occuerd, why ?
thanks

modified on Saturday, September 13, 2008 5:29 AM

QuestionGet exe/dll Icon Pin
Muammar©12-Sep-08 21:46
Muammar©12-Sep-08 21:46 
AnswerRe: Get exe/dll Icon Pin
Muammar©12-Sep-08 22:08
Muammar©12-Sep-08 22:08 
QuestionHow to generate Graphs using xml with crystal reports. Pin
K V Sekhar12-Sep-08 21:43
K V Sekhar12-Sep-08 21:43 
AnswerRe: How to generate Graphs using xml with crystal reports. Pin
Mbah Dhaim13-Sep-08 2:47
Mbah Dhaim13-Sep-08 2:47 
Questionwoking with marshal Pin
iman_kh12-Sep-08 21:24
iman_kh12-Sep-08 21:24 
AnswerRe: woking with marshal Pin
User 665812-Sep-08 22:47
User 665812-Sep-08 22:47 
QuestionCpu temperature Pin
methhoo12-Sep-08 14:49
methhoo12-Sep-08 14:49 
AnswerRe: Cpu temperature Pin
Mark Salsbery12-Sep-08 15:25
Mark Salsbery12-Sep-08 15:25 
QuestionConvering treeView.Nodes to contextMenuStrip.Items? Pin
Mohammad Dayyan12-Sep-08 13:13
Mohammad Dayyan12-Sep-08 13:13 
QuestionGetting HTML source of a frame using the WebBrowser windows form object Pin
Jay Gatsby12-Sep-08 12:19
Jay Gatsby12-Sep-08 12:19 
QuestionI need Help passing data back and forth between Windows forms Pin
chobo212-Sep-08 12:08
chobo212-Sep-08 12:08 
AnswerRe: I need Help passing data back and forth between Windows forms Pin
Jay Gatsby12-Sep-08 12:40
Jay Gatsby12-Sep-08 12:40 
GeneralRe: I need Help passing data back and forth between Windows forms Pin
nelsonpaixao12-Sep-08 15:02
nelsonpaixao12-Sep-08 15:02 
AnswerRe: I need Help passing data back and forth between Windows forms Pin
DaveyM6913-Sep-08 2:30
professionalDaveyM6913-Sep-08 2:30 
QuestionDataGridViewComboBoxColumn is not showing DisplayMember on moving to other column Pin
nishantkainth12-Sep-08 10:51
nishantkainth12-Sep-08 10:51 
QuestionHow can we find WindowState changes ? Pin
Mohammad Dayyan12-Sep-08 10:16
Mohammad Dayyan12-Sep-08 10:16 
AnswerRe: How can we find WindowState changes ? Pin
User 665812-Sep-08 10:30
User 665812-Sep-08 10:30 

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.