Questions tagged [mainwindow]
157 questions
2
votes
1 answer
WPF and C#: Accessing, referencing and setting value to control properties from other class
A really simple setup - Visual Studio 2010's default new WPF project, with MainWindow and App classes and XAML. On MainWindow there's only a simple control, a texbox, let's call it TB.
All I'm trying to do is access, read and modify TB's properties…

Gabe
- 630
- 1
- 9
- 25
2
votes
1 answer
How to prevent Delphi MainForm to show when a file dialog is showing?
My application has many forms, there is also one more important form, that is the main form, the behaviour is in general ok but in same cases (for example when I open a file dialog from a subform) the beahviour is: subform is hidden and mainform is…

UnDiUdin
- 14,924
- 39
- 151
- 249
2
votes
1 answer
wpf application not showing mainwindow anymore
My application builds and runs fine. I get an icon in the taskbar showing that the window exists, but it never shows. I call StartupUri="MainWindow.Xaml" from app.xaml and mainwindow just contains some functions and InitializeComponent(). When…

nicky
- 268
- 2
- 5
- 13
2
votes
1 answer
Emulate mouse events with PostMessage without gaining focus (WINAPI)
I emulated the mouse events using PostMessage and tested on the notepad application.
I don't want to gain focus of the notepad application by sending mouse events.
The events are received only if I use the ChildWindow of the notepad (ie the white…

Laetitia
- 21
- 1
2
votes
2 answers
How can I recreate a UIView after I have released it?
In my MainWindow.xib I have many view controllers. Some of which are displayed as Modal views, and others are simply inserted. I am concerned with possible poor memory management because of the fact that I am not releasing any of the views that I…

Jesse Stewart
- 21
- 1
2
votes
2 answers
iOS 8 - View is not resizing full screen
I have old code using the MainWindow.xib, below iOS 7 everything works fine but in iOS 8 its leaving some bottom area.
Attaching image -
Please suggest anyone, how can i fix this.

San007
- 762
- 1
- 9
- 30
2
votes
1 answer
C# WPF Subscribe to Event in another Class fired from a UserControl
I have read through a lot of articles to resolve this problem, but I can't get this to work.
The Situation:
I have a WPF MainWindow where I am loading UserControls into it.
The Mainwindow should listen to an EventHandler in a Class called…

Tom
- 55
- 6
2
votes
1 answer
Thread invoke the main window?
So basically I have a MainWindow, a class SetupViewModel defined in a separate cs file, and another class ImageViewModel in a separate cs file;
I am wondering is there anyway I can invoke the operation in MainWindow from ImageViewModel. More details…

Nick Tsui
- 524
- 2
- 9
- 29
2
votes
3 answers
iPhone Navigation-Based application - some global toolbar questions
I started iPhone development two months ago, so I can't call myself "expert" ;-) But I learned a lot in these two months, a lot here from stackoverflow :)
I'm working on an iPhone app which is based on the "Navigation-Based application" app…

iYassin
- 552
- 1
- 10
- 21
2
votes
1 answer
Qt cannot open included file on ui_mainwindow.h
I am making a project in QT Creator 2.6. I am promoting a QWidget subclass called cPlotter, but when I try to compile the project, it fails because it cannot find the file cplotter.h. I figured out that this is because the file “ui_mainwindow.h”…

fzec
- 81
- 2
- 3
2
votes
2 answers
Is it possible to move to a separate file?
I've got a couple of animations as storyboards in window resources.
Is there a way to move them to a separate file and still access them?
If yes, please tell me how.
Just to be clear, I want to move the following generated code from my…

IneedHelp
- 1,630
- 1
- 27
- 58
2
votes
1 answer
How to set a WPF window's icon to an icon file through C#?
I have a WPF project with a window. If I want to set the window's icon property in C#, it allow me to feed it only an ImageSource and it doesn't accept icon files. If I set the property in XAML, it accepts icon files without any problem. How can I…

IneedHelp
- 1,630
- 1
- 27
- 58
2
votes
1 answer
Windows Forms: Change application mainwindow at runtime
Normally I would do Application.Run(myMainForm).
But I want to do something like this:
MyForm1 f = new MyForm1();
f.Close+=OnOpenOverviewWin();
Application.Run(f);
void OnOpenOverviewWin()
{
MyOverViewForm f = new MyOverViewForm…

codymanix
- 28,510
- 21
- 92
- 151
1
vote
1 answer
MainWindow IBOutlet properties for window, tabBarController log as (null) even though outlets are connected
In my AppDelegate.h I have @property (nonatomic, strong) IBOutlet UIWindow *window and @property (nonatomic, strong) IBOutlet UITabBarController *tabBarController.
In the implementation I @synthesize *window = _window, *tabBarController =…

tacos_tacos_tacos
- 10,277
- 11
- 73
- 126
1
vote
1 answer
Type or namespace Window cannot be found
I am confused as to why a Window will not appear with the below code. Am I missing an import?
using System.Text;
using System.Xml;
using System.Windows;
using System;
using System.Windows.Forms;
using System.IO;
using System.Threading;
public…

Kyle Luchinski
- 153
- 1
- 4
- 18