Click here to Skip to main content
15,902,492 members
Home / Discussions / C#
   

C#

 
AnswerRe: draw the shapes on top of the controls... Pin
rah_sin14-Feb-07 19:39
professionalrah_sin14-Feb-07 19:39 
GeneralRe: draw the shapes on top of the controls... Pin
sathishtl00714-Feb-07 19:45
sathishtl00714-Feb-07 19:45 
Questionerror on adding a new form Pin
Nekshan14-Feb-07 19:18
Nekshan14-Feb-07 19:18 
AnswerRe: error on adding a new form Pin
virendra patel14-Feb-07 19:23
virendra patel14-Feb-07 19:23 
Generalhi virendra Pin
Nekshan14-Feb-07 20:44
Nekshan14-Feb-07 20:44 
QuestionHow to go to an specific line? Pin
hiremath7114-Feb-07 18:58
hiremath7114-Feb-07 18:58 
QuestionHelp On Processes Pin
nelluru14-Feb-07 18:56
nelluru14-Feb-07 18:56 
AnswerRe: Help On Processes Pin
stancrm14-Feb-07 20:00
stancrm14-Feb-07 20:00 
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;

class Program
{
  [DllImport("User32", EntryPoint = "GetWindowPlacement")]
  private static extern bool GetWindowPlacement(IntPtr hWnd, [In] ref WINDOWPLACEMENT lpwndpl);

  private struct POINTAPI
  {
    public int x;
    public int y;
  }

  private struct RECT
  {
    public int left;
    public int top;
    public int right;
    public int bottom;
  }

  private struct WINDOWPLACEMENT
  {
    public int length;
    public int flags;
    public int showCmd;
    public POINTAPI ptMinPosition;
    public POINTAPI ptMaxPosition;
    public RECT rcNormalPosition;
  }

  static void Main(string[] args)
  {
    Process[] processes = Process.GetProcessesByName("notepad");
    IntPtr hWnd = processes[0].MainWindowHandle;

    if (hWnd != IntPtr.Zero)
    {
      WINDOWPLACEMENT placement = new WINDOWPLACEMENT();
      placement.length = Marshal.SizeOf(placement);
      GetWindowPlacement(hWnd, ref placement);

      Trace.WriteLine(placement);
    }
  }
}

Questioncalling method Pin
justintimberlake14-Feb-07 18:37
justintimberlake14-Feb-07 18:37 
AnswerRe: calling method Pin
Tamimi - Code14-Feb-07 19:06
Tamimi - Code14-Feb-07 19:06 
AnswerRe: calling method Pin
rah_sin14-Feb-07 19:07
professionalrah_sin14-Feb-07 19:07 
Questionneed to convert some VB variable into C# Pin
M Riaz Bashir14-Feb-07 18:34
M Riaz Bashir14-Feb-07 18:34 
AnswerRe: need to convert some VB variable into C# Pin
Nidhi.s14-Feb-07 18:47
Nidhi.s14-Feb-07 18:47 
GeneralRe: need to convert some VB variable into C# Pin
M Riaz Bashir14-Feb-07 18:50
M Riaz Bashir14-Feb-07 18:50 
GeneralRe: need to convert some VB variable into C# Pin
Dave Doknjas15-Feb-07 13:10
Dave Doknjas15-Feb-07 13:10 
Questionname of Language Pin
M Riaz Bashir14-Feb-07 18:21
M Riaz Bashir14-Feb-07 18:21 
AnswerRe: name of Language Pin
sharpiesharpie14-Feb-07 18:27
sharpiesharpie14-Feb-07 18:27 
GeneralRe: name of Language Pin
M Riaz Bashir14-Feb-07 18:36
M Riaz Bashir14-Feb-07 18:36 
GeneralRe: name of Language [modified] Pin
blackjack215014-Feb-07 22:34
blackjack215014-Feb-07 22:34 
QuestionString to Byte Conversion Pin
DavidMcP14-Feb-07 17:29
DavidMcP14-Feb-07 17:29 
AnswerRe: String to Byte Conversion Pin
stancrm14-Feb-07 20:09
stancrm14-Feb-07 20:09 
QuestionI am confiused and need your help with Windows Installer Pin
Khoramdin14-Feb-07 15:41
Khoramdin14-Feb-07 15:41 
AnswerRe: I am confiused and need your help with Windows Installer Pin
Syed Shahid Hussain14-Feb-07 18:27
Syed Shahid Hussain14-Feb-07 18:27 
QuestionLogin Class for C# Pin
allan.gagnon14-Feb-07 15:27
allan.gagnon14-Feb-07 15:27 
AnswerRe: Login Class for C# Pin
Christian Graus14-Feb-07 16:56
protectorChristian Graus14-Feb-07 16:56 

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.