C# :: How To Select Open Application Window

Feb 10, 2015

this is my app interface as in attachment when i click an arrow it split the current selected window in arrow direction.

i want to know how to pass the current window to my button... i tried it using

Process[] processlist = Process.GetProcesses();

but it wont works

View 3 Replies


ADVERTISEMENT

C++ :: How To Open A Window Maximized

Apr 28, 2014

There is only one thing I need here. When the paint program is opened I need it to automatically open it maximized. Other than that my code works perfectly for what I'm trying to build.

It has to be maximized so when a friend opens it after I send it to him, it auto maximizes and doesn't start drawing on his desktop.

#include <iostream>
#include <Windows.h>
using namespace std;
int main() {
system("start C:/Windows/System32/mspaint.exe");
FreeConsole();
Sleep(1000);

[Code] .....

View 3 Replies View Related

C++ :: Keeping Output Window Open

Jun 24, 2014

My program accepts strings, places them in a vector and then "bleeps!" out words of my choosing, in this case, "broccoli". But I'm having trouble keeping the output window open even with my Keep_window_open() implementation.

#include "iostream"
#include "string"
#include "vector"
#include "algorithm"
#include "cmath"
using namespace std;

[code]....

View 2 Replies View Related

C++ :: How To Make CMD Window Pop Up When Open A Game

Dec 20, 2014

I wanna know how to do so a cmd window when you open a game.

Example: when I start cheese attack (just a name I like) then a cmd window come up, how do I do that?

View 1 Replies View Related

C++ :: How To Open Command Window At The Folder Containing EXE File

May 26, 2013

This is the code

#include <iostream>
using std::cout;
using std::endl;
int main(int argc, char* argv[])

[Code] ...

The only Problem I have is that I need to know how to open a command window at the folder containing the .exe file(this program), inorder to enter the program name or arguments.

View 2 Replies View Related

C# :: How To Create A Window Where User Can Open A File

Dec 15, 2014

I am using

string text = System.IO.File.ReadAllText(@"C:datainput.txt");

to open a file and save it content to "text"

How can I instead create new window where user will select the .txt file he wants to read like many applications do

This is a WPF application

View 10 Replies View Related

Visual C++ :: MDI Application Client Window

Apr 17, 2015

I am developing a MDI application that will contain a RibbonBar and a Properties Pane window. The MDI documents are not tabbed. I am finding that when I try to move the client window around, it gets clipped by the RibbonBar and the Properties Pane window (shown in image). I know the client window cannot go outside the client area, but can the client window be on top of the ribbon bar and the properties pane window?

I am using VStudio 2008.

View 7 Replies View Related

C# :: Open WPF Window From Double Click On Selected Item In A List?

Apr 23, 2015

I have a list with 2 items in it. When I double click on item 1, I want to open Window1.xaml, when I double click on item 2, I want to open Window2.xaml...

The code below works for popping up a message box, or window for that matter. But I really need to get the Window1 and Window2 based on the clicking of the correct selected item in the list.

Here is some code:

<ListView d:DataContext="{d:DesignData }" Name="PharmacyLv" IsSynchronizedWithCurrentItem="True" l:Sortbehavior.CanUserSortColumns="true" >
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<EventSetter Event="MouseDoubleClick" Handler="ListViewItem_PharmDoubleClick" />
</Style>
</ListView.ItemContainerStyle>

[code].....

View 3 Replies View Related

C/C++ :: Draw Sprite On The Window Of Third Party Application

May 8, 2014

How can I draw a sprite/graphic on the window of an third party application? E.g. I want to draw a graphic beneath each tab of Firefox for additional information. The position of the sprite needs to be relativ to the position of firefox, so if you move firefox, the sprite moves with it.

The solution needs to work on mac and pc. So I'll use a crossplatform framework like c++ boost or something.

Of course I can get the position and then just redraw it. But what's the best way to draw it?

Just found a tool which does what I need. Basically a HUD like this: [URL] .... The boxes with the numbers are what I need.

View 2 Replies View Related

C# :: How To Set Login And Logout Time In Window Form Application

Apr 6, 2015

using System;
using System.Collections.Generic;
using System.Linq;
using System.Security;
using System.Security.Principal;
using System.Text;
using System.Threading;
namespace WindowsPrincipalTrial {
public class Program

[Code] ....

View 2 Replies View Related

C Sharp :: How To Consume Data From The Web Service In Window Application

Feb 13, 2015

I am developing project on window application in c#.net. I want to consume the data from the web service and that web service is developed in PHP. So, How to give the reference of that web service?

View 1 Replies View Related

C++ :: SDL Unable To Open Application

Sep 7, 2013

I have this problem, then solve it by using the other kind of SDL.dll(eg. 32-bit instead of 64-bit). However, I get the error

The application was unable to start correctly (0xc00000be). Click OK to close the application.

no matter what SDL.dll I use. So far, the only solution does not work for me,

View 4 Replies View Related

C++ :: Absolute Path Reference - Open File And Print Contents To Terminal Window

May 12, 2014

I am trying to open a file and print the contents of the file to the terminal window. It works when I put the file right in the directory with the Solution but not if the file is out on my desktop and I use the full path. Here is the code:

#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int OpenFile(){
fstream SampleFile;

[Code] .....

View 5 Replies View Related

C++ :: How To Open Notepad Application Through Coding

Aug 14, 2012

I java We can be able to open any application through coding.. likewise Is it possible to open through c++?

View 3 Replies View Related

C++ :: Making Console Application To Open Webpage?

Mar 23, 2013

I know how to make a console application open a browser say like by entering

system("start iexplore.exe");

But that just goes to the browsers default start up page. The code to make it open a website of my choice (if its possible to on a console app).

(BTW I'm using Microsoft Visual C++ 2010 Express)

View 2 Replies View Related

C Sharp :: Open New Cmd From Console Application And Write Text

Oct 23, 2012

I want to open one new CMD from console application, write text into the new CMD and then coming back to the control on the old cmd. (like interactively working on the both)

look into the below code

Process P1 = Process.Start(@"C:WINDOWSsystem32cmd.exe");
P1.StartInfo.RedirectStandardInput = true;
P1.StartInfo.RedirectStandardOutput = true;
P1.StartInfo.UseShellExecute = false;
StreamWriter wr = P1.StandardInput;
wr.WriteLine("First line in New Cmd");
Console.WriteLine("First line in Old Cmd");
wr.WriteLine("Second line in New Cmd");
Console.WriteLine("Second line in Old Cmd");

it is giving the exception "StandardIn has not been redirected"

View 1 Replies View Related

C# :: Server Application Using Tcp Protocol And Then Establish Connection With A Client Application

Nov 29, 2014

What happens if I make a server application using tcp protocol and then establish connection with a client application but the server crash and then the client send data. Will the data be lost or the system will continue trying to send it?

View 2 Replies View Related

C# :: How To Start Application And Automatically Pass Input To That Application

May 9, 2012

I want to create an application that starts an application and passes input to that application. I know how to start a process using the classes in System.Diagnostics, but I don't know how to pass data to the process.

For example, and this is just an example, I would like to be able to automatically start an application that requires a username and password and automatically enter the username and password. Of course, that might open the door to security vulnerabilities, but that's not the point of the exercise.

How to implement the functionality I described? Is there a general way to go about doing this or does it depend entirely on the idiosyncrasies of the application in question?

View 2 Replies View Related

C Sharp :: Run Application When Log Off In Console Application

Oct 4, 2012

i have task scheduling application which execute every 30 minute i want to keep this process when system is log off in c# console application

View 2 Replies View Related

C++ :: How To Select A File

Dec 13, 2014

I am asking if there is a way to select a file

View 8 Replies View Related

C++ :: How To Add A Select Option

May 27, 2013

I just started on a project on c++ and I was wondering if it is possible to add a select option (where the c++ program requires the user to select an option) . I couldn't find this anywhere.

View 3 Replies View Related

C++ :: Win32 Tab Select Notification?

Dec 18, 2012

I understand including the comctrl32 lib and header. I know to init common controls. I can create a tab window and add tabs to it.

I just can't seem to grasp of how to tell when a specific tab has been selected. I just need to know what to look for with winproc.

View 2 Replies View Related

C :: How To Select Words From A Text File

Oct 1, 2013

I've a text file with 9 words and each word is written in a line. for exemple this is the list :

APPLE
ORANGE
MOON
CAR
CANDY
...
END

I'm gonna choose the fourth line and select the word that is in this line and work on. I tried lot of way but no result.

View 7 Replies View Related

C :: Using Select Function In Multiuser Chat Over TCP/IP

Jun 2, 2014

I am trying to write a program for a multiuser chat. I am trying to use select() function but I still cannot use the server for multiusers. I am able to access only one client at a time. I am running the code in Windows 7 using Visual Studio's Command Prompt. Here is the server code.

Code:
#include <stdio.h>
#include <winsock.h>
#include <stdlib.h>
#define WSVERS MAKEWORD(2,0)
WSADATA wsadata;
int main(int argc, char *argv[]) {

[Code] .....

View 3 Replies View Related

C# :: Using Foreach Loop To Select A Name In Queue

Mar 13, 2015

I know that where I have the intIndex++ line is wrong. It's just going to stop at the last index and call it good, but I don't know how to make it stop at the matching name. The only examples I can ever seem to find use the foreach loop to print out a value, and I'm clearly just not understanding this enough to make it work for me.

Instructions are:
--Declare a variable to store the result of the search, int intIndex;
--Use an if statement with the Contains method to check if the name in the search box is in the queue.
--If Contains is true, initialize intIndex to zero and use a foreach to walk through queue, else display a message that the name is not in the list.
--If a match is found use intIndex to select the matching entry in listbox and display a message indicating the name was found. Be sure to increment intIndex each time through the loop.

private void btnSearchByName_Click(object sender, EventArgs e) {
//delcare int variable to use as the index for the list box
int intIndex;
//If Contains is true
if (cstrName.Contains(txtSearchName.Text))

[Code] .....

View 5 Replies View Related

C# :: Randomly Select Strings From Array

Mar 27, 2014

I am trying to select 3 questions randomly from a string array and create another array with the randomly selected questions then display them in labels.

As you can see in the code I have used Array.Clear method to remove the selected question from the array to prevent duplicate questions being selected. For some reason this is not working! The "Randomly" selected question is ALWAYS the 5th element [4] of the randomQuestions array and this element is duplicated for each iteration of the loop.

public void shuffleQuestions() {
string questionselected;
string[] randomQuestions = {
"What is the speed limit from the time you pass an Accident sign until you have passed the crash site?",
"What must you do at a red traffic light?",
"What is the maximum possible speed limit on the open road?",

[Code ....

View 12 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved