LizR 171 Posting Virtuoso

http://creators.xna.com/ which you could have found from the microsoft.com/xna link

LizR 171 Posting Virtuoso

No
if you have the 2 forms as private variables, create them on your main forms creation but only show them as you need them, you dont ever need to make new instances of them again.

LizR 171 Posting Virtuoso

If its a windows app, then the main forms "onclose" event would suffice

LizR 171 Posting Virtuoso

Ok, your example of your problem has many questions

You reference 2 different forms in that procedure. You seem to have 2 forms, form1, form2.

In that procedure you create a new copy of both of them
You show one, and hide/close the other.

Surely you wanted to hide/close the current form? Or, are you trying to toggle between 2 form?

LizR 171 Posting Virtuoso

Often closing the main form will terminate the app, you can just hide it.

Normally programs that appear to change from one screen to another and remove others such as login boxes to a main form etc, tend not to work the way people might imagine.

What you could do is rather than use the button click event in the form to create a new form, use an event in your main program.cs which sends a close event to the first form, and opens a new form.

LizR 171 Posting Virtuoso

Yes, take a look at the MS tutroials, they show a bit on how to do some 3d work.

LizR 171 Posting Virtuoso

Have a read on IDisposable - that will cover the disposal comment

The stringlist would be part of your new class you made from IDisposable, so that when it goes you can itterate through the things you need to do..

You then add to the list each time you change the image reference, to place the old unwanted item on the list for removal when its all over.

reaven commented: thanks for the help +1
LizR 171 Posting Virtuoso

Do you ever have more than 1 user variable defined?

LizR 171 Posting Virtuoso

Well you must understand some of it, so, what exactly dont you get?

LizR 171 Posting Virtuoso

What you need to do is as your app starts is to make notes of the current resolution, and then set the resolution to that as your app exits.

LizR 171 Posting Virtuoso

Please show some code as to what you have so far

LizR 171 Posting Virtuoso

Out of interest (not that it should make a difference) do you get the same result if instead of int you use Int32?

LizR 171 Posting Virtuoso

What error are you getting? and what code is behind it?

( I havent any c# and excel code to hand, but, logic will prevail)

LizR 171 Posting Virtuoso

How are you doing the select? any chance you're getting every other row?

LizR 171 Posting Virtuoso

If you need all the rtf code, then use the rtf property it contains the rtf coding as well which would include the fonts/pictures/colors etc.

LizR 171 Posting Virtuoso

Well you said you were copying, the text would need to be selected in the example ive given..

LizR 171 Posting Virtuoso

richbox1.selectedrtf=richbox2.selectedrtf

LizR 171 Posting Virtuoso

You want "SelectedRTF" not just selected, that would include the formatting

LizR 171 Posting Virtuoso

most likely the issue is caused by Application.DoEvents();

and the fact it appears more than once in there too, try getting rid of that. If you need to update various controls just tell them to invalidate.

LizR 171 Posting Virtuoso

Well..
In your code you show the img object created, and loading a picture, once loaded obviously it remains in memory and technically wont need to be on the disk.. however, to replace the image, you dont need a new img object, just to change the picture in it.

As for the deleting of files, rather than have some background app that gets overly complex, create an object which holds a stringlist, which inherits from the disposable range, and then in the dispose have it remove the items in your list.

LizR 171 Posting Virtuoso

If user were a static class you could access it from anywhere

LizR 171 Posting Virtuoso

No. thats how the image buttons work in rtf editors, they insert the code.

LizR 171 Posting Virtuoso

The image itself isnt but the object doesnt have to be new.

LizR 171 Posting Virtuoso

Then dont delete it, reuse it.

LizR 171 Posting Virtuoso

Check what the helpfile says about the routine :)

LizR 171 Posting Virtuoso

Yes, you then have to call the subroutine on each of the new folders you find.

LizR 171 Posting Virtuoso

Simplest way would be to remember the previous setting before you set your own, and restore it.

LizR 171 Posting Virtuoso

Duki asked..

LizR 171 Posting Virtuoso

Well calcpoints would need to be in the base class, then it should be accessible

LizR 171 Posting Virtuoso

What code do you have to save it so far?

LizR 171 Posting Virtuoso

You didnt bother to post the actual problem with it, you just said it didnt work, no one can help unless you say what "didnt work" what did happen.. what code you had..

LizR 171 Posting Virtuoso

Shouldnt that be static public bool operator < (Person p1, Person p2) ?

LizR 171 Posting Virtuoso

He had though that was the point :)

LizR 171 Posting Virtuoso

This would defeat the whole point of having data sources and is rather like forcing a square thing in a round hole.

However, as it seems someones unwilling to work with the dataset he setup, I guess theres little choice.

LizR 171 Posting Virtuoso

Please read http://www.daniweb.com/forums/announcement61-2.html

We dont do your work for you, we'll help you with ideas, suggestions and problem code if you show us the code you have problems with.

Tell us how you have thought it should work, show us the code you have, explain the precise problem you have and perhaps you will get better answers

LizR 171 Posting Virtuoso

Shouldnt you really have a class basis for your warrior, wizard etc so you dont have to redo half the same code? (that way you would have stuff you could override)

CalcPoints is a routine under your app not under a class, so you wont be able to override it

PS please use code tags next time it makes it easier to read

LizR 171 Posting Virtuoso

fiziumt

As has been said no one is going to do it for you, unless you want to give one of us your qualification at the end of it..

If you have a specific question, please ask it, however there are 2 stickies at the top of this forum, please read both carefully.

LizR 171 Posting Virtuoso

if you mean how to test the crc check is right, download some other crc checkers thats supposed to use the same methodology, and see if you get the same answer

LizR 171 Posting Virtuoso

Um, linux is way superior in multi tasking than windows, you really need to read up more

LizR 171 Posting Virtuoso

Depends if its asp or a windows app, if its an app then you could try parsing the text to a time if that fails tell them its not a valid time.

LizR 171 Posting Virtuoso

You can also google for skinning / thememing components, they often allow you to design a "look" for your app and some are even free.

LizR 171 Posting Virtuoso

.net by default does not run on linux, mono will allow many aspects of .net to run on linux, however, you a) need the mono framework, b) need to have a number of adjustments to allow for the differences in general between unix and windows, and c) threading is different, however, Im not sure mono allows you to tell the difference..

LizR 171 Posting Virtuoso

What have you tried so far?

LizR 171 Posting Virtuoso

Long as you declare the main user as a private varaible (or public if you need to for later) within form so it goes

partiial class Form1 
{
  private User mainuser;
 // more stuff
}

You can access it form any of the form1's procedures, just like you did with c++

In your User class however, you have something which can bite you later, which is you declared your variables publically as well as then (as you said)_half set properties for them, whats the point if the variable can be used as you showed in your other code as its public, you should make the name private, as per your naming convention suggests

LizR 171 Posting Virtuoso

Threading is incredibly simple, as sarehu says, msdn and your helpfile have some good examples

LizR 171 Posting Virtuoso

Only other way I can think of (and its 1am so that doesnt mean much) is to have a kinda parent/child relationship so that the server has a notify_icon option and the notify_icon has a server option.. but thats more messy than you need and the other suggesitons so far are the better way

LizR 171 Posting Virtuoso

Then why not pass srvr to the Notify_icon ?

LizR 171 Posting Virtuoso

Is that the username they gave you? or did they just tell you that you should be using a specific username and password?

It sounds like it didnt have the right username/password

LizR 171 Posting Virtuoso

Um, well if your primary key is Field1+field2

when you do your test, pass Field1value + field2value so its 1 string.

LizR 171 Posting Virtuoso

OK, but perhaps your current way is why its not working - the example is very similar to what you wanted, in fact its where I grew mine from, so it does work. If you dont understand it, post the exact bits you dont understand and what you thought it should do as otherwise its going to be impossible to move you on from this.