Click here to Skip to main content
15,887,027 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Update DataGridView Cell value Pin
Johan Hakkesteegt5-Aug-09 2:00
Johan Hakkesteegt5-Aug-09 2:00 
AnswerRe: Update DataGridView Cell value Pin
dan!sh 5-Aug-09 2:20
professional dan!sh 5-Aug-09 2:20 
GeneralRe: Update DataGridView Cell value Pin
Jay Royall5-Aug-09 2:50
Jay Royall5-Aug-09 2:50 
QuestionSql Server 2008 - Accessing out of Domain ? Pin
Paramu19735-Aug-09 1:00
Paramu19735-Aug-09 1:00 
AnswerRe: Sql Server 2008 - Accessing out of Domain ? Pin
Tom Deketelaere5-Aug-09 1:20
professionalTom Deketelaere5-Aug-09 1:20 
GeneralRe: Sql Server 2008 - Accessing out of Domain ? Pin
Paramu19735-Aug-09 2:01
Paramu19735-Aug-09 2:01 
GeneralRe: Sql Server 2008 - Accessing out of Domain ? Pin
Tom Deketelaere5-Aug-09 2:09
professionalTom Deketelaere5-Aug-09 2:09 
QuestionPassing credentials from job to application Pin
Johan Hakkesteegt4-Aug-09 21:55
Johan Hakkesteegt4-Aug-09 21:55 
Hi,

I have a console application that gathers order data, and creates and sends email messages to sales people.
I run the application in a scheduled task, and the smtp credentials are simply hard coded:
Dim smtp As New System.Net.Mail.SmtpClient("MySMTPServer.MyDomain.com")
smtp.Credentials = New System.Net.NetworkCredential("MyAccount", "MyPassword", "MyDomain")

I run the job under my own account (with power-user rights), because I have no administrator rights to the domain.

What I am thinking about is, that hard coded credentials are ofcourse not ideal to say the least.

My question is, would it be possible to somehow pass the credentials with which the scheduled task is run, to the application?

Any insights appreciated,

Johan

My advice is free, and you may get what you paid for.

AnswerRe: Passing credentials from job to application Pin
Mycroft Holmes4-Aug-09 22:28
professionalMycroft Holmes4-Aug-09 22:28 
GeneralRe: Passing credentials from job to application Pin
Johan Hakkesteegt4-Aug-09 22:31
Johan Hakkesteegt4-Aug-09 22:31 
GeneralRe: Passing credentials from job to application Pin
Mycroft Holmes4-Aug-09 23:10
professionalMycroft Holmes4-Aug-09 23:10 
GeneralRe: Passing credentials from job to application Pin
Johan Hakkesteegt4-Aug-09 23:17
Johan Hakkesteegt4-Aug-09 23:17 
QuestionSend Keys to another application (Hard one) Pin
Kobi_Z4-Aug-09 18:37
Kobi_Z4-Aug-09 18:37 
AnswerRe: Send Keys to another application (Hard one) Pin
dan!sh 4-Aug-09 19:07
professional dan!sh 4-Aug-09 19:07 
GeneralRe: Send Keys to another application (Hard one) Pin
Kobi_Z4-Aug-09 21:53
Kobi_Z4-Aug-09 21:53 
GeneralNOT WORKING Pin
Kobi_Z5-Aug-09 18:40
Kobi_Z5-Aug-09 18:40 
GeneralRe: Send Keys to another application (Hard one) Pin
Kobi_Z6-Aug-09 6:48
Kobi_Z6-Aug-09 6:48 
QuestionMy First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
William Ralls4-Aug-09 7:01
William Ralls4-Aug-09 7:01 
AnswerRe: My First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
nlarson114-Aug-09 7:23
nlarson114-Aug-09 7:23 
AnswerRe: My First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
N a v a n e e t h4-Aug-09 7:43
N a v a n e e t h4-Aug-09 7:43 
GeneralRe: My First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
William Ralls4-Aug-09 9:00
William Ralls4-Aug-09 9:00 
GeneralRe: My First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
Luc Pattyn4-Aug-09 15:00
sitebuilderLuc Pattyn4-Aug-09 15:00 
AnswerDataGridView Pin
David Mujica4-Aug-09 8:04
David Mujica4-Aug-09 8:04 
AnswerRe: My First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
Christian Graus4-Aug-09 13:24
protectorChristian Graus4-Aug-09 13:24 
QuestionHow to check if TCP/IP connection is active with a device Pin
sohaib_a4-Aug-09 5:26
sohaib_a4-Aug-09 5:26 

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.