LizR 171 Posting Virtuoso
LizR 171 Posting Virtuoso
LizR 171 Posting Virtuoso
New to coding or not.
What code do you have so far?
What issue do you have with your code?
Haivng read the plentiful notes on how to use regex from the helpfile, and how to create reg expressions you can find in google, what specific issue are you having?
I dont believe you can ever know that for sure. As for example I could load a USB drive boot, and remove it and you wouldnt know.. unless the OS ran from there, but it doesnt mean the boot came from there..
Do you mean where it read the boot loader from, or the drive with the OS on? as they dont have to be the same, Im not sure you can tell the first.
Thats not really miuch to do with c# thats a generic javascript issue, have you done some googling on that? as its a pretty normal thing to do.. theres probably 100s of prewritten ones to do it for you
OK for your file association: http://letmegooglethatforyou.com/?q=c%23+set+file+association
As for the code, well the .ToString() is kinda pointless as well .Text returns as string anyway, so, perhaps this means your cb doesnt contain what you thought .. did you look?
Also, the code you show as I said earlier looks like it would find a first occurance of something and highlight to the end? is that what you see? Also remember it would want to be exactly the same so "test" doesnt equal "Test"
Forgive stupid question - why not just link the text boxes to a dataset and have the dataset questioned on which one you select from the combo.. why reinvent the wheel?
1. You can register a file extension in the registry, and as long as your program knows how to open it from a command line and you put that in the registry too. It will work (for examples see the plethera already in your registry)
2. At first glace that code looks like it should select from the beginning of the stuff found to the end of the text, so, what isnt it doing?
Extract a smaller sized portion of it, and display it, and change the area shown depending on where in the scroll you are supposed to be.
1. You could change the tooltip on mouse over, see http://msdn.microsoft.com/en-us/library/s894w4aa.aspx
2. do they not auto uncheck now? make sure their tab index is different.
3. set the shortcut key
4. you should be able to use the same code for all of them.
5. Use its clicked event
No, thats not how it works, I guess your F1 button must be broken
No, thats not what you did
You said an equivelent of
Tree of apples = 1 apple.
I guess you havent looked on how you use lists.
You could use objects but your list of medicines should work..
Ok, heres a hint.
If you went into a shoe store, you'll find trainers, boots, shoes and sandals.
Now, they all go into shoe boxes
Same is true with your list, your list will hold your medications, however, you need to check the box as to which type of class you actually have in it.
So, once you've tested what class it is, you can then assign to an appropriate class, or, force the code to run as the class you found it to be so you can see then the additional attributes.
In which case yes. I can see why your compilers upset..
What would you expect it to do with the next column?
Why not just do the writeline of body you read from the second file?
to debug it, I guess you havent found the inserting of break points and stepping through code (or just plain stepping through it from the beginning)
I did a game of life in c# the drawing speed wasnt overly noticable..
How are you doing the assignment?
Please post the error you're getting, as Im not in a position to download and try compiling stuff
exactly but Im not sure shouting enable would be loud enough.
You already had code to do what you wanted - you just didnt like it, the sad part is in having XML it *IS* going to be slower.
Thats why classes are great - you could assign a list of units to an army, the list could if using the right class structure hold tanks, troups etc.
As long as the numbers represent numbers within the ascii range... eg 1-255 etc
I dont think he wants it hidden, but disabled.. but its not like you havent told him the right thing, it would just seem the opposite of disabled isnt the same the world over.
You mean disable it..
(see if thats a big enough hint)
Well what have you tried so far?, sounds simple enough. What exactly are you stuck on?
No not as in C pointers, pointers as in places to look silly :P
and if it didnt work
a) why didnt you say so,
b) in what way didnt it work?
Or just use a list :)
OK, but by the sounds of it XML is not really the best format to have picked - having picked it you either can as previously suggest check and see if tclientdataset will read it in direct, or, you have to go through the process you have - and yes its slow which is why XML is not really a great avenue for so many smaller things (2mb is nothing)
The problem I found with using XML is you seem to need to know way too much for the purpose of a "generic" XML file..
Why use XML in the first place?
You might be able to drop the xml transform as tclientdataset understands xml direct if its simple enough.
Failing that, I wouldnt use xml -> IMHO xml is often over used when something as simple as a simple ini file/registry keys would be more than sufficient.
So, having given you a number of pointers you've fixed it now right?
Well you could have a variable in Class A that you set to be your socket, eg
Class A
{
public Socket Server;
.
.
.
.
}
Class B
{
Socket server = new Socket();
A = instA = new A();
A.Server = server;
}
but id actually question in that quick mock, why you needed server at all in class B surely it should be in class A?
Once again, debug it, follow what "i" is, and see what item you're referencing. Once again, no code tags, so im not even going to bother reading it this time.
You dont seem to do any validation to check wether i is a valid item or not
Well it seems very clear you havent looked at the event, or what it gives you - and you're expecting someone else to do that for you.
Dont forget to mark the thread as solved.
in the mouse click event..
when you get the error, double click on it - in all the errors you showed us, it would take you to the appropriate line.
Same as you would any other language - what problem are you having?
Hmm, Please reread my post - you obviously misunderstood.
Well. What have you tried so far? there is a mouse click event, and you can handle left and right clicks..
Well, it does, because the forumla doesnt require you to use it in order, because its a formula. You can randomize it and slot items into place without overlap.
Other than you didnt use code tags so your post is painful to read.
When it crashes - check the value of i and item.
What problem are you having it with it?
Thats a very tough way of doing it - while I showed you a "fixed" way of laying them out - its very simple to randomize a position using that formula.
Then you need to make the app form open the modal forms not the form1 and form2. Then you can hide them as previously said you cant make a modal form loop it doesnt work - this is your main problem. Also if the form thinks its already visible it cant be changed to modal.
do you have any other forms on your app that are visible during this process? if not, then your problem is you shouldnt make them modal
As for your comment about freeandnil - you dont appear to use any data back after the modal state, so I would disagree.
OK the biggest problem is that every app has a "main form" and when you close it, you'll close the app.
You didnt mention closing the forms..
You can *hide* the forms not close them, that kinda works :) but you should be careful as to be frank thats not always a great idea, as well as forms (IMHO) should only be created when about to be used, not lurking silently.