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

C#

 
AnswerRe: A class without Main Pin
harold aptroot14-Mar-09 0:46
harold aptroot14-Mar-09 0:46 
Questionbrowser problem with visual studio 2005 Pin
maheshsahini13-Mar-09 20:02
maheshsahini13-Mar-09 20:02 
AnswerRe: browser problem with visual studio 2005 Pin
Mycroft Holmes13-Mar-09 23:41
professionalMycroft Holmes13-Mar-09 23:41 
GeneralRe: browser problem with visual studio 2005 Pin
maheshsahini14-Mar-09 0:07
maheshsahini14-Mar-09 0:07 
QuestionDataGridViewColumn with multiline textboxes Pin
hain13-Mar-09 10:05
hain13-Mar-09 10:05 
AnswerRe: DataGridViewColumn with multiline textboxes Pin
Henry Minute13-Mar-09 11:13
Henry Minute13-Mar-09 11:13 
GeneralRe: DataGridViewColumn with multiline textboxes Pin
hain13-Mar-09 12:34
hain13-Mar-09 12:34 
QuestionBackgroundWorker DTS SQL 2000 Pin
rafaelht310813-Mar-09 9:29
rafaelht310813-Mar-09 9:29 
Hi i have the code

using DTS;

private void DTS_Eliminar()
{
Package2Class pck = new Package2Class();
object pvarper = null;
string server = ConfigurationManager.AppSettings.Get("server_SQL");
pck.LoadFromSQLServer(server, null, null,
DTSSQLServerStorageFlags.DTSSQLStgFlag_UseTrustedConnection,
null, null, null,
"DTS_Informix_a_SQL_Periodos_Vigentes", ref pvarper);

pck.Execute();
pck.UnInitialize();
}

but i need this

private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{

Package2Class pck = new Package2Class();
object pvarper = null;
string server = ConfigurationManager.AppSettings.Get("server_SQL");
pck.LoadFromSQLServer(server, null, null,
DTSSQLServerStorageFlags.DTSSQLStgFlag_UseTrustedConnection,
null, null, null,
"DTS_Informix_a_SQL_Periodos_Vigentes", ref pvarper);

e.Result = pck.Execute(); pck.UnInitialize();

}

but show the next error

"Cannot implicitly convert type 'void' to 'object'"

Help me Confused | :confused:
AnswerRe: BackgroundWorker DTS SQL 2000 Pin
DaveyM6913-Mar-09 11:23
professionalDaveyM6913-Mar-09 11:23 
GeneralRe: BackgroundWorker DTS SQL 2000 Pin
rafaelht310813-Mar-09 11:36
rafaelht310813-Mar-09 11:36 
Question[Message Deleted] Pin
hkjghkj113-Mar-09 7:20
hkjghkj113-Mar-09 7:20 
AnswerRe: Transparent *.gif in PictureBox and Rotating the .gif within Pin
Xmen Real 13-Mar-09 7:31
professional Xmen Real 13-Mar-09 7:31 
General[Message Deleted] Pin
hkjghkj113-Mar-09 7:37
hkjghkj113-Mar-09 7:37 
GeneralRe: Transparent *.gif in PictureBox and Rotating the .gif within Pin
Xmen Real 13-Mar-09 7:42
professional Xmen Real 13-Mar-09 7:42 
Questioncharacter segmentation Pin
Swati Khanna13-Mar-09 7:20
Swati Khanna13-Mar-09 7:20 
QuestionRe: character segmentation Pin
led mike13-Mar-09 7:54
led mike13-Mar-09 7:54 
GeneralRe: character segmentation Pin
Xmen Real 13-Mar-09 8:07
professional Xmen Real 13-Mar-09 8:07 
AnswerRe: character segmentation Pin
CPallini13-Mar-09 8:11
mveCPallini13-Mar-09 8:11 
AnswerRe: character segmentation [modified] Pin
0x3c013-Mar-09 8:29
0x3c013-Mar-09 8:29 
GeneralRe: character segmentation Pin
Xmen Real 13-Mar-09 8:32
professional Xmen Real 13-Mar-09 8:32 
GeneralRe: character segmentation Pin
0x3c013-Mar-09 8:46
0x3c013-Mar-09 8:46 
Questiongetting http status code Pin
laziale13-Mar-09 6:49
laziale13-Mar-09 6:49 
AnswerRe: getting http status code Pin
led mike13-Mar-09 7:53
led mike13-Mar-09 7:53 
GeneralRe: getting http status code Pin
laziale13-Mar-09 8:07
laziale13-Mar-09 8:07 
Questiongeneric comboBox method Pin
ch0pper113-Mar-09 6:45
ch0pper113-Mar-09 6:45 

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.