|
|
At a guess - C.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
who said it was built with only one language?
No hurries, no worries.
|
|
|
|
|
Most likely Brainfuck.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
My English is bad , so I am sorry firstly.
I want to using AxAcroPDFLib.AxAcroPDF to print.
Now I can show PDF-files in Windows Form only.
Could you give me some sample code of AxAcroPDFLib.AxAcroPDF who know how to using?
Master sample is how to Print.
May as well Add-ons of others methods of AxAcroPDFLib.AxAcroPDF.
Thank you very much!
|
|
|
|
|
|
I'm using the combobox method to validate input data, but the first set of displayed data doesn't get validated because the SelectedIndexChanged won't fire. I tried moving the dataload call into Form.Load but that doesn't work either.
|
|
|
|
|
How are you creating the loading of the data? Your validations should be done before populating the data controls. What event is firing to cause the population of the data? That seems to be the last place you would validate input.
|
|
|
|
|
Hi all,
I'd like to make it possible to store and retrieve the bounds of all of the windows in my mdi window so that the program "remembers" where the user opened a certain window when the program ran last.
To do this, I created a base class which stores the bounds of each window. My problem is this: How can I hook up the right windows to this data? Since some windows are created dynamically and can be instantiated multiple time I need some kind of unique ID for each instance (the window name will not do since this is constructed dynamically). Can I use the window handle for this? Do any of you have a suggestion that might help in this?
All help is greatly appreciated, thanks in advance...
|
|
|
|
|
You can't use the window handle because this is allocated a new one each time you open a window. You could always use the Tag property to store a unique name.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
How about the name of the class deriving from <code>Form</code>. Combined with the namespace name, surely it should be unique within your application?
|
|
|
|
|
Actually it wouldn't, since multiple instances of the same class can be opened at once. Thanks for the suggestion though.
|
|
|
|
|
Hi together,
first of all I'm sorry to post this question here but I wasn't sure where else to post it.
I'm trying to write a programm in order to track people walking past a webcam. What I actually need is their position infront of the camera.
I have tried several things until now. Using different software. MAX/MSP, Java, and OpenCV/C++ which seems to be the best thing. I'm also working on EyesWeb which also uses OpenCV. I need to transfer the data I get to Flash. EyesWeb does that via OSC.
But I'm still not sure which language to use or which language will have the best performance.
Now I found some articles about tracking in C#. Does that work good?
Sorry I'm new with programming in C/C++/C# I'm used to programming in Java.
So I'm still not sure if OpenCV and C++ is the best thing.
In EyesWeb I tried to use Background Subtraction in order to get silhouettes of the people walking by. The problem is that the webcam has too much noise and the programm analyzes motion in parts where there is none.
Afterwards I wanted to use blob extraction to get the position of the people. The second problem was that sometimes a color has the same gray value as the background and then there's no differnce in that part
Then I heard about block matching which might be better, but I'm not sure. Is this the right algorithms for my project?
Does anyone have experience with this kind of tracking?
Hope you can help or have some hints
-- modified at 9:46 Monday 30th October, 2006
|
|
|
|
|
Don't know if you have seen this in CP?
Motion Detection[^]
The author has a couple of articles dealing with motion tracking etc.
I still remember having to write your own code in FORTRAN rather than be a cut and paste merchant being pampered by colour coded Intellisense - ahh proper programming - those were the days
|
|
|
|
|
Yes thank you,
I have already seen this article and it's very interesting.
That's what got me to think about using C#.
But I'm still not sure what to use.
I heard that using C++ runs a lot faster then C#
|
|
|
|
|
|
Hello everyone,
I have a problem with my Settings
I want to save my connection string in the Settings.
I initialize a form and fill the textbox:
<br />
Settings.settings = Settings.Default;<br />
tb_ConnectionString.Text = settings.ConnectionString;<br />
I can change the string in the gui:
<br />
settings.ConnectionString = tb_ConnectionString.Text;<br />
Now, everything is fine. For testing I changed the connection string in the gui and this changed string appears in the settings.
I changed the connection string in Visual Studio back to the correct string.
This string appears in the settings, in the Settings.Designer.cs as the default value and of cause in the App.config
Now I start the project again an while initializing:
<br />
Settings.settings = Settings.Default;<br />
tb_ConnectionString.Text = settings.ConnectionString;<br />
setting.ConnectionString is wrong. It is the old/changed string
I removed the setting key, recompiled, added again the connection key to the settings but again the old connection string.
I searched for old string in my project but found nothing.
Restart of Visual Studio...again th old connection string.
How does VS get the old connection string and how can I avoid that?
Thanks for help.
KCT
|
|
|
|
|
I believe the config file is in your application settings folder, not your build folder.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I found the problem...the feature
It is a user config and there was an old one in the application directory of the user profile.
Thank you for your help
|
|
|
|
|
Can I get my C# code to recognise that the user has UNSELECTED an item in a list box so I can the do something with the Index.
My code is handling the SELECTING of an item correctly and adding the selection to a database table.
If they then unselected the same item how could I detect this and delete the selection off the database.
Is there an UNSELECTION_INDEX_CHANGED type event handler?
Thanks in advance
|
|
|
|
|
Hi,
there isn't such an event. As the SelectedIndexChanged event is also fired when something is getting unselected (as far as I know) you could always compare which indices are newly selected or unselected.
Robert
|
|
|
|
|
there is nothing to check for 'unselected'. you will have to use 'selectedindexchanged' and will have to keep track of the previous indices. you can do so by temporarily storing their values in variables.
regards
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
i want to implement cache mechanism in C#
as i have to access data from the database each time i would like to implement cachememory to store all the data into it once after that i want to access from it.
But i don't know how that can be implemnted in C#
please help...
|
|
|
|
|
|
Hi,
I have made a setup project in VS2005. It has some pre-requisites. When i compile it in Release mode, it generates a folder for each of its pre-requisite. What i want to do is to package all the files,folders and other things in a single file which the user could click to start installation. Is there any way to do it in VS2005? If not, can you suggest some third party software for this purpose?
Sorry, A little piece is left that is how to pass command line options to the EXEs of the pre-requisites those are generated when the setup project is build in the release mode.
Accept my advance thanks for your help, suggestion or even just comments...
Wasif Ehsan.
-- modified at 7:32 Monday 30th October, 2006
|
|
|
|