Click here to Skip to main content
15,900,258 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VS2015 - MsFlexgrid not displaying when building form Pin
Denis Oxon28-Jan-16 22:11
Denis Oxon28-Jan-16 22:11 
GeneralRe: VS2015 - MsFlexgrid not displaying when building form Pin
Mycroft Holmes28-Jan-16 22:56
professionalMycroft Holmes28-Jan-16 22:56 
GeneralRe: VS2015 - MsFlexgrid not displaying when building form Pin
Denis Oxon28-Jan-16 23:17
Denis Oxon28-Jan-16 23:17 
GeneralRe: VS2015 - MsFlexgrid not displaying when building form Pin
Mycroft Holmes28-Jan-16 23:20
professionalMycroft Holmes28-Jan-16 23:20 
GeneralRe: VS2015 - MsFlexgrid not displaying when building form Pin
Denis Oxon29-Jan-16 2:11
Denis Oxon29-Jan-16 2:11 
GeneralRe: VS2015 - MsFlexgrid not displaying when building form Pin
Dave Kreskowiak29-Jan-16 2:25
mveDave Kreskowiak29-Jan-16 2:25 
QuestionCalling BCP from .net on Windows 2012 Pin
byka28-Jan-16 7:15
byka28-Jan-16 7:15 
AnswerRe: Calling BCP from .net on Windows 2012 Pin
Dave Kreskowiak29-Jan-16 14:56
mveDave Kreskowiak29-Jan-16 14:56 
First, you don't need the RunAs verb line at all.

Next, the command line you build is this:
cmd bcp something in something -m ...

That command line is wrong for CMD.

Next, you don't even run CMD. Your Filename line should be "bcp". The Arguments should be almost everything you already have in existing statement.
ps.StartInfo.FileName = "bcp"
ps.StartInfo.Arguments = String.Format("{0} in {1} -m {2} -f {3}...", DbTable, SourceFile, MaxErrors, FMTFile, ...
ps.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
ps.Start()
ps.WiatForExit()

On top of everything else, in order for the Hidden window option to work you have to change the UseShellExecute property to True.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

QuestionHow to print a full DataGridView (Urgent) Pin
Dorsaf Ouersighni25-Jan-16 22:15
Dorsaf Ouersighni25-Jan-16 22:15 
GeneralRe: How to print a full DataGridView (Urgent) Pin
Sascha Lefèvre25-Jan-16 22:40
professionalSascha Lefèvre25-Jan-16 22:40 
GeneralRe: How to print a full DataGridView (Urgent) Pin
Dorsaf Ouersighni25-Jan-16 22:52
Dorsaf Ouersighni25-Jan-16 22:52 
GeneralRe: How to print a full DataGridView (Urgent) Pin
Sascha Lefèvre25-Jan-16 23:00
professionalSascha Lefèvre25-Jan-16 23:00 
GeneralRe: How to print a full DataGridView (Urgent) Pin
Dorsaf Ouersighni25-Jan-16 23:33
Dorsaf Ouersighni25-Jan-16 23:33 
GeneralRe: How to print a full DataGridView (Urgent) Pin
Sascha Lefèvre26-Jan-16 0:06
professionalSascha Lefèvre26-Jan-16 0:06 
GeneralRe: How to print a full DataGridView (Urgent) Pin
Dorsaf Ouersighni26-Jan-16 1:36
Dorsaf Ouersighni26-Jan-16 1:36 
GeneralRe: How to print a full DataGridView (Urgent) Pin
Sascha Lefèvre26-Jan-16 2:03
professionalSascha Lefèvre26-Jan-16 2:03 
GeneralRe: How to print a full DataGridView (Urgent) Pin
Dorsaf Ouersighni26-Jan-16 2:44
Dorsaf Ouersighni26-Jan-16 2:44 
GeneralRe: How to print a full DataGridView (Urgent) Pin
Sascha Lefèvre26-Jan-16 4:01
professionalSascha Lefèvre26-Jan-16 4:01 
GeneralRe: How to print a full DataGridView (Urgent) Pin
Dorsaf Ouersighni26-Jan-16 4:36
Dorsaf Ouersighni26-Jan-16 4:36 
GeneralRe: How to print a full DataGridView (Urgent) Pin
Sascha Lefèvre26-Jan-16 4:45
professionalSascha Lefèvre26-Jan-16 4:45 
GeneralRe: How to print a full DataGridView (Urgent) Pin
Sascha Lefèvre26-Jan-16 5:05
professionalSascha Lefèvre26-Jan-16 5:05 
GeneralRe: How to print a full DataGridView (Urgent) Pin
Dorsaf Ouersighni26-Jan-16 21:04
Dorsaf Ouersighni26-Jan-16 21:04 
GeneralRe: How to print a full DataGridView (Urgent) Pin
Jörgen Andersson26-Jan-16 22:52
professionalJörgen Andersson26-Jan-16 22:52 
GeneralRe: How to print a full DataGridView (Urgent) Pin
Dorsaf Ouersighni27-Jan-16 2:39
Dorsaf Ouersighni27-Jan-16 2:39 
GeneralRe: How to print a full DataGridView (Urgent) Pin
Jörgen Andersson27-Jan-16 3:22
professionalJörgen Andersson27-Jan-16 3: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.