Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
T

tsunsau717

@tsunsau717
About
Posts
8
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • GetChildAtPoint to get Control Out of Screen?
    T tsunsau717

    It is on the same form. The control hierarchy is like this: Form |-Groupbox A |---TextBox A | |-Groupbox B |---TextBox B However, the size of the Form can only show the Groupbox A. I have to scroll down in order to show another groupbox. Now I have the coordinate of Groupbox B and TextBox B, can I get the control TextBox B by its coordinate point when the screen is still showing GroupBox A??? Many Thanks!!

    .NET (Core and Framework) question

  • GetChildAtPoint to get Control Out of Screen?
    T tsunsau717

    Dear all, The function System.Windows.Forms.Control.GetChildAtPoint(Point pt) find control reference to the Control's Client Rectangle. However, I am looking for a Control that is out of screen. i.e. out of the Client Rectangle, but within the Display Rectangle. Is there any method for me to get that Control by a Coordinate point? Many Thanks.

    .NET (Core and Framework) question

  • GetChildAtPoint which is out of screen
    T tsunsau717

    Dear all, The function System.Windows.Forms.Control.GetChildAtPoint(Point pt) find control reference to the Control's Client Rectangle. However, I am looking for a Control that is out of screen. i.e. out of the Client Rectangle, but within the Display Rectangle. Is there any method for me to get that Control by a Coordinate point? Many Thanks.

    C# question

  • Check program running.
    T tsunsau717

    Thank You!!!!!:-D:-D:-D

    C# help question

  • Check Process Running?
    T tsunsau717

    I would like to check if any specific program, e.g. Excel, running. Can anyone here help me? Same effect as when upgrading IE, it will check if there is any IE running, if yes, it will warn the user to close all IE before continue. Thank You!!!:);)

    .NET (Core and Framework) help question

  • Check program running.
    T tsunsau717

    I would like to check if any specific program, e.g. Excel, running. Can anyone here help me? Same effect as when upgrading IE, it will check if there is any IE running, if yes, it will warn the user to close all IE before continue. Thank You!!!:)

    C# help question

  • Question about Casting and Inheritance
    T tsunsau717

    Actually the method f is not a member method of Shape, Square, Circle. It is static method of another class, which can takes "Shape" or "Square" or "Circle" as parameter. Actually, what I am doing now is: public static f(Shape s){ if (s is Square){ f((Square)s); } else if (s is Circle){ f((Circle)s); } } public static f(Square s){ MessageBox.Show("It is a Square"): } public static f(Circle s){ MessageBox.Show("It is a Circle"): } It works, but the problem is when there is a lot of derived class, the f(Shape c) method will be very bulky.

    C# question oop

  • Question about Casting and Inheritance
    T tsunsau717

    Suppose I have Class: 1) class Shape{} 2) class Square : Shape {} 3) class Circle : Shape {} and Method: 1) void f(Shape s){} 2) void f(Square s){} 3) void f(Circle c){} Now, I declare 3 variables: 1) Shape a1 = new Shape(); 2) Square a2 = new Square(); 3) Circle a3 = new Circle(); If I call f(a1), it will go to method 1. If I call f(a2), it will go to method 2. If I call f(a3), it will go to method 3. Right? But If I call f((Shape)a2), it will go to method 1. Is there anyway to make if I call f((Shape)a2), and it will go to method 2 directly?

    C# question oop
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups