|
How much more clear could the message be?!?
Hold on, with my psychic powers I can determine that your application has some functionality that relates to Microsoft Excel. Am I right?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
But from where do i downmoad it from, i tried updating office with sp3. has not solved the problem yet.
Could any one provide a link to the download,..
Thanks
|
|
|
|
|
I tried looked for dll files for office before and could not find. you need full version and maybe you can copy them from there.
I believe the version you want (8.0.0.0) is excel '98 so you need to get a copy of that and use those files. If you did not want to use such an early version then you need to specify the version in your code. But you will still need the appropriate files on your target machines.
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
hi guys,
i am trying to get the text from the checked checkbox in my checkedlistbox ..
i write this code this.textBox1.Text = this.checkedListBox1.CheckedItems.ToString(); but i don't get it...
it retutns this
System.Windows.Forms.CheckedListBox+CheckedItemCollection
i would appreciate if someone help me..
thanks in advance...
|
|
|
|
|
Checked Items is a collection, as you can see. You need to use foreach to step over this collection, and get the names of all the checked items.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
You mean you want to see Check
foreach (string checkedval in this.checkedListBox1.CheckedItems)
{
}
|
|
|
|
|
Hi there.
I'm trying to write a c# code that will automaticaly initiate a user login, if the user is logged off for a given period of time.
I've tried using the ADVAPI32.DLL's function LogonUser, but apparently that is used for impresonation (am i wrong?).
So, how is that done?
In addition, i failed to find a way to check if a specific user is logged on or not.
Any idea?
Thanks,
SummerBulb
|
|
|
|
|
Although I believe you can write C# code in a service that will run when a user is logged off, I doubt you can log on through such code.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
How are you planning to run your code while there is no user logged in? Do you not think this defeats the purpose of having a login?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
The code will run as a service.
I've already managed to run a c# application as a service.
That's the easy part.
Although, is should be takan into consideration that in order to run a c# app in th logon window, is has to run under SYSTEM.
That might make things more complicated.
|
|
|
|
|
|
Hi,
i have a form with 3 combobox which is bind to datatable
i use combobox.datasoure to bind to datatable
And on 1st combobox selectedvalue i need to send the cbo text to database and get another set of datas and populate 2nd cbo with datatable
So for this, if i use selectedindexchanged event it is fired so many times...
this event is fired when i bind the combobox to datatable using
combobox.datasource = datatable;
so after googling i use selection change committed event
this event is fired after user selection and before combobox dropdown closed....
and this event doesnt fire on datatable bind.
But my problem now is, in selectionChangeCommitted event, the combobox selectedvalue is currently selected value and the combobox.text is previously selected text , so i cudnt pass the combobox selected text to database to retreive the datatable...
cud anyone plz help me to resolve this issue?
thank u
|
|
|
|
|
Are they all bound to the same table, or to copies of it ? If they bind to the same table, they will keep in synch with each other.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
No they are not bind to the same datatable...
depending on 1st combobox's text, i need to fetch different set of data from database and populate 2nd combobox
|
|
|
|
|
I'd set up the datasource, THEN write the code to bind to the event that you want to bind to.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi,
thanks for ur reply.
I know how to bind the datatable to combobox datasource.
But the thing is, on selectionChangeCommitted event, the selectedvalue gives currently selected value, bu t the combobox text is previously selected value...
i want to get the currently selected text...
|
|
|
|
|
You said that using the selectedindexchanged event worked, but it fired a lot as it binds. I am saying, use that, and connect it AFTER binding.
Also, go into the debugger, and check if SelectedText or just Text is the right property to get the new value.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Can u plz be more acurate in "connect it after binding"...
i really cudnt get wat u mean.....
i have written the below statement in form load...and this is the first combobox... depending on this value i need to get datatable for 2nd combobox.. But as soon as i bind it fires indexchanged event.
combobox1.DataSource = dtSubclass1;
after this statement, selectedindexchanged event is fired.... but i dont want it to be fired..
|
|
|
|
|
vidhyaravichandar wrote: after this statement, selectedindexchanged event is fired.... but i dont want it to be fired..
Well, it's really simple. Don't hook up the event until after you set the data source. As I said.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hey.
I am having a application that uses a IE webbrowser control.
I know how to set a proxy overall for IE, but is there some way I can use a different proxy from each application with the webbrowser, that I have open ?
Or is there are smarter webbrowser control that can handle more proxies than just one?
|
|
|
|
|
Have the strangest problem, the NotifyIcon component will not "popup" its notifications under Windows 7. I even went into notification settings and explicitly told windows to always show all the icons and notifications, still nothing.
To make sure I wasn't going insane I copied the program to a Windows XP box and the notification icon worked as expected.
No to be defeated, I loaded up the registry on the windows 7 box, found the notification key "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\EnableBalloonTips" changed the value from 0 to 1 and still nothing.
Has anyone else seen this problem.
Matthew Hazlett
Fighting the good fight for web usability.
|
|
|
|
|
The NotifyIcon doesnt show when Icon is not specified to it.
Assign an ICON to it and see if it works now or not.
|
|
|
|
|
it works icon and all in windows xp
Matthew Hazlett
Fighting the good fight for web usability.
|
|
|
|
|
Think maybe its a bug. All the notify stuff in win 7 is on yet it wont work. Works like a champ in xp.
Matthew Hazlett
Fighting the good fight for web usability.
|
|
|
|
|
i have get the names of headers of excel file and i have to list them in a specific column of a grid control.any idea hw can i do that?
|
|
|
|