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
H

Hans Ruck

@Hans Ruck
About
Posts
575
Topics
151
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • System timezone
    H Hans Ruck

    Thank you Richard. But try this and you will see what I mean:

    TimeZone tz = Calendar.getInstance().getTimeZone();
    System.out.println(tz.getDisplayName());
    System.out.println(tz.getID());

    tz = Calendar.getInstance().getTimeZone(); // breakpoint here, stop, change the system time zone and then continue running
    System.out.println(tz.getDisplayName());
    System.out.println(tz.getID());

    The time zone is set at the beginning of the current JVM process. It is subsequently detached from the system time zone and it sadly seems that there is no orthodox way to reattach it...

    Bogdan Rechi.

    Java question

  • System timezone
    H Hans Ruck

    Hi, Is there any way to read the current time zone of the operating system? I need to check it to see if it has been updated. I have to do this every minute, without restarting the application and without launching an external process. Thank you very much for your attention.

    Java question

  • jQuery not working
    H Hans Ruck

    Thank you and Shahriar for the answers. There is nothing special with the source code and it is even located in the same directory as the jQuery. I think it is just related to the way Chrome functions, since it works as expected in the incognito mode. Here it is a fragment (relevant, I hope): //... </style> <script type="text/javascript" src="jquery-1.5.min.js"></script> <script type="text/javascript"> var x = 10; $(window).load( // error here, $ unknown function() { console.info("jquery loaded"); testLoad(); }); //...

    Bogdan Rechi.

    JavaScript javascript html windows-admin help question

  • jQuery not working
    H Hans Ruck

    Hello all, I am using the Chrome browser to run a simple html test page containing jQuery code. If I load it from the disk path, it works as expected. If, instead, I use the IIS, then it gives the $ is not defined error. Funny enough, using the incognito mode makes it work :wtf: Any idea about what could be wrong here?

    Bogdan Rechi.

    JavaScript javascript html windows-admin help question

  • Array from JavaScript
    H Hans Ruck

    :-D Well, it seems that it didn't cross my mind... Anyway, assuming that I do that, how should I interpret the answer on the .NET side? Chances are to get some COM wrappers of an interface I don't know. That's what I'm looking for, the appropriate interface to communicate through.

    Bogdan.

    C# javascript data-structures question

  • Array from JavaScript
    H Hans Ruck

    Hi all, Any idea about how could I return an array from the JavaScript code of a WebBrowser control? In another words: returning an array from a call of Document.InvokeScript. Thank you.

    Bogdan.

    C# javascript data-structures question

  • Debugging a getter
    H Hans Ruck

    Hi, I am using the following code for testing purposes:

    public class VariousTests
    {
    	public static void Main(string\[\] args)
    	{
    		AClass c = new AClass();
    		int y = c.DemandSupplyMatrix\[0, 0\]; // breakpoint 2
    	}
    }
    
    class AClass
    {
    	private int\[,\] \_aMatrix = null;
    	public int\[,\] DemandSupplyMatrix
    	{
    		get
    		{
    			if (\_aMatrix == null)
    				\_aMatrix = new int\[9, 4\];
    
    			return \_aMatrix; // breakpoint 1
    		}
    	}
    }
    

    I run it until I hit breakpoint 2 and I expect to see DemandSupplyMatrix being null in the debugger. Instead, it appears to have been already instantiated, and I have never hit breakpoint 1... I really need to debug the getter but it seems that I have no chance. Is this normal or am I missing something?

    Bogdan.

    C# debugging testing beta-testing question

  • Project of component at design time
    H Hans Ruck

    Do you know how can I get the corresponding project of a custom component at design time? For example: a custom list box resides in a form which belongs to a project. I need to access that project, from inside of the listbox, at design time. Thank you.

    Bogdan.

    C# question design tutorial

  • Deleted VS component
    H Hans Ruck

    Thank you for the reply. I need a design time solution, independent of the container form. Trying the second solution didn't work. The Dispose is called also when the form is closed during the design time.

    Bogdan.

    C# visual-studio csharp design question

  • Deleted VS component
    H Hans Ruck

    Hi, Is there a way to determine that a custom Visual Studio component has been deleted from a form at design time? I am currently working on such a component.

    online

    C# visual-studio csharp design question

  • Profile Image
    H Hans Ruck

    It's ok now. Thank you :)

    Site Bugs / Suggestions com tools question

  • Profile Image
    H Hans Ruck

    I cannot see my profile image: http://www.codeproject.com/script/Membership/Profiles.aspx?mid=27774[^]. I have updated it and refreshed the page immediately thereafter.

    Site Bugs / Suggestions com tools question

  • Toolbar button from mouse position
    H Hans Ruck

    Hi, I am writing a Windows Forms application. Is there any method of finding the toolbar button currently under the mouse cursor? It seems that the button objects are not Control (class) derived...


    "la dolce ossessione degli ultimi suoi giorni tristi, Venezia, la vende ai turisti"

    rechi

    C# winforms com question

  • Click outside form
    H Hans Ruck

    N a v a n e e t h wrote:

    Do you mean the modal window ?

    No, the configuration is: main form -> modal child -> modeless child, and I am clicking outside the modeless, outside the modal, and inside the main form. I would like to intercept the click and make the modeless disappear. It's a kind of tooltip :)


    "la dolce ossessione degli ultimi suoi giorni tristi, Venezia, la vende ai turisti"

    rechi

    C# com question

  • Click outside form
    H Hans Ruck

    N a v a n e e t h wrote:

    Why do you want this ?

    I want to destroy the child. I have tried by calling the Show method but it fails when a modal child creates a modeless child and the user clicks on the main form :(


    "la dolce ossessione degli ultimi suoi giorni tristi, Venezia, la vende ai turisti"

    rechi

    C# com question

  • Click outside form
    H Hans Ruck

    Hi, From the main form of a Windows application I am creating a modal dialog (using ShowDialog). Is there any way I can detect when the user clicks outside the child form? It flashes a bit so I think it should have some sort of event behind. I have intercepted Deactivate but it seems that it's not the one.


    "la dolce ossessione degli ultimi suoi giorni tristi, Venezia, la vende ai turisti"

    rechi

    C# com question

  • HelpRequested event
    H Hans Ruck

    OK, thank you. It's better this way rather than not firing anything at all... :|


    "la dolce ossessione degli ultimi suoi giorni tristi, Venezia, la vende ai turisti"

    rechi

    C# com design help question

  • HelpRequested event
    H Hans Ruck

    There is nothing special with the case:

    private void button1\_HelpRequested(object sender, HelpEventArgs hlpevent)
    {
    	MessageBox.Show("ok");
    }
    
    this.button1.HelpRequested += new System.Windows.Forms.HelpEventHandler(this.button1\_HelpRequested);
    

    I tested it on both of the frameworks (1.1 and 2.0) and still with the same result.


    "la dolce ossessione degli ultimi suoi giorni tristi, Venezia, la vende ai turisti"

    rechi

    C# com design help question

  • HelpRequested event
    H Hans Ruck

    I have no idea :confused: Are you using the 2.0 Framework?


    "la dolce ossessione degli ultimi suoi giorni tristi, Venezia, la vende ai turisti"

    rechi

    C# com design help question

  • HelpRequested event
    H Hans Ruck

    Thank you for the answer. Just set the Enabled property of the button to false...


    "la dolce ossessione degli ultimi suoi giorni tristi, Venezia, la vende ai turisti"

    rechi

    C# com design help question
  • Login

  • Don't have an account? Register

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