LizR 171 Posting Virtuoso

I think you missed my point.
You told it to lock that part of the disk, so the second user *CANT* get at it, you locked it with the first guy and never released it. The OS would also potentially do the same, however, it shouldnt take that long, and should/could be retried. if after a given number of attempts its still failed - somethings wrong.

LizR 171 Posting Virtuoso

Thats obvious.
Did you cut and paste the code you have? You have a login function, you need to collect the cookies and store them within the login function..

LizR 171 Posting Virtuoso

Set the cookie when you make the login call..

LizR 171 Posting Virtuoso

You dont ever seem to unlock your locks.
Id expect the lock to be pre-read, and the unlock post read.

LizR 171 Posting Virtuoso

But its not the same instance.. So, its not going to have the same cookies. You would need to grab and set the cookies at the time you login

LizR 171 Posting Virtuoso

Mine has the option to insert a space between the method and its opening perenthesis..

text editor->c#->formatting->spacing->set spacing for method calls->insert space between method name and its opening perenthisis..

LizR 171 Posting Virtuoso

As I said, exactly the same way you do your select queries.

LizR 171 Posting Virtuoso

A readln should do roughly the same (without a message of course) but, if thats not working it would imply its not reaching the end..

invoking a system shell for pause is generally a frowned on answer, but I would expect it to be shellexecute

LizR 171 Posting Virtuoso

An update query should work the same - whats the problem ?

LizR 171 Posting Virtuoso

Try running that on say windows.pas, how long does that take? answer: Ages.

Dont use delete.. no point, its incredibly bad on memory as each time you are allocating and unallocating and moving it around.

LizR 171 Posting Virtuoso

Yes you can.

LizR 171 Posting Virtuoso

Learning takes many forms, andso much depends on simple basics, which there are a number of ways you can learn, however, the best example of building blocks and fun I found at http://www.3dbuzz.com you'd need to register on the site (free) and then you can watch the c#/XNA (no xna in the free ones) where you make a game called Hyperion.. Its a good laugh.

LizR 171 Posting Virtuoso

Yep looking at your code F3 should be null, you never created anything to fill it.

LizR 171 Posting Virtuoso

Perhaps ensure the service is stopped first?

LizR 171 Posting Virtuoso

Then you're going round in circles and the button shouldnt be there..

if stuff true, <script>

its that simple, as you said in the beginning

LizR 171 Posting Virtuoso

Well, thats what an "OnClick" event is for :)

LizR 171 Posting Virtuoso

that sounds a bit odd. usually that happens when theres a conflict, or I have had one case where I added a grid component and it got very confused by adding qualified name spaces unnecessarily and confusing itself.

As long as you sort out any issues with the form1.designer.cs file, it should then work out the GUI based designer form.

LizR 171 Posting Virtuoso

Exactly as you described. Although asp.net is probably best asked in its forum

LizR 171 Posting Virtuoso

Small projects flex more, in a bigger project you need to have a clear view before you start.

Wether you use a digital design system, or notepad, or a pen and paper, at the end of it you need to work out a lot of symantecs before you start, or you will waste a lot of time and energy.

LizR 171 Posting Virtuoso

Enjoy Delphi 2009.

LizR 171 Posting Virtuoso

God knows, Delphi 6 is exceedingly old. I dont have one kicking around installed to check. You could try reimporting them.

LizR 171 Posting Virtuoso

Then show us what you tried and why it didnt work.. *then* we will help you

LizR 171 Posting Virtuoso

Problem is outlook express is different enough from outlook that the standard outlook integraiton you'll find over the internet doesnt work.

If you have a way in c++ chances are thats because its win32, and you would need to do all but exactly the same in c#

LizR 171 Posting Virtuoso

guys. Keep the fighting to a dull roar and minor scratching please!

LizR 171 Posting Virtuoso

A lot of files start with a specific signature, zip files etc.. However, this isnt answering his quesiton.. mind you, nor is he we've just done a lot of speculation ..

LizR 171 Posting Virtuoso

Sort of a linked list. It's not only a question of <tr> tags. Inside each <tr> there could be other sets of values I need to extract, inside these values, their might be other values and so on.

Well the regexpression would handle that just fine...

LizR 171 Posting Virtuoso

Any file extension (or even lack of) could be text inside it.. similarly just as I said, just because it got named .txt doesnt make it text

LizR 171 Posting Virtuoso

Sure, but its not a guarentee doesnt stop people adding a .txt extension to anything

LizR 171 Posting Virtuoso

The best way to become a programmer is practice. Think of something you can really get your teeth into, something you could start small and grow and grow and grow, make a torrent of practice bitty apps that do small things and then encompass those classes into your core project once you've tested it.

Key things you should have I believe to be good at programming

1. Ability to break down into small steps what you want to achieve
2. Self motivation and want to learn for yourself not just get to an end goal.
3. Ability to use google
4. Willingness to admit that the code you wrote sucked and that you would be best to scrap it and start again.
5. Be prepared to start with the basics, dont be gutted when you cant make that mmorg after a couple of hours.

I taught myself all the computer languages I know. Once you have good strong basics, learning a new one isnt that hard.

Before you start with DBs and so on, get the basics of user interaction, class design, exceptions, error checking, debugging, defining your wants before you worry about connecting to remote servers, wether its still there, and how to handle locks and threads and many other aspects.

There are a lot of apps that dont use databases at all..

LizR 171 Posting Virtuoso

I used a boolean flag, so I could do while (keeprunning) , that way I can set keeprunning to false outside the loop and the thread finishes cleanly.

LizR 171 Posting Virtuoso

Well being in a thread it cant just write to your form, so Id have expected it to crash out and say so.

LizR 171 Posting Virtuoso

OK, so it hasnt crashed. Its in a loop, which is exactly what you told it to do.

Your thread code looks OK on face value.. does it do what you wanted is more important!

LizR 171 Posting Virtuoso

Define crashes - how? in what way? whats the message? what did debugging show you?

LizR 171 Posting Virtuoso

K, dont run the code in the load - because you arent threading it, the form will never show until you close the socket and end your chat server.

LizR 171 Posting Virtuoso

Well without knowing more about chatserver, as a class, Im going to guess it never was told to.. thats what debugging is for.

LizR 171 Posting Virtuoso

Well if you look at what its told you and the properties of the request object, the answer should slap you in the face

LizR 171 Posting Virtuoso

Perhaps he means a linked list?

LizR 171 Posting Virtuoso

You probably meant something like

GroupBox[] Groupboxes ..

LizR 171 Posting Virtuoso

so, is a class represented by a row in the table? if so, easy.. just look for the tr tags

LizR 171 Posting Virtuoso

Use google - theres a number of examples

LizR 171 Posting Virtuoso

I'd suggest you try the asp.net section.. They like web stuff there.

LizR 171 Posting Virtuoso

He kinda did, he added the error as a comment in the code..

LizR 171 Posting Virtuoso

the problem is you arent drawing to your bitmap you made, you're just drawing on the screen which isnt remembered, a little like the whole if you wave a sparkler in the air you see the picture linger for a little but then its gone.

As I said its the same reason when you minimize and return that the image is gone, because it never really was there..

So, with the way you've done it, you cant. its not real.

You have to change a little about what you did.

Firstly, you need to ensure you have made an image in the first place such as:

Bitmap b = new Bitmap(pictureBox1.Width, pictureBox1.Height);
            pictureBox1.Image = b;

Now your picturebox has an image for you to work with.

Then for example, you can draw on it with such as :

Brush bb = Brushes.White;
            Graphics g = Graphics.FromImage(pictureBox1.Image);
            g.FillRectangle(bb, new Rectangle(0, 0, pictureBox1.Width, pictureBox1.Height));
            Pen p = new Pen(Color.Black, 2);
            g.DrawLine(p, 0, 0, pictureBox1.Width, pictureBox1.Height);
            g.Dispose();
            pictureBox1.Invalidate();
            pictureBox1.Image.Save("C:\\outpt.bmp");

now open output.bmp and you'll find a white box with a diagonal black line.

LizR 171 Posting Virtuoso

Or telling it which of the columns you are inserting eg, it has an auto increment field/ID etc

LizR 171 Posting Virtuoso

Then you need to not draw your picture on the pressing of a button but on the painting of the box, then, you toggle within that method wether you do nothing much, or paint the picture in memory.

This will solve all you problems in one hit

LizR 171 Posting Virtuoso

cool - please mark it as solved

LizR 171 Posting Virtuoso

I guess changing from the properties to events in the bottom right (by default) was missing..
So.. Im gonna take an educated guess you didnt tie the event to the method you made??

LizR 171 Posting Virtuoso

I guess you didnt look through the rest of the excel posts then

LizR 171 Posting Virtuoso

Totally untrue. You can read and write to excel. As I said, search the forum, there are a number of ways and code and so on within this forum

LizR 171 Posting Virtuoso

So, in what way does it not work? Whats the error? what debugging did you do?