Click here to Skip to main content
15,892,674 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# GDI+ simulation of inclined plane Pin
Member 1268837716-Aug-16 8:10
Member 1268837716-Aug-16 8:10 
GeneralRe: C# GDI+ simulation of inclined plane Pin
Member 1268837716-Aug-16 8:18
Member 1268837716-Aug-16 8:18 
GeneralRe: C# GDI+ simulation of inclined plane Pin
OriginalGriff16-Aug-16 8:35
mveOriginalGriff16-Aug-16 8:35 
GeneralRe: C# GDI+ simulation of inclined plane Pin
Member 1268837716-Aug-16 9:05
Member 1268837716-Aug-16 9:05 
GeneralRe: C# GDI+ simulation of inclined plane Pin
OriginalGriff16-Aug-16 9:22
mveOriginalGriff16-Aug-16 9:22 
GeneralRe: C# GDI+ simulation of inclined plane Pin
Member 1268837717-Aug-16 0:58
Member 1268837717-Aug-16 0:58 
GeneralRe: C# GDI+ simulation of inclined plane Pin
OriginalGriff17-Aug-16 1:35
mveOriginalGriff17-Aug-16 1:35 
GeneralRe: C# GDI+ simulation of inclined plane Pin
Mycroft Holmes16-Aug-16 14:26
professionalMycroft Holmes16-Aug-16 14:26 
GeneralRe: C# GDI+ simulation of inclined plane Pin
Gerry Schmitz16-Aug-16 6:42
mveGerry Schmitz16-Aug-16 6:42 
AnswerRe: C# GDI+ simulation of inclined plane Pin
Gerry Schmitz16-Aug-16 6:30
mveGerry Schmitz16-Aug-16 6:30 
GeneralRe: C# GDI+ simulation of inclined plane Pin
Member 1268837716-Aug-16 6:40
Member 1268837716-Aug-16 6:40 
AnswerRe: C# GDI+ simulation of inclined plane Pin
patbob18-Aug-16 11:35
patbob18-Aug-16 11:35 
QuestionC#: what is the usage of virtual keyword in Entity Framework Pin
Tridip Bhattacharjee16-Aug-16 2:32
professionalTridip Bhattacharjee16-Aug-16 2:32 
AnswerRe: C#: what is the usage of virtual keyword in Entity Framework Pin
Richard MacCutchan16-Aug-16 3:02
mveRichard MacCutchan16-Aug-16 3:02 
AnswerRe: C#: what is the usage of virtual keyword in Entity Framework Pin
Richard Deeming16-Aug-16 4:57
mveRichard Deeming16-Aug-16 4:57 
AnswerRe: C#: what is the usage of virtual keyword in Entity Framework Pin
Gerry Schmitz16-Aug-16 6:01
mveGerry Schmitz16-Aug-16 6:01 
QuestionHow to get Windows explorer’s position using C#? Pin
srikrishnathanthri15-Aug-16 22:10
srikrishnathanthri15-Aug-16 22:10 
AnswerRe: How to get Windows explorer’s position using C#? Pin
OriginalGriff15-Aug-16 22:27
mveOriginalGriff15-Aug-16 22:27 
This probably isn't going to work quite the way you want, due to the way Windows Explorer works - it doesn't always open a new top-level process for an instance. At the moment I have two Windows Explorer processes: one with a single Main window (and the title is the folder name) and one with two sub windows (and it's title is an empty string). How I got there? Depends on how you open the window. The "one off" one was opened by an app, the other two were opened from the task bar...
But you probably want to start here:
C#
Process[] all = Process.GetProcesses();
foreach (Process p in all)
    {
    string name = p.ProcessName;
    IntPtr hWnd = p.MainWindowHandle;
    string title = p.MainWindowTitle;
    if (p.ProcessName.Contains("explorer"))
        {
        Console.WriteLine("{0}:{1}", p.ProcessName, p.MainWindowTitle);
        }
    }
The handle should give you the location of the main window (but you may need to do some delving to find "combined" windows)
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

GeneralRe: How to get Windows explorer’s position using C#? Pin
srikrishnathanthri15-Aug-16 23:00
srikrishnathanthri15-Aug-16 23:00 
AnswerRe: How to get Windows explorer’s position using C#? Pin
Richard Deeming16-Aug-16 2:06
mveRichard Deeming16-Aug-16 2:06 
QuestionAutocomplete with any character in TextBox C# Pin
ThabetMicrosoft14-Aug-16 23:21
ThabetMicrosoft14-Aug-16 23:21 
AnswerRe: Autocomplete with any character in TextBox C# Pin
Pete O'Hanlon14-Aug-16 23:23
mvePete O'Hanlon14-Aug-16 23:23 
GeneralRe: Autocomplete with any character in TextBox C# Pin
ThabetMicrosoft14-Aug-16 23:35
ThabetMicrosoft14-Aug-16 23:35 
GeneralRe: Autocomplete with any character in TextBox C# Pin
Pete O'Hanlon14-Aug-16 23:38
mvePete O'Hanlon14-Aug-16 23:38 
Questionform java to c# Pin
Sikandar Javid14-Aug-16 19:52
Sikandar Javid14-Aug-16 19:52 

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.