microsoft.public.dotnet.framework.windowsforms Archive - June 2004
Post a message to this list
Messages
Page: 12345678910111213
STAThread and ActiveX instantiation (4 replies)
microsoft.public.dotnet.framework.windowsforms
Consider the following error that I receive when trying to instantiate the web browser control: An unhanded exception of type 'System.Threading.ThreadStateException' occurred in system.windows.forms.dll Additional information: Could not instantiate ActiveX control '8856f961 340a 11d0 a96b 00c04fd705a2' because the current thread is not in a single threaded apartment. Applying the [STAThread] to my...
FolderBrowserDialog root folder on "My Network Places" (5 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
hi all, how can I set a FolderBrowserDialog root folder with "My Network Places"? I can't find a proper value for the RootFolder property (Environment.SpecialFolder.???) What I aim to get is a diaolg as the one you get clicking the "Browse" button in Windows Explorer "Map NetWork Drive..." dialog. thanks Fred Federico Sasso &8v http://www.crt.unige.it/jsSQL The jsSQL Project JavaScript Database an...
DataGrid_KeyUp event not fired? (8 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I'm having a DataGrid in which I want to control the behaviour of my Arrow Keys. Unfortunately I'm not able to catch these events. I thought the KeyUp/Keydown/KeyPress events, but these are only fired when the DataGrid isn't editable. Does anybody knows how I can catch the Arrow Keys when navigating through a DataGrid? Thanks in advance, Pieter
Data Connetions and Adapter (2 replies)
microsoft.public.dotnet.framework.windowsforms
All If I develop an app on my computer and have a local copy of SQL, I use it for my data connections. Now, when I release it to clients, do I have to go back and change my 10 or so connections to point to the SQL on the server. What is the best approach for handling the automatically configured connections? Thanks, Brian P. Hammer
How do I add a column of buttons to a bound DataGrid control? (6 replies)
microsoft.public.dotnet.framework.windowsforms
I have been trying to do this for hours with only limited success. I have no idea why MS makes something that should be so straight forward a real pain. Can anyone point me in the right direction?
how to integrate "Windows Picture Viewer and Fax Viewer" (shimgvw.dll) of Windows XP in my c# app? (3 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
hi all, i want to use "Windows Picture Viewer and Fax Viewer" in my c# app to manipulate images, picture viewer is found as a DLL (shimgvw.dll) in System32 folder of WinXP. can some one tell me how can i use it in my C# app? TIA sci
.NET Application Updater Component: how to handle an OCX? (4 replies)
microsoft.public.dotnet.framework.windowsforms
Hi, I have an VB.NET application that uses an OCX for some control. I integrated the application with the .NET Application Updater Component (http://windowsforms.net/articles/appupdater.aspx) to copy automaticly new versions of the application to the clients. The problem is: it copies the OCX, but the OCX isn't registered. Everything works fine until the the directory of the old version is deleted...
Basic forms\threading question... (3 replies)
microsoft.public.dotnet.framework.windowsforms
I know it is a no no to [directly] manipulate a UI control from a thread other than the thread used to create that control. I have a situation where my my form loads an assembly, then registeres a callback with a component from that assembly. The component has its own internal thread pool. I am not sure what to do when I am called back (at which point I am running on a thread that cannot update my...
Menu in Arabic (2 replies)
microsoft.public.dotnet.framework.windowsforms
Dear All I am implementing a desktop application in arabic. i have made a menu (from right to left) i set the property, and when it run it appear from right to left But, when i press on any item, the Menu item is reversed suddenly (from left to right) while it is still right justified what is the problem, and what can i do to maintain it right to left all the program thanks a lot
Manifest for XP style from a DLL? (5 replies)
microsoft.public.dotnet.framework.windowsforms
If I am creating windows forms from a DLL rather and EXE can I use a manifest to give it that groovy XP style? If so, do I name the manifest myapp .dll.manifest? First attempts at this aren't working, which is why I ask. TIA.
How does Usercontrol make reference to it's container form and other Usercontrols? (2 replies)
microsoft.public.dotnet.framework.windowsforms
Can anyone give me an example of how a 2 Usercontrols sitting on a single container Winform can make reference to each others properties and methods and those of the parent form that they are contained within?
Threading (3 replies)
microsoft.public.dotnet.framework.windowsforms
All I have the need to make my app multi threaded for those long running tasks. Some of them are not a problem but the question I have is with SQL and populating items on a form. If I create a new thread, connect to my SQL, run a long query and then populate a combobox within this new thread; I am guessing I should not do this. Somewhere I read that items created on one thread should not be manipu...
Turn off inheritance of properties (e.g. Font weight) (2 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
Hello NG, i have a form (c#) with a tab control. If I change the weight of the font in the tab control all other fonts in the form (e.g. labels) also become this weight. It is a inheritence. How can i turn off this? Thanks, Roland
use of DISTINCT in DataTable.Select Method (4 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
Hi all is it valid to use DISTINCT operator in select method of datatable? if yes then what is syntax? thanks in advance Ansari
Location error placing dynamic user controls on a Panel (2 replies)
microsoft.public.dotnet.framework.windowsforms
I'm rendering a hierarchical list to an auto scrolling Panel within a web form. Each list entry contains sub fields which are expandable using " " button into child sublist entries and so on. To display the list and sublist entries, I recurse over the outer most list entries to display all children of all fields right most field first so as to not occlude previous child parent lines. Each list ent...
Form Textbox Problem (2 replies)
microsoft.public.dotnet.framework.windowsforms
I have an inherited form which has some textboxes on it. After I load my data into the textboxes I try to click in the textboxes to edit the data. When I click the data I am only able to put the cursor at the beginning of the text box regardless of where I click. I am also unable to select text with the mouse. if I put the focus on another form and return to the form the textboxes work as they sho...
how to get messages from SQL Server (2 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
hi friends, is it possibles to get the messages from SQL Server stored procedure in a VB.NET Application, including DBCC CHECKDB statement
Windows Forms App stalls after 20 minutes inactivity (4 replies)
microsoft.public.dotnet.framework.windowsforms
I have a Windows Forms application that makes async calls to Web Services... When I run the application, initially everything is fine. If I leave the app running for about 20 minutes and then make a web service call, I get no response. I check the web server logs, but it appears the call never made it there. If I close the app, reopen it, call the web service, everything is fine again. Anyone run ...
Determining if a form is active window (C#) (2 replies)
microsoft.public.dotnet.framework.windowsforms
Hi! I have several mdi and non mdi forms opened that are of the same or different type. I need to know how I can check if the form whose code is being executed is active at that time. I can not use ActiveMDIChild since some of my forms are not MDI forms. Is there a propertry or API I prefer managed code. Many Thanks for your help in advance, D.
calling methods in a running windows service (3 replies)
microsoft.public.dotnet.framework.windowsforms
Is it possible to create a Windows Service that will allow .NET applications to call it's methods and get returned values? If so, how is it done?
Embedding the WOrd Windows in Win Forms or other Windows COntrol (4 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
HI, I want to embed the Microsoft word window in my WIndows forms designed in C# ,net..... can anybody suggests, apart from using the Webbrowser control, what can be the other option avaialable to us. Thanks Vikash
Scrollbar as needed for TextBox (2 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
Is it possible to have the scrollbar only when needed for the textbox? I want to have no scrollbar unless the text fills up the textbox and then only the scrollbar should come up. Something like the chat window in windows messenger behaves like. Thanks Abdullah
Avoid a new record in a Datagrid (2 replies)
microsoft.public.dotnet.framework.windowsforms
I've a datagrid asociated to a datatable. I must avoid the user to add new rows to the grid, but the user can edit the values that already exists, so the grid can't be readonly. I didn't found any property in the datagrid or the datatable to avoid new records, also any events. I'm confused :s
Combobox Findstring problem (2 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
Hi all, I am having a problem setting the selectedindex property of my combobox. I am binding the combobox to a dataset and setting the Displaymember to my "product" and the valuemember to my "Productcode". I started trying to use the FindString method to find the Product code value but it does not work, Findstring only seems to find strings in the Displaymember and not the Valuemember, is there s...
Why do my groupbox sizes change depending on platform? (2 replies, VIP)
microsoft.public.dotnet.framework.windowsforms
I am having a problem with layout rendering changing size depending on platform. I have developed an internal WinForm app designed to run on a platform with a minimum resolution of 1024x768. The development platform has a higher resolution, however putting it into this resolution to check the layout works fine and everything looks as expected. However, I am discovering that other platforms, such a...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com