Click here to Skip to main content
15,897,704 members
Home / Discussions / C#
   

C#

 
GeneralSending HTTP POST request using System.Net.HttpWebRequest Pin
Le centriste2-Jul-03 10:19
Le centriste2-Jul-03 10:19 
GeneralSolved Pin
Le centriste2-Jul-03 16:12
Le centriste2-Jul-03 16:12 
GeneralUsing LogonUser function of Advapi32.dll Pin
PSharad2-Jul-03 10:03
PSharad2-Jul-03 10:03 
GeneralRe: Using LogonUser function of Advapi32.dll Pin
rami2k26-May-04 22:55
rami2k26-May-04 22:55 
GeneralRe: Using LogonUser function of Advapi32.dll Pin
Jassim Rahma8-Jul-05 8:30
Jassim Rahma8-Jul-05 8:30 
GeneralRe: Using LogonUser function of Advapi32.dll Pin
rami2k11-Jul-05 23:06
rami2k11-Jul-05 23:06 
GeneralUsing DataGrid with OleDB Pin
Hoang Dung2-Jul-03 9:59
Hoang Dung2-Jul-03 9:59 
GeneralRe: Using DataGrid with OleDB Pin
dynamic2-Jul-03 10:32
dynamic2-Jul-03 10:32 
here's an example of adding data from a database to a datagrid ( using an OleDbConnection )
VbCode:
<font color="blue">Private</font> <font color="blue">Sub</font> Button1_Click(<font color="blue">ByVal</font> sender <font color="blue">As</font> System.Object, <font color="blue">ByVal</font> e <font color="blue">As</font> System.EventArgs) <font color="blue">Handles</font> Button1.Click <br>         <font color="blue">Dim</font> strConnection <font color="blue">As</font> <font color="blue">String</font> = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & "C:/bin.mdb" <br>         <font color="blue">Dim</font> strCommand <font color="blue">As</font> <font color="blue">String</font> = "SELECT * FROM binFrm" <br>         OpenAccess(strConnection, strCommand) <br>     <font color="blue">End</font> <font color="blue">Sub</font> <br>  <br>     <font color="blue">Public</font> <font color="blue">Function</font> OpenAccess(<font color="blue">ByVal</font> strConn <font color="blue">As</font> <font color="blue">String</font>, <font color="blue">ByVal</font> strComm <font color="blue">As</font> <font color="blue">String</font>) <br>         <font color="blue">Dim</font> DBCon <font color="blue">As</font> <font color="blue">New</font> OleDbConnection(strConn) <br>         DBCon.Open() <br>         <font color="blue">Dim</font> DBCommand <font color="blue">As</font> <font color="blue">New</font> OleDbCommand(strComm, DBCon) <br>         <font color="blue">Dim</font> DBAdapt <font color="blue">As</font> OleDbDataAdapter <font color="DarkGreen"><br></font>         DBAdapt = <font color="blue">New</font> OleDbDataAdapter(DBCommand) <br>         <font color="blue">Dim</font> DBset <font color="blue">As</font> <font color="blue">New</font> DataSet() <br>         DBAdapt.Fill(DBset, "binFrm") <br>         DataGrid1.DataSource = DBset.Tables("binFrm") <font color="DarkGreen">'///add the tabel "binfrm" to the datagrid <br></font>         DBCon.Close() <br>         DBCommand.Dispose() <br>         DBAdapt.Dispose() <br>         DBset.Dispose() <br>     <font color="blue">End</font> <font color="blue">Function</font> <br>



not sure if that's what your after , but hope it helps Smile | :)


Vb:
<font color="blue">Public Function</font> TwinsOnWay(<font color="blue">ByVal</font> twins <font color="blue">As String</font>) <font color="blue">As String <br>     Select Case</font> twins<br>         <font color="blue">Case</font> "Gender" <br>             <font color="blue">Return</font> "Two Girls" <br>     <font color="blue">End Select <br> End Function</font> <br> 


GeneralRe: Using DataGrid with OleDB Pin
dynamic2-Jul-03 10:33
dynamic2-Jul-03 10:33 
GeneralRe: Using DataGrid with OleDB Pin
dynamic2-Jul-03 10:56
dynamic2-Jul-03 10:56 
GeneralRe: Using DataGrid with OleDB Pin
Khang Nguyen3-Jul-03 4:19
Khang Nguyen3-Jul-03 4:19 
GeneralC# event inheritance Pin
lquest2-Jul-03 8:38
lquest2-Jul-03 8:38 
GeneralRe: C# event inheritance Pin
J. Dunlap2-Jul-03 9:05
J. Dunlap2-Jul-03 9:05 
GeneralProblems with the ComboBox Pin
Torsch2-Jul-03 8:37
Torsch2-Jul-03 8:37 
GeneralRe: Problems with the ComboBox Pin
James T. Johnson2-Jul-03 23:00
James T. Johnson2-Jul-03 23:00 
QuestionCan it really be true? Pin
Marc Clifton2-Jul-03 6:42
mvaMarc Clifton2-Jul-03 6:42 
AnswerRe: Can it really be true? Pin
leppie2-Jul-03 7:09
leppie2-Jul-03 7:09 
GeneralRe: Can it really be true? Pin
Marc Clifton2-Jul-03 7:23
mvaMarc Clifton2-Jul-03 7:23 
GeneralRe: Can it really be true? Pin
Nick Parker2-Jul-03 7:31
protectorNick Parker2-Jul-03 7:31 
GeneralRe: Can it really be true? Pin
leppie2-Jul-03 7:33
leppie2-Jul-03 7:33 
GeneralRe: Can it really be true? Pin
J. Dunlap2-Jul-03 9:08
J. Dunlap2-Jul-03 9:08 
GeneralRe: Can it really be true? Pin
James T. Johnson2-Jul-03 23:09
James T. Johnson2-Jul-03 23:09 
GeneralRe: Can it really be true? Pin
Kant3-Jul-03 7:34
Kant3-Jul-03 7:34 
GeneralRe: Can it really be true? Pin
Marc Clifton3-Jul-03 7:37
mvaMarc Clifton3-Jul-03 7:37 
GeneralRe: Can it really be true? Pin
Kant3-Jul-03 8:56
Kant3-Jul-03 8:56 

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.