Jump to content
Xtreme .Net Talk

Night

Members
  • Posts

    13
  • Joined

  • Last visited

About Night

  • Birthday 05/07/1978

Personal Information

  • Occupation
    Programmer
  • .NET Preferred Language
    C#

Night's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I have a trick, that is: - Override the WndProc on your control that you want to investigate - Print to console every message it received. (use the msg.ToString()) - So you will know WHEN and WHAT messages are send to the control (include msg value, lparam, rparam...) You'll see there are a lot of messages :)
  2. Ctrl-Alt-Del is the key combination that ONLY Window can receive (for security reasons). So I don't think you can disable it
  3. Thanks, it work for me ;)
  4. To calculate the viewable area of the list view, there is an API function but I've forgotten it
  5. I've found the solution for this Override the WndProc function ( it is available for any control) Here we can catch every message window pass to the control. Catch WM_SCROLL to know when the list view is scrolling
  6. The x-coordinate of the cursor is the low-order word, and the y-coordinate of the cursor is the high-order word. Window has LOWORD and HIWORD macros for this. But it's for C++ How can I do this in C# I catch this message using overiden WndProc method.
  7. Make splash form may sound easy but its not. I need a loading form that can: - Display on screen as a modal form to prevent user from interacting with UI when the program is busy (load something - it take time) - When display that form, we're still able to run loading code - That form can be close any time - May be in the future: display progress bar on the loading form I've tried some thread things and also meet a lot of thread bugs ;)
  8. I have implement it like this: - Make a DLL - Expose method like: Open form A / Open Form B - If you need form interaction --> Open other forms from form A/B (in DLL code) and so on...(I mean form A/B is some start points...)
  9. My thick client need to connect to a webservice. It must handle 2 case: Normal connection and SSL connection (https). In case of SSL, I have a trick: run the https:// link in IE --> IE will import the certificate to client. --> The thick client will connect OK to SSL But I'm looking for another solution that doesn't have to use IE... (I mean import by code or something...) Anyone know this pls help :)
  10. - Read the text line by line (TextReader.ReadLine) - Parse each line using .Split method of String class - If need to store the server name, user ArrayList
  11. The list view only expose the Scrollable property, which enable/disable the scroll bar. It doesn't support: - Scroll event - Viewable area of the list view when scrolling. My problem is I make a customize listview, when I double click on a "cell", a text box is put on the list view to allow edit cell's value. But when editing the text box, user can scroll the list view left-right, but the text box stay at the same place so it looks funny. Anyone have the same problem like me?
  12. Ok, infact in my code I'm using SelectedIndexChanged event too. But it's when the tab HAS changed. I mean it doesn't have an event like SelectedIndexChanging or TabPageChanging...
  13. I agree with MIZ. I read on the FAQ site, we can use Validating event to prevent user to change tab. But the problem is when user click Cancel and on the tab there are some error input data. So the Validation run and prevent them from close the form --> they must correct the data to quit although they don't want to modify them any more (cause they click Cancel) I find some time .NET framwork is very inconvenient Anyway, it's my problem too. Any suggestion?
×
×
  • Create New...