Click here to Skip to main content
15,885,537 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting File Path Pin
OriginalGriff19-Aug-12 1:32
mveOriginalGriff19-Aug-12 1:32 
GeneralRe: Getting File Path Pin
Pete O'Hanlon19-Aug-12 1:52
mvePete O'Hanlon19-Aug-12 1:52 
AnswerRe: Getting File Path Pin
Pete O'Hanlon19-Aug-12 4:51
mvePete O'Hanlon19-Aug-12 4:51 
GeneralRe: Getting File Path ... foolishness Pin
Richard MacCutchan19-Aug-12 5:46
mveRichard MacCutchan19-Aug-12 5:46 
GeneralRe: Getting File Path ... foolishness Pin
Pete O'Hanlon19-Aug-12 5:53
mvePete O'Hanlon19-Aug-12 5:53 
GeneralRe: Getting File Path ... foolishness Pin
Richard MacCutchan19-Aug-12 6:01
mveRichard MacCutchan19-Aug-12 6:01 
GeneralRe: Getting File Path ... foolishness Pin
Pete O'Hanlon20-Aug-12 2:40
mvePete O'Hanlon20-Aug-12 2:40 
Questioncue banner not working Pin
Jassim Rahma17-Aug-12 4:22
Jassim Rahma17-Aug-12 4:22 
I am using this code to set watermark for textbox but watermark now showing with no error.

here is the code:

C#
// cue banner;
private const uint ECM_FIRST = 0x1500;
private const uint EM_SETCUEBANNER = ECM_FIRST + 1;

[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
private static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, uint wParam, [MarshalAs(UnmanagedType.LPWStr)] string lParam);


and in Form_Load:

C#
SendMessage(txtLoginID.Handle, EM_SETCUEBANNER, 0, "login");
SendMessage(txtPassword.Handle, EM_SETCUEBANNER, 0, "login now");
SendMessage(txtPIN.Handle, EM_SETCUEBANNER, 0, "wow");
SendMessage(txtLoginID.Handle, EM_SETCUEBANNER, 0, "login");
SendMessage(txtPassword.Handle, EM_SETCUEBANNER, 0, "login now");
SendMessage(txtPIN.Handle, EM_SETCUEBANNER, 0, "wow");

AnswerRe: cue banner not working Pin
Ravi Bhavnani17-Aug-12 4:41
professionalRavi Bhavnani17-Aug-12 4:41 
AnswerRe: cue banner not working Pin
Wes Aday17-Aug-12 4:51
professionalWes Aday17-Aug-12 4:51 
GeneralRe: cue banner not working Pin
Shameel17-Aug-12 5:05
professionalShameel17-Aug-12 5:05 
GeneralRe: cue banner not working Pin
Jassim Rahma17-Aug-12 5:06
Jassim Rahma17-Aug-12 5:06 
GeneralRe: cue banner not working Pin
Wes Aday17-Aug-12 5:27
professionalWes Aday17-Aug-12 5:27 
AnswerRe: cue banner not working Pin
Richard Andrew x6417-Aug-12 8:04
professionalRichard Andrew x6417-Aug-12 8:04 
GeneralRe: cue banner not working Pin
Wes Aday17-Aug-12 8:28
professionalWes Aday17-Aug-12 8:28 
AnswerRe: cue banner not working Pin
Richard Andrew x6417-Aug-12 8:18
professionalRichard Andrew x6417-Aug-12 8:18 
QuestionTuples in Functions Pin
computerpublic17-Aug-12 3:52
computerpublic17-Aug-12 3:52 
AnswerRe: Tuples in Functions Pin
Wayne Gaylard17-Aug-12 4:37
professionalWayne Gaylard17-Aug-12 4:37 
GeneralRe: Tuples in Functions Pin
harold aptroot17-Aug-12 8:16
harold aptroot17-Aug-12 8:16 
AnswerRe: Tuples in Functions Pin
Ravi Bhavnani17-Aug-12 4:39
professionalRavi Bhavnani17-Aug-12 4:39 
AnswerRe: Tuples in Functions Pin
DaveyM6917-Aug-12 22:21
professionalDaveyM6917-Aug-12 22:21 
GeneralRe: Tuples in Functions Pin
BillWoodruff18-Aug-12 7:17
professionalBillWoodruff18-Aug-12 7:17 
GeneralRe: Tuples in Functions Pin
DaveyM6918-Aug-12 8:09
professionalDaveyM6918-Aug-12 8:09 
AnswerRe: Tuples in Functions Pin
WebMaster18-Aug-12 5:20
WebMaster18-Aug-12 5:20 
GeneralRe: Tuples in Functions Pin
DaveyM6918-Aug-12 8:15
professionalDaveyM6918-Aug-12 8:15 

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.