LizR 171 Posting Virtuoso

Ive not seen one like the one you show, however..

For example:

delegate void SetTextCallback(String text);

        private void settext(String newtext)
        {
            if (this.textBox2.InvokeRequired)
            {
                SetTextCallback d = new SetTextCallback(settext);
                this.Invoke(d, new object[] { newtext });
            }
            else
            {
                try
                {

                    this.textBox2.AppendText(newtext);
                    this.textBox2.Update();
                }
                catch (System.Exception excpt)
                {//
                }                
            }
        }

which uses delegates to work with threads..

I think what you're methods asking for there is for

EventFire( new delegate(your_event_handler),new object[] { params,go,here });

LizR 171 Posting Virtuoso

heres some psudo code
begin
split string get bunch of chunks
define output area
dostuff(chunks)
end

proc dostuff(chunks)
take first chunk
for all the bits of last chunk
for all the output areas
make a copy of current output area + bit
dostuff(chunks - current chunk)
end

LizR 171 Posting Virtuoso

So, you need to split the string into chunks and work by value, and then go from 'start' to 'end' for each one.

LizR 171 Posting Virtuoso

failing that open it in vi and do search and replace on ^M (ctrl+V,M) and remove them

LizR 171 Posting Virtuoso

OK thats a good thing.
So, that boils down to the files.. How did you get them on your linux box? scp? ftp? samba?

If they still have windows line ends that could do it

LizR 171 Posting Virtuoso

You havent explained the problem of the last row, the reason I wonder about -1 is becaue of the 0 based array/list properties.

What is the error you get? Is there any other code you have around that line?

LizR 171 Posting Virtuoso

k, there wasnt in your post, so it was worth an ask.

Next thing then:

Does following http://www.codeproject.com/KB/cross-platform/introtomono1.aspx work?

if that doesnt work monos not installed properly by the sounds of it

LizR 171 Posting Virtuoso

Is there no ";" on the end of that line?

LizR 171 Posting Virtuoso

Whats the text that goes with? Whats the lines it barfs on?

LizR 171 Posting Virtuoso

Have you confirmed mono is actually working first?

LizR 171 Posting Virtuoso

Considered turning off multiselect?

LizR 171 Posting Virtuoso

Sure you want RowIndex? not RowIndex - 1?

Whats the error and did you really need to spam so many different questions, as they are all based around the same subject.. you could have placed them 1 by 1

LizR 171 Posting Virtuoso

usually its ^H or ^? but not always they often are backspace, best way is to grab all characters on a press and see what you get - although it would seem a bad way to test for a delete key

LizR 171 Posting Virtuoso

Not so sure on free, but, if you know c/c++ finding "conversion" info is actually harder than finding "this is a computer" level starts.

I like the 3dbuzz vtms (xna 101 vol1,2&3) which while aimed at xna spend most of the vtms showing OO and coding concepts etc in c# rather than xna persay, its just the application of what you've learnt in that sense. You can find them at www.3dbuzz.com

Other than that, decide on an app and try and write it. Sure some notation is different between c++ and c# but its very similar in a lot of ways. Of course annoyingly enough different in others.. such as converting eveything to strings with .ToString() or such but, its very easy to get on with.

LizR 171 Posting Virtuoso

You can assign events at runtime easily, by

button1.Click+=new EventHandler(myClickFunction);

in fact you can find this by typing like button1.click = new and it prompts you :)

LizR 171 Posting Virtuoso

If its in a different name space you would need to add a using at the top, otherwise no.

LizR 171 Posting Virtuoso

That is quite a lot, especially then if you multiply it up over multiple forms. What sort of FPS are you getting?

LizR 171 Posting Virtuoso

You add them in your projects, the classes then become available.

LizR 171 Posting Virtuoso

You're inserting all values as strings.. are they all strings?

LizR 171 Posting Virtuoso

It always puzzles me when people insist that XML needs to be used when you have direct access to the database, why over process.

Your dataset should be the datasource of your grid, and already exist, you shouldnt need to do a new dataset and then set a value it..

the file should be generated,..

LizR 171 Posting Virtuoso

Inform both frames to run a command when clicking on a link by using javascript.

LizR 171 Posting Virtuoso

Well.
If you look at frm27 in the samples folder, it does show how its done..

LizR 171 Posting Virtuoso

That doesnt sound normal. As long as your form calls invalidate it should paint, and as part of your paint it should draw the openGL part.. I dont see ayn reason that wouldnt work.

LizR 171 Posting Virtuoso

Is this onclick in the html file or your c# app? I dont see why you would have a problem doing 2 loads in 1 call.

Perhaps some code showing the non working code would help us..

LizR 171 Posting Virtuoso

You can do it as an infinite loop you would just need to call a function to do te drawing on each of the relevant forms in the loop.

LizR 171 Posting Virtuoso

Id suggest zipping your code, uploading it somewhere so we can take a look.

LizR 171 Posting Virtuoso

Is there any reason why you cant page the data so it displays in say 25-50 line chunks? That always helps speed, it also assists when you are retrieving huge quantities from a db etc

LizR 171 Posting Virtuoso

sounds like it needs debugging sounds like its not being set the way you think.

LizR 171 Posting Virtuoso

Hmm, Im wondering, if perhaps it shouldnt be in initializeComponent, but, after, maybe in form load..

LizR 171 Posting Virtuoso

Can you show some code? its possible its not doing it when you think..

LizR 171 Posting Virtuoso

count items by the address lines or postcode or whatever you decide is the same name, then where records have a count > 2 you join them with a select on name where the address lines = the lines which had more than 2 records.

LizR 171 Posting Virtuoso

You do need to handle the context for multiple selection differently than single connections in the code, I dont believe its the %1 persay thats the problem, I think its the code you use when you run it, I havent written such an app in c# however, I wrote one in win32, and I distinctly remember having a similar issue.

Whats the code you have? Are you testing to see if you were handed multiple files as while I dont have the code to hand, Id probably be able to spot something if I saw it.

LizR 171 Posting Virtuoso

I dont see why you can only get 1 command line arg, while there is a limitation, you should be able to get the rest

LizR 171 Posting Virtuoso

for each button you have you need to assign the click event to a procedure that toggles the color, you dont need to do a loop throuhg your rows and columns necessarily, as the sender object will be your button you clicked, so, you culd just do

if ((Button)Sender.Backcolor!=Color.Black)
{
(Button)Sender.Backcolor=Color.Black;
}
else
{
(Button)Sender.Backcolor=Color.White;
}
LizR 171 Posting Virtuoso

have a search on this forum, there are already examples of that. ( Google has a load too )

LizR 171 Posting Virtuoso

and at which line (just to be sure)

LizR 171 Posting Virtuoso

comma separated values

LizR 171 Posting Virtuoso

Well, we wont code it for you, but save yourself time and export your data in csv format but with a .xls extension and excel will open it, it wont be pretty but it will open in excel and be in columns etc..

LizR 171 Posting Virtuoso

Looks reasonable, only thing that might be usefulw ould be what if its not the primary screen ?

LizR 171 Posting Virtuoso

At first glance the one thing that comes to mind is that the date parameters, are you sure its creating the correct select statement? in terms of, it potentially could be not placing the date values where you think.

LizR 171 Posting Virtuoso
LizR 171 Posting Virtuoso

Why not? what error does it give?

LizR 171 Posting Virtuoso

Because you said "Form3.textBox1.Text" you're not accessing the variable of the form you just created... you're trying to access the class direct, change "Form3.textBox1" to "form3.textBox1"

LizR 171 Posting Virtuoso

You have to read and parse the xml.. you cant avoid that.

LizR 171 Posting Virtuoso

Load the XML into a list/array of a suitable structure and linQ it.

LizR 171 Posting Virtuoso

Well, as per the stickies, you show us what you have, explain the problem you have with it, we'll help you try fix it, we wont do it all for you

LizR 171 Posting Virtuoso

yep or, allow for all the fields in the table.

LizR 171 Posting Virtuoso

Or you could have googled and found http://www.codeproject.com/KB/IP/ListNetworkComputers.aspx which hooks into the windows api

LizR 171 Posting Virtuoso

If your datagrid has a datasource you could just try calling its writeXML function, if it doesnt have one, then this could be more interesting in that you should try creating one and assigning it with all the properties for your dataset on creation and then you could call the writeXML later.

LizR 171 Posting Virtuoso

Look for a barcode font.