Click here to Skip to main content
15,890,438 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: VSTO Outlook Addin with a winform Pin
tker9-Aug-07 14:30
tker9-Aug-07 14:30 
AnswerRe: VSTO Outlook Addin with a winform Pin
pnslcs10-Aug-07 2:38
pnslcs10-Aug-07 2:38 
QuestionNested MDI forms Pin
Aamir Dharani5-Aug-07 23:51
Aamir Dharani5-Aug-07 23:51 
AnswerRe: Nested MDI forms Pin
Dave Kreskowiak6-Aug-07 5:19
mveDave Kreskowiak6-Aug-07 5:19 
Questiontest Pin
ellllllllie3-Aug-07 5:20
ellllllllie3-Aug-07 5:20 
Questiontray icon Pin
dona jain3-Aug-07 3:40
dona jain3-Aug-07 3:40 
AnswerRe: tray icon Pin
Luc Pattyn3-Aug-07 5:31
sitebuilderLuc Pattyn3-Aug-07 5:31 
GeneralRe: tray icon Pin
dona jain3-Aug-07 19:40
dona jain3-Aug-07 19:40 
well...thanks but a m not able to implement his yet..ca u provide me with some code...here's my code or a dialog box now i want to make a tray icon for this..please provide help in coding for this...thanks

#include <windows.h>
#include "resource.h"
#include <cstdlib>
#include<atlstr.h>
#include <fstream>
#include<iostream>




//---------------------------------------------------------------------------
LPSTR lpString;
HWND hWnd;

LRESULT CALLBACK DlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
//---------------------------------------------------------------------------
INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow)
{
DialogBox(hInstance, MAKEINTRESOURCE(IDD_DLGFIRST),hWnd, reinterpret_cast<dlgproc>(DlgProc));
return FALSE;
}




//---------------------------------------------------------------------------
LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
{
TCHAR cPath[20];
TCHAR cUserName[20];
TCHAR cPassword[20];
switch(Msg)
{
case WM_INITDIALOG:
{
return TRUE;
}

case WM_COMMAND:
{
switch(wParam)
{
case IDOK:
{
size_t nLen;
GetDlgItemText(hWndDlg, IDC_EDIT1, cPath, 20);
nLen = strlen(cPath);
if (nLen == 0)
{
MessageBox(hWndDlg,"Please Enter SVN Path","Error",MB_ICONERROR);
break;
}
GetDlgItemText(hWndDlg, IDC_EDIT2, cUserName, 20);
nLen = strlen(cUserName);
if (nLen == 0)
{
MessageBox(hWndDlg,"Please Enter your user name","Error",MB_ICONERROR);
break;
}
GetDlgItemText(hWndDlg, IDC_EDIT3, cPassword, 20);
nLen = strlen(cPath);
if (nLen == 0)
{
MessageBox(hWndDlg,"Please Enter your Password ","Error",MB_ICONERROR);
break;
}
EndDialog(hWndDlg, 0);
std::ofstream file ("config.txt");
file << " SVN Path entered by user is -> "<<cpath <<="" std::endl;
="" file="" "="" svn="" user="" name="" entered="" by="" -="">" <<cusername <<="" std::endl;
="" file="" "="" svn="" password="" entered="" by="" user="" -="">"<
AnswerRe: tray icon Pin
Christian Graus3-Aug-07 14:54
protectorChristian Graus3-Aug-07 14:54 
QuestionClock on Windows Form? Pin
chand103-Aug-07 0:48
chand103-Aug-07 0:48 
AnswerRe: Clock on Windows Form? Pin
Luc Pattyn3-Aug-07 1:13
sitebuilderLuc Pattyn3-Aug-07 1:13 
AnswerRe: Clock on Windows Form? Pin
originSH3-Aug-07 2:24
originSH3-Aug-07 2:24 
JokeRe: Clock on Windows Form? Pin
Luc Pattyn3-Aug-07 5:33
sitebuilderLuc Pattyn3-Aug-07 5:33 
QuestionDialog box query Pin
dona jain2-Aug-07 2:54
dona jain2-Aug-07 2:54 
AnswerRe: Dialog box query Pin
originSH2-Aug-07 3:39
originSH2-Aug-07 3:39 
GeneralRe: Dialog box query Pin
dona jain2-Aug-07 3:59
dona jain2-Aug-07 3:59 
GeneralRe: Dialog box query Pin
originSH2-Aug-07 4:25
originSH2-Aug-07 4:25 
GeneralRe: Dialog box query Pin
toxcct2-Aug-07 5:43
toxcct2-Aug-07 5:43 
GeneralRe: Dialog box query Pin
Christian Graus2-Aug-07 20:14
protectorChristian Graus2-Aug-07 20:14 
JokeRe: Dialog box query Pin
toxcct2-Aug-07 21:20
toxcct2-Aug-07 21:20 
GeneralRe: Dialog box query Pin
Christian Graus2-Aug-07 21:27
protectorChristian Graus2-Aug-07 21:27 
AnswerRe: Dialog box query Pin
toxcct2-Aug-07 5:41
toxcct2-Aug-07 5:41 
GeneralRe: Dialog box query Pin
dona jain2-Aug-07 18:48
dona jain2-Aug-07 18:48 
GeneralRe: Dialog box query Pin
toxcct2-Aug-07 21:18
toxcct2-Aug-07 21:18 
AnswerRe: Dialog box query Pin
Christian Graus2-Aug-07 11:05
protectorChristian Graus2-Aug-07 11:05 

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.