Click here to Skip to main content
15,894,343 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: changing the background color of single word in textbox Pin
Luc Pattyn22-Jul-09 15:39
sitebuilderLuc Pattyn22-Jul-09 15:39 
AnswerRe: changing the background color of single word in textbox Pin
Adrian Cole5-Aug-09 12:05
Adrian Cole5-Aug-09 12:05 
QuestionHow to restrict the string lenght in propertygrid item in vb.net [modified] Pin
dilipmca0421-Jul-09 21:07
dilipmca0421-Jul-09 21:07 
QuestionCustom UserControl and scrollbars Pin
invictus321-Jul-09 10:49
invictus321-Jul-09 10:49 
AnswerRe: Custom UserControl and scrollbars Pin
Eddy Vluggen22-Jul-09 21:58
professionalEddy Vluggen22-Jul-09 21:58 
Questioncode for retreving user DSN's Pin
chennu Jul2920-Jul-09 20:50
chennu Jul2920-Jul-09 20:50 
Questiontype initializer for 'Gdip' threw an exception Pin
baldree20-Jul-09 13:46
baldree20-Jul-09 13:46 
Questionhow return Dataadapter and dataset from function in class file for multiple use Pin
hemrk20-Jul-09 6:08
hemrk20-Jul-09 6:08 
i have created function in class file.
Public Shared Function dsCntrctET() As DataSet
Dim sqlCntrct As String = "Select * from CNTRCT_ET where CNTRCT_ID=" & CISCNO
Dim cmdCISContract As New OracleCommand
Dim daCISCntrct As New OracleDataAdapter
Dim dsCISCntrct As New DataSet
Dim cmdCISBuilder As New OracleCommandBuilder
Try
With cmdCISContract
.Transaction = myTransCIS
.CommandText = sqlCntrct
.Connection = cnCIS
End With
daCISCntrct = New OracleDataAdapter(cmdCISContract)
daCISCntrct.FillSchema(dsCISCntrct, SchemaType.Source)
cmdCISBuilder = New OracleCommandBuilder(daCISCntrct)
With daCISCntrct
.TableMappings.Add("Table", "CNTRCT_ET")
.Fill(dsCISCntrct)
.SelectCommand = cmdCISContract
.InsertCommand = cmdCISBuilder.GetInsertCommand
.UpdateCommand = cmdCISBuilder.GetUpdateCommand
.DeleteCommand = cmdCISBuilder.GetDeleteCommand
End With

Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Return (dsCISCntrct)
End Function

it returns dataset that i can use for getting value from table.
but while saving data, i have to use dataadapter for da.update(ds,"table") and ds.acceptchanges.

this i have to use in multiple forms as this data comes from 3rd party so i dont want to write this in every form . so i thought how to return data adapter and dataset from the same function. as i wanted to use daCISCntrct and dsCISCntrct.
AnswerRe: how return Dataadapter and dataset from function in class file for multiple use Pin
DoctorMick20-Jul-09 6:16
DoctorMick20-Jul-09 6:16 
GeneralHelp on how to build sms web portal for my church for e-evengenlism Pin
abbah19-Jul-09 22:51
abbah19-Jul-09 22:51 
GeneralRe: Help on how to build sms web portal for my church for e-evengenlism Pin
Dave Kreskowiak21-Jul-09 4:25
mveDave Kreskowiak21-Jul-09 4:25 
JokeRe: Help on how to build sms web portal for my church for e-evengenlism Pin
Paul Conrad26-Jul-09 11:11
professionalPaul Conrad26-Jul-09 11:11 
Question"extended version" of post to Lounge : Applause ! : shareware version of AlphaForm now on CP, and free [modified] Pin
BillWoodruff19-Jul-09 15:04
professionalBillWoodruff19-Jul-09 15:04 
Questionhow to programatically raise keyPress event of a user control? Pin
imak19-Jul-09 9:54
imak19-Jul-09 9:54 
AnswerRe: how to programatically raise keyPress event of a user control? Pin
Luc Pattyn19-Jul-09 10:33
sitebuilderLuc Pattyn19-Jul-09 10:33 
GeneralRe: how to programatically raise keyPress event of a user control? Pin
imak19-Jul-09 10:45
imak19-Jul-09 10:45 
GeneralRe: how to programatically raise keyPress event of a user control? Pin
imak20-Jul-09 4:43
imak20-Jul-09 4:43 
QuestionHow to access the form controls in the thread Pin
K V Sekhar17-Jul-09 23:41
K V Sekhar17-Jul-09 23:41 
AnswerRe: How to access the form controls in the thread Pin
Luc Pattyn18-Jul-09 0:02
sitebuilderLuc Pattyn18-Jul-09 0:02 
GeneralRe: How to access the form controls in the thread Pin
K V Sekhar18-Jul-09 1:00
K V Sekhar18-Jul-09 1:00 
GeneralRe: How to access the form controls in the thread Pin
Luc Pattyn18-Jul-09 1:05
sitebuilderLuc Pattyn18-Jul-09 1:05 
QuestionXML DOM Support WINPE 1.6 Pin
AR Reddy16-Jul-09 0:26
AR Reddy16-Jul-09 0:26 
QuestionHelp for widows distributed application Pin
Zeeshan Riaz15-Jul-09 11:34
Zeeshan Riaz15-Jul-09 11:34 
QuestionRegEx not finding matches ... but it should Pin
Adam R Harris14-Jul-09 18:57
Adam R Harris14-Jul-09 18:57 
AnswerRe: RegEx not finding matches ... but it should Pin
Luc Pattyn15-Jul-09 2:22
sitebuilderLuc Pattyn15-Jul-09 2: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.