C/C++ :: How To Change CMD Window Size (No Properties)

Oct 23, 2014

Is there any way to resize the cmd window?

Kinda like in properties, where you choose the height and width of the window, but in actual code. So everybody who open my program see the same window.

View 1 Replies


ADVERTISEMENT

Visual C++ :: Change Frame Window Size According To Increase In Font Size

Nov 27, 2012

Change the frame window size according to font size increases.

View 3 Replies View Related

Visual C++ :: Disable Controls And Change Window Size

Jun 6, 2013

I have created an exam environment for our schools, it comprises of 3 files; a .kix file that says if they are in the examination group run a .vbs file. The .vbs file kills the explorer.exe task so they don't have any taskbar or desktop shortcuts and then opens a .hta file.

The .hta file is a user interface that has icons for apps like Win Word that executes the application when you click on it. There is also a log off button.

Looking for some code that stops the students from being able to close, minimise and resize the window. Looking for code that can lock this down so they literally can't do anything except click the icons inside the window.

View 3 Replies View Related

C++ :: How To Retain All Project Properties When Change From Debug To Release Mode

Aug 1, 2013

I'm developing C++ application in visual studio 2012. I have couple of C++ projects in my solution. I have put some library paths in every project's properties ( i.e ,Config properties - > C/C++ - > Additional Include Directories and Linker - > Additional Include directories ).I developed in debug mode, if i change to release mode, all library settings gone.Is there any possibility to retain all settings when change to debug to release mode and vice versa ?

View 2 Replies View Related

C# :: Change Form Control Properties From User Control

May 24, 2014

I have researched quite extensively, experimented, and still cannot seem to change the properties of a control on an active winform from a user control.

So I have a user control which populates each dynamically added tab page in a tab control.

I have a textbox in the user control which I would like to type in, capture the text_change event, and change the text of the label in the winform.

View 14 Replies View Related

C/C++ :: How To Change Position Of Image And Button On Window

Jan 12, 2015

The question says:

Place an Image on top of a Button. Move both when the Button is pushed.

Please have a look at this code:

#include <GUI.h>
using namespace Graph_lib;
//------------------------------------------------
class rotation : public Window {
public:
rotation(Point xy, int w, int h, const string& title):
Window(xy,w,h,title),
[Code] ....

The problem is that, it is not possible to define an Image in public/private part of the class rotation. Image needs all arguments to be supplied even when declaring one. (Image is here in Graph.h)

And if I define that Image in the body of main() function, so how to provide access for void rotate() to change its position with the position of button simultaneously.

View 6 Replies View Related

C++ :: How To Set Console Window Size

Oct 28, 2013

Can I make my c++ application to open in a specific sized console window. I want to open my project in n a bigger screen so that all my output is visible. is there any way to do this...

View 6 Replies View Related

C++ :: Changing Text And Window Size?

Jul 4, 2014

I would like to find out a way to set the text and window sixe for the window in c++. I am using code::blocks compiler

View 4 Replies View Related

C# :: Option Selection Box To Change What Appears In Main Window Screen

Sep 17, 2014

Basically i have a 'HomeWindow' with a button 'OptionWindow'. My idea is that the 'OptionWindow' button will open up the 'OptionWindow'. Which will give the user three options 'Option1', 'Option2' and 'Option3'. If they pick 'Option1' then in the 'HomeWindow' in a stackpanel i want it to display 'UserControl1'. Where as if they pick 'Option2' then in the 'HomeWindow' in a stackpanel i want it to display 'UserControl2'.

If you need some of my code that i have already then let me know what you need as i have a lot of it so can't paste it all in one go. But the new thing i need is the way of making the user-controls in the 'HomeWindow' change depending on what is selected in the 'OptionWindow'.

View 14 Replies View Related

Visual C++ :: Quick Find Window Size

May 18, 2013

Somehow I have expanded the "quick find" window in visual c++ 2010 and how to restore it to the original size.

View 2 Replies View Related

C++ :: How To Change Font Size

May 19, 2013

how am i supposed to alter font size of text which appear in output screen?

View 1 Replies View Related

C++ :: Resizing Widget - Change Size Of MainWindow During Runtime

Aug 31, 2012

I have QTextEdit in mainWindow. I'm trying to resize QTextEdit so height = mainwindow.height and width = height/2. That should change when I change the size of mainWindow during runtime. How can I do that?

View 2 Replies View Related

Visual C++ :: Change Menu Bar Font Size In Mainframe

Jul 30, 2014

Can change the menu bar font size in CMainFrame::OnCreate()? Here's what I have:

Code:

int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) {
CRect rect;
GetClientRect(&rect);
if (CFrameWnd::OnCreate(lpCreateStruct) == -1) {
return -1;

[Code] ....

The line "m_wndToolBar.SetFont(&m_font);" does nothing.

View 2 Replies View Related

C++ :: How To Access File Properties

Jun 29, 2014

Is it possible to access file properties from c++ program? For example, user could drag file to program and then it displays a detailed information about file like date modified, size, type and etc..

View 1 Replies View Related

C# :: Getting Properties From Different Classes / Objects

Feb 26, 2015

I have startes making a game where there is 3 ships that cross the screen verticaly, and the point is to shoot them down. So far I have actually managed to do this. I have also managed to add gamescore to the ships. But here is my problem, I cant find a way to combine the score from all three ships in to one score. I have all three ships in different classes, is that wrong? When I try to combine the scores, ship score1 cant see the other scores.

Do I need to somehow have all the ships in one class. Or are there a way to read the scores from three classes, and adding them up in to one in a new class?

One of the errors I get is "the name 'score1' does not exist in the current context.

View 14 Replies View Related

C# :: Passing Properties Between Forms

Nov 2, 2014

I've been attempting to design a multiform WFA in Visual Studio 2010, but I'm so rusty with the language it's hard to remember how to do a lot of things, especially when it comes to visual programming, which my class only partially covered. I've never made a multiform application before, and my problem essentially boils down to how to pass data between forms.

My application is a simple item list and order form, sort of mimicking what you might see on a site like Amazon or eBay. My first form contains a drop down list and 'checkout' button. The dropdown list has been populated with an object collection, each object holding the product's name and price.

public partial class Form1 : Form
{
//Item class for dropdown menu
public class Item {
public string Name;
public decimal Price;
public string itemName

[Code] ....

When the 'checkout' button on form 1 is clicked, I want the Price and Name properties of the selected droplist item to appear in a pair of text boxes on form 2 for the purpose of lowering the user's cognitive load (if they can see what they've selected, it's one less thing to remember).

I've seen plenty of tutorials on how to send a textbox Text property between forms, but none for how to do this. As I said, I'm rusty with the language, and I'm pretty sure there's a better way to set up my combobox items, but I can't remember how to set it up.

View 12 Replies View Related

C# :: Use Of Auto-implemented Properties?

Jan 28, 2014

Code using auto-implemented property:

public class MyClass {
public int age { get; set; }
}
static void Main(string[] args) {
MyClass testing = new MyClass();
testing.age = 44;
Console.WriteLine(testing.age);
}

output: 44

Code using regular variable declaration:

public class MyClass {
public int age;
}
static void Main(string[] args) {
MyClass testing = new MyClass();
testing.age = 44;
Console.WriteLine(testing.age);
}

output: 44

Why use the auto-implemented property when you can just as equally use the second code block to achieve the same thing?

View 14 Replies View Related

C/C++ :: Adding Properties To A Class?

Jun 29, 2014

I had written a "DLL" in VB.NET a year or two ago to read and set MP3 tags. I want to write this exact same library in C++ so I can convert it in my droid project, and to get a hands on introduction to C++. So far this attempt has been a total mind melt!

I am finally wrapping my head around .cpp and .h files so there is light at the end of this tunnel. Here is my problem now:

I wrote the VB project with properties for each tag in the MP3 file, then I could get and set them - easy stuff.

When I try this in C++ I get compile error: a property can only appear within the definition of a managed type. I can usually stumble through Google searches and figure out this type of stuff on my own, but this one is stumping me -- I think I am missing some fundamental stuff here.

My code:

// MP3Tags.h
#pragma once;
#include <string>
using namespace std;
using namespace System::IO;

[Code]....

View 4 Replies View Related

C# :: Custom Control Properties?

Sep 23, 2014

I have been trying to make a custom control(list box with more features). I know how to setup custom properties, but how do I make it so that the property can be edited in a separate window ?

I think I figured out how to show the form itself, and I don't know how to make the [...] button like :

There's not much Custom Control tutorials out there, and that's really the problem here.

View 1 Replies View Related

C++ :: Coin / Money Change Code Doesn't Give Exact Change

Feb 20, 2013

My coin/money change code works when there can be an exact change each time, i.e. when the 1 cent option is available. However, when the change options are only $10, $5, $1, 25 cents and 10 cents, it does not give me what I want for instance, I wanted to get change for $237.80, I was expecting to get:

23 10's, one 5, two 1's and 8 dimes. However, the code below is giving me 23 10's, one 5, two 1's and 3 quarters (there is no option left for the 5 remaining cents).how to fix it?

Code:
#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
void change(double cents, int a[]);
int main() {
double Dollars;
double cents;

[code]...

View 14 Replies View Related

C# :: Pass Values Between Forms Using Get And Set Properties?

Jan 15, 2015

Well I know how to pass values between forms using get and set properties. But the problem with it is everytime I want to pass values from form2 to form1 it doesn't appear. To make it appear I have to type form1.Show(); which open form1 a second time and then show the value. Is there any way I could make it appear without using form1.Show();?

View 9 Replies View Related

C# :: Accessing GUI Properties From Application Object

Aug 20, 2014

I'm trying to get my head around threading and gui applications for fun, and I've ran into a problem I'm not too sure how to google it correctly or I don't understand the answers given. Basically I'm trying to access GUI item properties (add to a listview). I've been on stackoverflow alot, and I've noticed that accessing these properties is quite difficult. At least, I'm not really understanding how it is supposed to be done.

The following line gives me a null value.

frm.lstChat.Items.Add(newList);

From what I understand I need to access my form object instead of creating a new object window... but I'm not sure how to reference the initial form application.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Net.Sockets;
using System.IO;
using System.Threading;
namespace ModBot {

[Code] ....

View 3 Replies View Related

C++ :: Quicker Way To Configure Project Properties For Library?

Mar 4, 2013

I have to edit 4-5 lines in the debug, and then 5 lines in release for each of my little project's properties.

View 2 Replies View Related

C++ :: Design Own Container With Properties Of Both Vector And List

Dec 14, 2014

How can I write my own container which has properties of both vector and list.

E.g. I can access elements directly using [] operator like vector and behave like list in terms of memory (means we don't have to shift elements if we want to insert in between like list)....

View 1 Replies View Related

C Sharp :: How To Make Graph And Verify Its Properties

Apr 30, 2013

I want to make such application in which user make directed graphs along with relations between them. After that application show that which graph properties are proved in this graph e.g Reflexive, Irreflexive, Symmetric, Anti Symmetric, transitive etc

View 1 Replies View Related

C++ :: Video Game Programming - How To Display Graphics And Set Properties

Jun 10, 2013

How would you create a video game in c++? I'm not sure really how to display the graphics and set properties and do all that stuff. I don't have money to buy a book about so how do you?

View 2 Replies View Related







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