|
Thank you everyone, your responses have been very helpful. The problem is now solved. I decided to use an idea which some of you had suggested and that is to use the index of an array to achieve what I wanted.
|
|
|
|
|
Let's say I have a simple aspx page with a text box and a button. when the text box is filled and the button click, it will proceed to another page.
Now I want to use console app to make it run auto.
How can I do that?
|
|
|
|
|
|
I am prepared for the "wrong forum", "google the answer", "RTFM" replies but I have looked and found various methods of running a VB script, C++ dll etc. but none of how to execute an exe. The exe in question looks for a driver checks the version if its below the minimum it installs the minimum, if its above it does nothing. I guess that my question can also be seen as invite to all sorts of nasty code but!
Glenn!
|
|
|
|
|
Glenn, if you download the source to MoXAML PowerToys[^] I have added an installer that performs a custom action. Load the project and look at the project MoXAML.InstallHelper to see how I have implemented it.
In the file AddinInstaller.cs, modify the Install method to do what you need. One thing though - you don't need your code to be in a separate exe - you could actually put your check code in this helper, and call it from this method.
If you need to start an external program, all you need to do is call Process.Start to run that program (passing in the name and path of the executable).
|
|
|
|
|
Hi,
Done that this raises more questions. I was hoping that there would a quick method such as Process.Start(@"Driver.exe"); my question was how to use/implement a custom action as the MSDN version assumes you are doing A and only A, oooh heck I need
Glenn
|
|
|
|
|
I'm lost now. The code I've shown you shows HOW to write the custom install step. Are you not sure about how to add the custom install step?
If so, all you need to do (after adding a reference to your custom installer project into your installer) is to open up the Custom Actions node in the installer and right click on it. Choose Add custom action from the context menu then choose the assembly that contains your custom installer. And that's it - job done.
|
|
|
|
|
Sorry, I think that's what I needed to know, I think the issue was I had all the bits I wasn't sure or how to assemble it! (Airfix memory's )
Glenn
|
|
|
|
|
Sounds like we've finally got there. Huzzah.
|
|
|
|
|
Thanks, and sorry how MIL (last I heard thing were looking up)
|
|
|
|
|
She's good thanks. She's out of hospital and recuperating at home now. The operation was to remove part of her lower instestine and it seems to have gone without incident. She has to go back to the hospital tomorrow to be weighed and have her blood pressure taken, but we're hopeful that she's put this all behind her now.
|
|
|
|
|
I have created some web applications and now I want to create 'something' so that it will run everything automatically. I have no idea how can I do this. Anyone can give some lead? Is it I have to create dll and exe file?
|
|
|
|
|
Hi everyone, I would like to filter comboboxes. If I choose a certain value in one combobox, the following two comboboxes should only display the value of the first combobox or less. So lets say I choose an amount of 100 000.00 the following two comboboxes should only have 0 - 100 000.00 displaying in them. Any ideas on how to do this would be appreciated. Thanks for the help.
modified 19-Jul-12 7:33am.
|
|
|
|
|
Please tell me you aren't planning on having 100K items in a combobox. That would present a totally unusable interface for a user.
|
|
|
|
|
Sorry I should have been more clear. The amounts in the comboboxes are from 0 - 200 00.00 every 10 000.00 so 0, 10 000.00, 20 000.00 etc etc. Thanks
|
|
|
|
|
Ah good. For a moment you had me worried. You'd be surprised how many times we see people wanting insane amounts of data in there. As you haven't said which technology you are using, I am going to assume you want Windows Forms and would look to implement this using LINQ. Basically, you capture the selection changed in the first combobox and use that to change your DataSource on the second one using a query like this (for this example I'm assuming you've prepopulated an array called filterValues with your values from 0 to 200000):
secondComboBox.DataSource = (from p in filterValues
where p <= firstComboValue
select p).ToList();
|
|
|
|
|
How are you populating the comboboxes ? If you are really using integers as you suggest then you just need to handle the Selected Value changed event of the first combo, and then generate a List<int> and bind that to the other 2 combos, something like this
int uBound = firstCombo.SelectedValue;
List<int> intList = Enumerable.Range(0, uBound).ToList();
secondCombo.DataSource = intList;
thirdCombo.DataSource = intList;
This is off the top of my head, and is untested - but you should get the gist.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
|
|
|
|
|
Thanks for the reply. Im populating the boxes from a table in SQL.
|
|
|
|
|
If you hold a List of all the possible values, then you can filter that list using LinQ
decimal selectedValue = firstCombo.SelectedValue;
List<decimal> values = (from value in fullList where value <= selectedValue select value).ToList();
and then bind values to the second and third combos.
This assumes the values are decimals.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
|
|
|
|
|
That works great. Thanks for the help guys and special thanks to Wayne Gaylard.
|
|
|
|
|
How do i close this thread now guys?
|
|
|
|
|
Just modify your subject line by adding SOLVED on the end. The thread will remain for ever more in the annals of history.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
|
|
|
|
|
hi all,
i want a application that can send sms via bluetooth in two different windows mobile devices
like i send some msg or file from 1 mobile device to another mobile device
is it possible?
plz send me the source code if its exixt
thanks all
regards
ali
|
|
|
|
|
syedaliaizazuddin wrote: plz send me the source code if its exixt
Point 2 of "How to get an answer to your question" just above says: Don't ask "can someone send me the code to create an application that does 'X'.
So, do not expect an answer any day soon.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
oh ok dear i dnt knw what policies are here...
|
|
|
|