|
Yes, you are correct.
Let's say you open the application, then, you open internet explorer (example). You go back to the application, then the keystrokes won't be recognized.
This happens if I open an mdi child too. After i closed the child, the the parent wont see the keystrokes anymore.
Did i mention this is MDI application. :P
Thank you
|
|
|
|
|
I haven't seen this problem myself and I can't find any information on it either. It could be caused by something you have installed on the machine.
When you close the child windows, does the MDI form show that it got the focus? The title bar of the window should turn Blue again.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
2 situations here.
First one, is when i have 2 mdi children.
I tried to test it by putting the following code on 1 mdi child form.
me.text = "deactive"
in my onDeactivated event.
and
me.text = "active"
in my onActivated event.
When I choose another mdi child, The Text changed to deactive, but when I switch back to the first mdi child, the text doesnt change back to active.
Second, With the MDI Container itself. I tried the same method, on the mdi container
I opened another application, and choose that application, the text on the mdi container is change to deactive, and when i switch back to the MDI application, the text changed to active again .
However, it still doesn't recognize the keystroke. I think it's not the focus that we're talking about here. I dunno what it is, but it sure is weird -_-
thanks
|
|
|
|
|
The first thing I'd look into is disabling everything I don't need on the machine. After you login to the machine, hold down one of the Shift keys to stop everything in the Startup folder from executing, then try your app again. I still can't find anything about anyone else ever seeing this kind of problem.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hello.
A beginner programmer here.
I am trying to read a file. I am currently able to read the file in and write the file to a new file location. There are between 4,000-7000 records with each record 56 lines long. I need to read the invoice date located on line 7 of each record(or line 7,63,119,175 etc) & Column 45-53 . How do I loop thru to find the invoice date and then compare the date(datediff). If the posted date on the invoice is greater than 10 days from today() date, I want to append "old" next to the invoice date and write the appended line to a new file, example "08/02/06old". If the date diff is not more than 10 days then I want to ignore and write the line exactly as it is. I need to write the entire file to a new file while only appending any lines that are greater than 10 days. If someone can show me in code that would be so helpful. Thanks
I can attach a sample file if that would be helpful
mark
-- modified at 15:28 Tuesday 15th August, 2006
|
|
|
|
|
MrMarkH wrote: There are between 4,000-7000 records with each record 56 lines long.
That is ludicrous. At this point, you need a database.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Please define ludicrous. I am not an expert by any means but I feel you are way off the mark with your comment, if you could explain or better yet show an example then maybe I can better understand your position. I am recieving a flatfile and would like to change the file based on my stated criteria. If you can help, then it is appreciated.
|
|
|
|
|
4-7,000 records is WAY to many to store in XML, let alone plain text, even if they were all one line long, rather than 29.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
You may be right but I am recieving different info so I will proceed in another direction. Thanks
|
|
|
|
|
I am absolutely correct. What happens if a line break gets lost in the middle of your file ? How do you recover the records below it ? How do you search this data ? I'd love to know who is telling you that a 200,000 + line text file is a valid data store ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I am planning to Read the file using the file stream method and write out using the stream writer method. I then thought I would make an array and split on the crlf and then loop thru each Line 7 or either locate the first instance, and then loop thru every 56 lines(strNewline += (strNewline + 56))
|
|
|
|
|
If you're not written it yet, please don't. It is *insane* to do it this way, you can use SQL Server Express, VB.NET has wizards so you don't even need to know SQL ( although I don't recommend them generally, they offer a place to start ), and you'll get faster retrieval, individual record lookup, easy editing, and much safer data storage.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
200,000-400,000 lines??? You better pray that the file is absolutely perfect! If not, you and your data are screwed! Can I ask who on this earth told you this was a good idea?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I already asked that
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Yeah, it would have helped if I read the entire thread, wouldn't it?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
It's all good. At least you agreed with me ( not that I could see many people not agreeing on this one )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi All
How can i Save And Read Image Into SQL Server 2000 Database
By Using (VB.NET Web.APP)
thank you for help
|
|
|
|
|
Please i need help, I am making a program for my friend and i have a problem with searching strings and numbers in listbox.
Exsample:
Listbox contains items like:
054 - Tree
056 - Box
087 - Coke
089 - Keyboard
e.t.c.
And now i have two radio butons... One is Searching by Id and other is Searching By name.
If i select radio id button i want that it searches in listbox just the number before text in item. So if i type 056 in textbox that it selects the item that starts with that number.
Or if i select the tex radio button i want that it searches for text typed in textbox. So if i type Coke in textbox that it selects item that contain that text.
Please help me solve that problem.
Thx.
|
|
|
|
|
I remember you, from this[^]!
"NO SOUP FOR YOU!"
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Oh man i told u that i am sorry to act like that... I have apoligized to you look at reply 8LOOK.
Well no sup for me... thx
|
|
|
|
|
Dave please if u know how can i do this please help me...
Please Please Please....
|
|
|
|
|
FeRtoll wrote: And now i have two radio butons... One is Searching by Id and other is Searching By name.
If i select radio id button i want that it searches in listbox just the number before text in item. So if i type 056 in textbox that it selects the item that starts with that number.
Or if i select the tex radio button i want that it searches for text typed in textbox. So if i type Coke in textbox that it selects item that contain that text.
Doesn't sound hard. I would have a flag based on which radio button your user selects, and then handle the listbox based on that flag. This is rather easy, so do it yourself
That's no moon, it's a space station. - Obi-wan KenobiLast modified: Tuesday, August 15, 2006 12:51:19 PM --
|
|
|
|
|
Ya the buttons are not actual my problem problem is how to search the listbox for the numbers or text as i explained... Try read my question without looking about radio butons.
Buth thx annyway
|
|
|
|
|
I have many rows in my dataGrid. The first column is a dataGridBoolColumn or a checkbox.
As I move from row to row checking the checkbox, I get the following error:
The ListManager's position must be equal to rowNum.
Parameter Name: rowNum. Do you want to correct the value?
What is this? What is the ListMAnager? Google answers aren't very clear. Please help!
|
|
|
|
|
I am using windows forms, .NET 1.1, VS 2003
|
|
|
|