setbounds

Animating form resize in VB.NET

I have a form positioned slightly above the taskbar/system tray in the bottom right corner of my desktop window. It's sort of like a pop-up notification. The notification itself looks great, but there's a button on it which resizes the form up, animating the sizing in increments of 5px whilst keeping it's position relative to the botto...

Showing a Windows form on a secondary monitor?

I'm trying to set a Windows Form on secondary monitor, as follows: private void button1_Click(object sender, EventArgs e) { MatrixView n = new MatrixView(); Screen[] screens = Screen.AllScreens; setFormLocation(n, screens[1]); n.Show(); } private void setFormLocation(Form form, Screen scr...

setbounds on google maps api v3

I'm trying to set the bounds of a map fitbounds doesnt work because it puts some space around the bounds therefore doing {{{map.fitBounds(map.getBounds())}}} a few times will quickly zoom the map out I need to be able to do {{{map.setBounds(map.getBounds())}}} and for nothing to happen please note I am using v3 of the api and t...

Set Controls with arbitrary positions on CTabItem

Hi Guyz, I am new to SWT, and I need to set the controls positions arbitrary on CTabItem. I've used the following code, but it seems that it had no positioning effect, it just add the component to (0, 0) Label userName = new Label(folder, SWT.NONE); userName.setText("username"); userName.setBounds(10, 200, 200, 50); item.setControl(us...

How to place JButtons at a certain coordinate in a JFrame

Hi, I want to know how to place JButtons at a particular coordinate in the JFrame. All day I have seen layouts. This does not suit my purpose. I would prefer something like setBounds. Rumour has it that it does not work but setLocation does. I tried it but, the program disregards the setLocation line and sets it to a Layout. CODE i...

Is it possible to set bounds for the view before it is shown

-(void)CallingView2{ SettingsViewController *aSettingsView = [[SettingsViewController alloc] initWithNibName:@"Settings" bundle:nil]; [self setSettingsViewController:aSettingsView]; [aSettingsView release]; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:1.0]; //setting the animation ...