Click here to Skip to main content
15,925,602 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Sql Connection1 Pin
LordLothar27-Jul-05 3:55
LordLothar27-Jul-05 3:55 
GeneralRe: Sql Connection1 Pin
Dave Kreskowiak27-Jul-05 6:36
mveDave Kreskowiak27-Jul-05 6:36 
GeneralRe: Sql Connection1 Pin
Christian Graus27-Jul-05 11:20
protectorChristian Graus27-Jul-05 11:20 
GeneralRe: Sql Connection1 Pin
Dave Kreskowiak27-Jul-05 15:55
mveDave Kreskowiak27-Jul-05 15:55 
GeneralRe: Sql Connection1 Pin
Christian Graus27-Jul-05 11:20
protectorChristian Graus27-Jul-05 11:20 
GeneralRe: Sql Connection1 Pin
LordLothar27-Jul-05 16:49
LordLothar27-Jul-05 16:49 
GeneralRe: Sql Connection1 Pin
Christian Graus27-Jul-05 16:58
protectorChristian Graus27-Jul-05 16:58 
Questionhow to serialize(save) object into database field(SQL Server)? Pin
maaaxwell26-Jul-05 16:21
maaaxwell26-Jul-05 16:21 
hey!nice to meet you,everyone.you can call me bill.can we make friends?
recently i posted a problem on the forum and havenot had a better answer.i know i am not clever.but could you please help me a little more? my question is:how to serialize(save) object into database field(SQL Server)?for a instance:
<serializable()>_
public class employee
private _name as string
private _age as string
public property name() as string
get
return me._name
end get
set(byval value as string)
me._name=value
end set
end property
.........

then,i serialized(saved) them into file:

public sub save(byval emp as employee,_
byval filepath as string,byval overwrite as boolean)
dim mode as filemode
if overwrite then
mode=filemiode.create
else
mode=filemode.createnew
end if
dim fs as new filestream(filepath,mode)
dim bf as new binaryformatter()
bf.serialize(fs,emp)
fs.close()
end sub
excitedly,i succeed.but,how to serialize(save) them into database field(SQL Server)?i have tried for many times,but failed!(maybe add dataset as interface,but i don't know how to do).please help me.i'm worrying about it.thanks a lot!Smile | :)


good luck and make more money! bill(in forum's name is:maaaxwell)
GeneralExcel Add-In Files Pin
mjackson1126-Jul-05 12:15
mjackson1126-Jul-05 12:15 
Generalcoords of the &quot;mouse click&quot; on a image Pin
fuel2run26-Jul-05 7:42
fuel2run26-Jul-05 7:42 
GeneralRe: coords of the &quot;mouse click&quot; on a image Pin
Christian Graus26-Jul-05 12:53
protectorChristian Graus26-Jul-05 12:53 
GeneralRe: coords of the "mouse click" on a image Pin
fuel2run26-Jul-05 21:06
fuel2run26-Jul-05 21:06 
GeneralRe: coords of the &quot;mouse click&quot; on a image Pin
Christian Graus27-Jul-05 11:18
protectorChristian Graus27-Jul-05 11:18 
GeneralRe: coords of the &quot;mouse click&quot; on a image Pin
fuel2run27-Jul-05 20:55
fuel2run27-Jul-05 20:55 
GeneralHyperlink of datagrid with auto generate columns is true Pin
wEb GuRu...26-Jul-05 5:07
wEb GuRu...26-Jul-05 5:07 
GeneralMail Server Project Pin
saood swar26-Jul-05 4:09
saood swar26-Jul-05 4:09 
GeneralRe: Mail Server Project Pin
Dave Kreskowiak26-Jul-05 4:52
mveDave Kreskowiak26-Jul-05 4:52 
QuestionCan we print out an AxMsChart graph directly? Pin
ATC26-Jul-05 4:04
ATC26-Jul-05 4:04 
AnswerRe: Can we print out an AxMsChart graph directly? Pin
Dave Kreskowiak26-Jul-05 4:50
mveDave Kreskowiak26-Jul-05 4:50 
GeneralParameter help Pin
erikkl200026-Jul-05 3:53
erikkl200026-Jul-05 3:53 
GeneralRe: Parameter help Pin
Anonymous26-Jul-05 4:01
Anonymous26-Jul-05 4:01 
GeneralRe: Parameter help Pin
erikkl200026-Jul-05 4:30
erikkl200026-Jul-05 4:30 
GeneralRe: Parameter help Pin
Dave Kreskowiak26-Jul-05 4:46
mveDave Kreskowiak26-Jul-05 4:46 
GeneralSMS Service in VB.Net Pin
Member 28202626-Jul-05 0:03
Member 28202626-Jul-05 0:03 
GeneralRe: SMS Service in VB.Net Pin
Dave Kreskowiak26-Jul-05 4:40
mveDave Kreskowiak26-Jul-05 4: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.