Click here to Skip to main content
15,892,005 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: Workerthread in .Net 1.1 Pin
ScottM122-May-07 20:20
ScottM122-May-07 20:20 
QuestionMDI application help - multiple views Pin
earlgraham22-May-07 7:37
earlgraham22-May-07 7:37 
QuestionButton click event Pin
dodoxor22-May-07 5:49
dodoxor22-May-07 5:49 
AnswerRe: Button click event Pin
Paul Conrad13-Jul-07 13:47
professionalPaul Conrad13-Jul-07 13:47 
AnswerRe: Button click event Pin
dodoxor13-Jul-07 21:33
dodoxor13-Jul-07 21:33 
GeneralRe: Button click event Pin
Paul Conrad14-Jul-07 4:25
professionalPaul Conrad14-Jul-07 4:25 
QuestionClick Once with multiple sites Pin
Garry Pilkington22-May-07 1:01
Garry Pilkington22-May-07 1:01 
QuestionImport a class form Pin
dodoxor21-May-07 22:35
dodoxor21-May-07 22:35 
Hi, i've a visualc++ project( window form application).
I've created a class in a cpp file ( and its .h file)with this simple structure:

class Myclass{
public:
Myclass();
~Myclass();
func1();
func2(int n);
private:
int n;
}; and i've implemented the functions.

Then i've my graphic interface composed by some form application.
This is one...Camlive.h
#pragma once

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
namespace WinCam {
public ref class Camlive : public System::Windows::Forms::Form
{
public:
Camlive(void)
{
InitializeComponent();
}
protected:
~Camlive()
{
if (components)
{
delete components;
}
}

private:
///
/// Required designer variable.
///
System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
void InitializeComponent(void)
{
this->components = gcnew System::ComponentModel::Container();
this->Size = System::Drawing::Size(300,300);
this->Text = L"Camlive";
this->Padding = System::Windows::Forms::Padding(0);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
}
#pragma endregion
};
}

I want to use it and its components(like a button control or a textlabel) in Myclass. For example i want that func() of myclass can modify a textlabel of camlive.h.
When i try to make a new object of class Camlive( Camlive^ cml in Myclass, it returns a compile error.
How can i do?
Thanks, regards.
AnswerRe: Import a class form Pin
sarah_malik22-May-07 1:44
sarah_malik22-May-07 1:44 
QuestionRe: Import a class form Pin
dodoxor22-May-07 2:15
dodoxor22-May-07 2:15 
QuestionASP.NET button transparent in Safari [modified] Pin
hifiger200421-May-07 3:24
hifiger200421-May-07 3:24 
QuestionUsing report viewer control in Windows forms with CLR suppport Pin
Shraddha Gautam19-May-07 19:57
Shraddha Gautam19-May-07 19:57 
QuestionHow to kill exe? Pin
NanaAM18-May-07 22:28
NanaAM18-May-07 22:28 
AnswerRe: How to kill exe? Pin
Giorgi Dalakishvili18-May-07 23:11
mentorGiorgi Dalakishvili18-May-07 23:11 
QuestionHow to Insert row from Binded Combo Box Pin
P.T.R.K18-May-07 20:31
P.T.R.K18-May-07 20:31 
AnswerRe: How to Insert row from Binded Combo Box Pin
PandemoniumPasha19-May-07 19:16
PandemoniumPasha19-May-07 19:16 
AnswerRe: How to Insert row from Binded Combo Box Pin
Ch_Shahzad iqbal21-May-07 23:19
Ch_Shahzad iqbal21-May-07 23:19 
QuestionHow to scroll two listbox together in c# ? Pin
nav_smec18-May-07 1:07
nav_smec18-May-07 1:07 
QuestionRe: How to scroll two listbox together in c# ? Pin
ScottM123-May-07 2:26
ScottM123-May-07 2:26 
AnswerRe: How to scroll two listbox together in c# ? Pin
nav_smec2-Jun-07 0:13
nav_smec2-Jun-07 0:13 
GeneralRe: How to scroll two listbox together in c# ? Pin
ScottM13-Jun-07 20:11
ScottM13-Jun-07 20:11 
QuestionCheckedListBox.CheckedItems Issue Pin
jimmahnow17-May-07 1:38
jimmahnow17-May-07 1:38 
AnswerRe: CheckedListBox.CheckedItems Issue Pin
Rob_ICS17-May-07 2:59
Rob_ICS17-May-07 2:59 
AnswerRe: CheckedListBox.CheckedItems Issue Pin
Ch_Shahzad iqbal18-May-07 0:41
Ch_Shahzad iqbal18-May-07 0:41 
GeneralRe: CheckedListBox.CheckedItems Issue Pin
nav_smec18-May-07 18:01
nav_smec18-May-07 18:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.