|
Any one know how to resize the Column header height in ListView?
|
|
|
|
|
|
Hi All,
I have made one window service in which i have included some COM components like Microsoft.Internet Control.
In a seperate Window application my code is working properly but when i integrate that code in my window service in gives me COMException like
System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {9BA05972-F6A8-11CF-A442-00A0C90A8F39} failed due to the following error: 8007000e.
Is there any solution for this kind of error????
Thanks in advance
Himal Rupera.
|
|
|
|
|
hi,
I want to update the column(reorder) after i drop a column inside the datagridview. The updation is based on the column index value. when i drop the column to the datagrid it get add at the last of the datagridview. Have any logic to over come this.....? so that i droped it should display at the droped position....
|
|
|
|
|
|
Hi, first of all just want to say that this site is really helpful, thanks
Well my question is in the title. I have a Windows form whose background is an image with gradient colour. In this form I have a tabControl. I want the background of the tab pages to look the same as the background of the form. But since the tabControl does not cover the whole form and the background image is gradient, simply adding the background image that I used for the form, as the background image for the tab page will not work, the colours will be different etc. Is there any way to make the tab page totally transparent, such as you can see the background of the form while in the tab page?
I have looked around the internet and there doesn't seem to be possible
Any help is much appreciated, thanks.
Edit: By the way im using C#
modified on Wednesday, June 18, 2008 6:06 AM
|
|
|
|
|
It will be difficult for the consistency you are looking for because the tabcontrol takes part in the visual styles of the OS. To get what you are asking you might have to create your own tabcontrol (or modify an already custom tabcontrol (it will be easier to find then transparent tabpages)). I suggest googling or codeprojecting for a custom tabcontrol.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Yeah, your right, it would be much better for me to make my own, it shouldn't be too hard. Thanks for your help.
|
|
|
|
|
how can i read a file another process in reading/ writing.
|
|
|
|
|
If another process is reading/writing to the file, the file may be locked and can't be altered except by the calling thread.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Hi all ,
I'm working with windows application . in this i used one web service to get details from database .
could any body give me references or explanation about deploying this application with web service and database .after deploying and installing it should work in different systems .....
Thanks
C.S.N
|
|
|
|
|
hi friends...
i have a calender scheduler control requirement in my application. i need outlook like calendar scheduler in my application.
Is there any control available for that?
How can v save the events (format).?
Does v have to save in a the database/Xml/other format?
Please provide me a solution to sort out this....
Thx n advance..
|
|
|
|
|
I guess if you google, there are probably third party controls you can use.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi...
if u dont mind.. i have a genuiene question.. m using google for many years.. but last week i found that , m very bad to search n google. And ten i searched , how to do a efficent searching. but still m not getting a clear idea. so can u please give a proper guidence for this .
Thnkx n Advance...
|
|
|
|
|
He has an article on the subject. Click[^]
|
|
|
|
|
Easy - there's an article linked to in my sig that will help you.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
This issue is with respect to Windows Application
I have 2 comboBox in the same row of a DatagridView. When I attach an event one of them, the other comboBox also fires the same event. How can I attach an event only to a particular combo in a DataGridView
|
|
|
|
|
Hi Friends,
I need to develop a plugin to add my own toolbar in Outlook express/ Windows Mail.I tried to get handle of window mail window (while it's running); then placed my toolbar in some desired position in the windows mail window, but as we hide some of the toolbar window; my own custom toolbar gets displayed;
kindly help me in this; as Microsoft Outlook has its own object model and allows to customize its GUI and rest handles by itself.
Do we have any such mechanism to use for GUI customization, in case of Outlook Express/ Windows mail also.
I am using win32 c.
Kindly help me in whatever way you can , coz I really NEED it ASAP.
Thanks in advance!
dolly,
N,IN
|
|
|
|
|
dolly wrote: coz I really NEED it ASAP.
Of COURSE you do
dolly wrote: I am using win32 c.
Windows Forms means .NET Windows applications. You could try the C++ forums ( NOT managed C++, that's .NET, too )
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Can someone assist me in how to get data binding to work across multiple forms. Here is the scenario: I am using a dataset with about 20 tables. I have a central form where i display read only lists of about 10 tables. The user selects an item from any displayed list to go to another form where the user can edit the item or go deeper into other related tables.
Unfortunately, i cannot get the binding to work. I tried passing the binding source it didn't work. I keep getting constraint errors. Also, the data is not showing up (as if the actual reference is not valid).
I am new at this so i am lost as to how to proceed. I have looked in books and articles but no help there. All the books or articles provide overly simplified examples.
If anyone can help, i thank you in advance.
wjprice
|
|
|
|
|
you would have to instantiate(sp?) an instance of each form, with public controls(bad idea) then you could access the controls to databind them, and when you wanted to show that perticular form use the instance you already have to load it, not necessarily the best idea...another idea is to load a dataset with all of your data in different datatables(you probably already do this) and then pass the dataset to a public property on the form before you call form.show() so that when you call form.show and the form_Load event fires you can use the dataset you passed to load any data that form needs.
something like :
form frm = new form();
frm.DataSetProperty = dataSet;
frm.Show();
and in form_Load you just bind whatever controls you need based on the tables in the dataset, you could just pass dataTables, but it sounds like you need more than one table per form.
hope this helps.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Thank you for your suggestion. I tried the suggestion you mentioned: setting the dataset of the second form to the dataset of the first form.
Unfortunately, it did not work. When i tried this the list that i was using to show all items in the table was empty.
If i keep the dataset independent of the first form i would see the (newly entered items) in the list on the second form. But the first form would not show these items. On closing the app and getting back in both lists (first and second form) would show the newly entered items.
Somehow passing a reference to the dataset to the second form is not actually "happening". That's where i am "stumped".
by the way, i am using only a test app at this point. Two forms only. My dataset has an empty table that i am using to find a way around this.
Here is the code i used on the first form:
FormSite form = new FormSite();
form.ePaDateSet = this.ePaDataSet;
form.Show();
On the second form i have the dataset, bindingsource, and tableadapter, and a listbox. I used drag and drop to set up the listbox from the data source window.
Again, i do appreciate your help in this matter.
wjprice
|
|
|
|
|
i never use the drag n drop setup for that stuff so i dont know how it sets things up..i usually use dataviews to bind to controls
DataView dv = dataSet.Tables["tableName"].DefaultView;
you can do sorting here with the dv.Sort property
lstBox.DataSource = dv;
lstBox.DataBind();
I've never used a table adapter. Once you alter the list you'll have to re-bind each control that references the dataset, so that they read the new data, it wont happen automatically, i dotn know how you are adding things to the data but if you arent using the list box to do it you'll have to call its databind method (assuming the dataset is updated, if not you'll have to get the data from the database and rebind that way). It could be loosing the refernce to the dataset in the first form when the first form goes away. try this:
wjprice wrote: FormSite form = new FormSite();
form.ePaDateSet = this.ePaDataSet.Copy();
form.Show();
that should create another instance of the dataset if you watned to keep one on each form, but you may have issues with them getting out of synch, so keeping one dataset is a good idea, if possible.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I will try the dataview method. I am beginning to realize that the automatic method of using binding sources was not meant for "actual" usage but is perhaps just a "gotcha". All the books and articles i have read use your method. I have refrained from that since it requires a lot of manual coding. But i realize now that i have to bite the bullet and do it.
Thanks for getting me started. I will need to do a lot of practice. ...and since i need to do things the manual way i may as well go into objects and use data libraries as well. I didn't want to go to all this but perhaps there is no alternative when programming for the .net.
Again, thanks
wjprice
|
|
|
|