Click here to Skip to main content
15,905,782 members
Home / Discussions / C#
   

C#

 
GeneralTimer not firing Pin
hairy_hats20-Jun-07 3:56
hairy_hats20-Jun-07 3:56 
AnswerRe: Timer not firing Pin
Martin#20-Jun-07 4:00
Martin#20-Jun-07 4:00 
GeneralRe: Timer not firing Pin
hairy_hats20-Jun-07 4:24
hairy_hats20-Jun-07 4:24 
GeneralRe: Timer not firing Pin
Martin#20-Jun-07 4:26
Martin#20-Jun-07 4:26 
GeneralRe: Timer not firing Pin
hairy_hats20-Jun-07 4:56
hairy_hats20-Jun-07 4:56 
GeneralRe: Timer not firing Pin
Martin#20-Jun-07 5:02
Martin#20-Jun-07 5:02 
GeneralRe: Timer not firing Pin
Luc Pattyn20-Jun-07 4:00
sitebuilderLuc Pattyn20-Jun-07 4:00 
Questionhow can I save the affix? Pin
lockepeak20-Jun-07 3:54
lockepeak20-Jun-07 3:54 
I create a project with C# lauguage in structure C/s
I want to save a affix to the oracle database, the affix format is doc txt and others
when I open it in another computer it can not be opened. what is problem?
what can I do?
the code is:

if (tbContent1.Text!="")
{
string FileName=this.tbContent1.Text.ToString().Trim();
FileStream fs=new FileStream(FileName,FileMode.OpenOrCreate,FileAccess.Read);
byte[] MyData=new byte[fs.Length];
fs.Read(MyData,0,(int)fs.Length);
fs.Close();
ds=link.SelectDataBase("select * from BuleAffiB","temptable");
DataRow MyRow=ds.Tables[0].NewRow();
MyRow["affixname"]=FileName;
MyRow["sequeno"]=SequeNo;
MyRow["affcontent"]=MyData;
ds.Tables[0].Rows.Add(MyRow);
ds=link.UpdateDataBase(this.ds,"temptable");
}

string strSQL="insert into NewsB (title,launcher,launchdate,content,mem,sequeno,validdays,validrange,importance) values ('"+CurrentTitle+"','"+CurrentLauncher+"',to_date('"+CurrentDate+"','YYYY-MM-DD HH24:MI:SS'),'"+CurrentContent+"','"+CurrentMem+"','"+SequeNo+"','"+CurrentValidDays+"','"+CurrentValidRange+"','"+Currentimportance+"')";
//insert a record try
{
if (link.ExecuteUpdate(strSQL)>0)
{
MessageBox.Show("succssful!","showMEssage",MessageBoxButtons.OK,MessageBoxIcon.Information);
}
link.Dispose();
Questionhow to get next record Pin
srinivassam20-Jun-07 3:50
srinivassam20-Jun-07 3:50 
AnswerRe: how to get next record Pin
Manas Bhardwaj20-Jun-07 3:58
professionalManas Bhardwaj20-Jun-07 3:58 
AnswerRe: how to get next record Pin
lockepeak20-Jun-07 3:58
lockepeak20-Jun-07 3:58 
QuestionHow to get the "Company Name" of local user? Pin
Affan Toor20-Jun-07 3:50
Affan Toor20-Jun-07 3:50 
AnswerRe: How to get the "Company Name" of local user? Pin
Yitzchok Dev20-Jun-07 19:46
Yitzchok Dev20-Jun-07 19:46 
GeneralRe: How to get the "Company Name" of local user? Pin
Affan Toor21-Jun-07 0:28
Affan Toor21-Jun-07 0:28 
GeneralRe: How to get the "Company Name" of local user? Pin
Yitzchok Dev21-Jun-07 8:59
Yitzchok Dev21-Jun-07 8:59 
QuestionPoint to Inch Pin
priyank_ldce20-Jun-07 3:41
priyank_ldce20-Jun-07 3:41 
AnswerRe: Point to Inch Pin
Manas Bhardwaj20-Jun-07 4:00
professionalManas Bhardwaj20-Jun-07 4:00 
GeneralRe: Point to Inch Pin
priyank_ldce20-Jun-07 5:56
priyank_ldce20-Jun-07 5:56 
QuestionSetting focus to the beginning of a MaskedTextBox Pin
NYTSX20-Jun-07 3:40
NYTSX20-Jun-07 3:40 
AnswerRe: Setting focus to the beginning of a MaskedTextBox Pin
Luc Pattyn20-Jun-07 4:05
sitebuilderLuc Pattyn20-Jun-07 4:05 
GeneralRe: Setting focus to the beginning of a MaskedTextBox Pin
NYTSX20-Jun-07 4:14
NYTSX20-Jun-07 4:14 
AnswerRe: Setting focus to the beginning of a MaskedTextBox Pin
Stu Richardson20-Jun-07 4:25
Stu Richardson20-Jun-07 4:25 
QuestionListbox items to array Pin
neer120-Jun-07 3:16
neer120-Jun-07 3:16 
AnswerRe: Listbox items to array Pin
Chintan.Desai20-Jun-07 3:37
Chintan.Desai20-Jun-07 3:37 
GeneralRe: Listbox items to array Pin
Stu Richardson20-Jun-07 3:40
Stu Richardson20-Jun-07 3:40 

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.