How can i take a file from an openfiledialog and show it in a picturebox.
I have tried i like this but it wont work.
Thanks in advance
private void button1_Click(object sender, EventArgs e)...
Type: Posts; User: BraneMxm
How can i take a file from an openfiledialog and show it in a picturebox.
I have tried i like this but it wont work.
Thanks in advance
private void button1_Click(object sender, EventArgs e)...
Thnks for the response AtomRiot
It looks like this:
I have 2 forms. One has an button and an textbox. The other has just one button.
It doesnt matter how where and wenn the forms are...
Hi,
how do I take ownership ower a button or a textbox that is on another form?
I take ownership ower a form like this:
frm1.Owner=frm2;
I want the same thing for a button! But how?
namespace vjezba4dio3
{
public partial class Form1 : Form
{
private Form2 frm2 = new Form2();
private Form3 frm3 = new Form3();
public EventHandler ev2 ;
...
Hi to all i have an assignment that i dont aunderstand at all.
I know the OOD paradigm but i am not sure what this assingment wants me to do.
I should create an C# win ap. When opened 3 forms...
All the widnows close despite the changes i have made!
Thanks
It looks like this now it works but is this what the task is?
And i am not sure about the question how the ownership of the windows affects their appereance.
namespace vjezba4dio2
{
...
I had two errors in this line so icomented it out
// MessageBox(NULL, "hWnd parameter invalid!", "Error!", MB_OK | MB_ERROR);
The errors were:
C2065 'MB_ERROR' undeclared identifier...
Hi to all I need your help!
I have an assignement i must create an apllication that when opened opens 3 forms and wenn I click on form1 form1 should be the parent form of thw two other forms.
I...
I have a assignement that i have to do, i am not bad in c. But i never done windows programming before.
Here is the task:
Win32 API aplication with 3 windows. all should be created with the...
BoneXXX create yourself a print function which takes a pointer to the list and prints out hte nodes you have created or nothing if it isnt created. ;-)
BLooDCorpse you have skipped some C basics, you should start from the begin with some tutorials then you will be able to know what the code that you write means.
Trust me this will be the best and...
@iMalc
Exactly
Well I guess there is no strong reason to use it in Trees and Lists, and as I dont understand it very well I wont use it.
Thank you all
@iMalc
Thanks for the advice, I want to count the leaves not the nodes!
So I guess it is a good practice always to use const in the parameter when the passed value isnt changed, only used to...
I recieved some access violation error when I got on a node that was a leaf. However it works now.
Thanks and greetings to Luxemburg
Brane
@koni
I added something to your code to wouldnt work else. Am I right?
int countLeaves(bTree *ptrT)
{
if(ptrT)
if(!(ptrT->left) && !(ptrT->right))
return 1;
...
Hi and good morning to all
@citizen
Well I thought that the word static would be there to ignore the initialization to 0 when i call the function again, she is there to preserve the value.
...
Please take a look at this code
int countLeaves(bTree *ptrT)
{
static int i=0;
if(!ptrT)
return i;
else
{
Hi i have a little question
here is a simple piece of code inserting an int in ftont of a linked list
if i change
void insertFront(list **ptrL, int data)
into
void *insertFront(list **ptrL,...