Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

halo

Name: Anonymous 2008-08-15 3:36

so I wrote a program in c# to keep rerolling character stats in a baldurs gate 2 window after finding them in memory and adding them up, and it works fine, except for one part of it..

I have an output box (created using a RichTextBox in a form) that shows how many times it's rerolled, current stats, best roll so far, etc but it doesn't work properly.

the program simulates mouse clicks on the reroll button and for some reason it will work and update and display the form for a short time and then the title bar of the form will turn that sort of faded blue like it lost focus and it won't display anything until the program is finished running.

I've tried using the form methods Show, BringToFront, Activate, SetTopLevel(true) setting TopMost=true and Focus, basically anything likely sounding, even right in the main loop but it still happens regularly some 5-10 seconds into running the program.

tl;dr I need a way of making a form in c# display and update when it's not focused, or to somehow keep focus while still letting me click another application? gah

Name: Anonymous 2008-08-16 12:30

OP HERE:

why do people hate computer engineers :(

>>18
My courses are sort of screwed up because of transferring schools and the disparities between the order of the courses at either one. I've taken some courses like Circuits Analysis 2 and Engineering Statistics and other bullshit that most other beginning 3rd years haven't taken yet, but on the other hand as of now all I have experience with is java (and c# :D). It'll (presumably) work out in the end.

>>20
I just took VHDL and I agree with you that it's retarded. I can't imagine they use it at any of the places I'd like to eventually be employed, but they probably do and I'll probably be stuck using it just because it would piss me off.

>>23
i lost


PS: If I were to pick either software engineering or computer science to minor in, which should I choose? Or something else entirely?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List