Answer Questions
Alberto Ramacciotti WebBrowser stealing focus
Hello, I would like to ask. I have WebBrowser component in my WinForms app (.NET 2.0). I display my own html pages without navigation. The WebBrowser intialization is: this .dataDisplayWebBrowser.Navigate( "about:blank" ); this .htmlDoc = dataDisplayWebBrowser.Document; this .htmlDoc.MouseDown += new HtmlElementEventHandler (htmlDoc_MouseDown); this .htmlDoc.MouseMove += new HtmlElementEventHandler (htmlDoc_MouseOver); Displaying page: this .htmlDoc.Write(html); this .dataDisplayWebBrowser.Refresh(); Problem: When I click to the browser once time, it gets focus. It is OK, but after all new pages displaying, it gets the focus again without need to click. I want to prevent it, be ...Show All
Aniruddha Surange Share one form across several application
Hello, I wonder is there a good solution to share one startform across all the applications without including this form every time in the app. it's kinda like a dll method where we only need to reference to it. and also a change in the form will reflect across all the applications. Create a project for all the forms you want to be reused. Change the project compile setting to Class Library in the Project Property screen. Then you can just reference that project in any other projects in your solution. (moved to winforms forum) A form is just a class, I'd expect you could put it in a dll and call it from there. If the DLL is a .NET DLL then you can just add ...Show All
Noorul Ahmed Control for docked "flyout" (unpinned) panels?
I'd like to include a pinned/unpinned navigation window in my C# Winforms app that works like the docked windows in the VS05 IDE that are docked on the side with an icon and legend. In the unpinned mode it should open smoothly when you hover over the icon. I'd like to display a treeview in the panel and have the pin/unpin toggle icon as in the IDE. Is there a control that can reproduce this behavior in a Winforms app Edit: I found this: http://xceed.com/Docking_WinForms_Intro.html. I was hoping to find a free version. Thank you very much, Gavin. That sounds perfect. I don't know why that didn't turn up on my first search at Sourceforge. I will give this a try. I ...Show All
Haashole cross problem of two box
i cant find the correct Subject :( in my form my listbox and a picture cross.. i added photo in this link: http://img157.imageshack.us/my.php image=reia1.jpg picture's location is 677; 12 and the listview's size and location is like this: this.k.Bounds = new Rectangle(new Point(0, 0), new Size(650, 720)); listview finishes at 650 and photo begins at 677 why this cross happen at another pc it works correctly at my pc.. can you please help me What's the display settings of the two PCs Try another PC and see if it only works on your own PC. ...Show All
Prashanth Nethi How to show the caps lock is on balloon warning like Windows
Does anyone know how I can show that balloon that windows shows when you are trying to logon and your caps lock key is on There are some VB examples out there of how to show balloons, but I need to show one using C# not VB as a warning to users when their caps lock key is on and they are trying to logon to an internal system. Anyone have any links to how to do this in C# or some C# code that will do this I would appreciate it. Thanks, Nathan Nathan, I haven't tried this yet myself but it may help you with future conversions. It is a site that allows you to convert from VB.Net code to C# code and Vice Versa. Hope it helps.. http://www.developerfusion.co.uk/utilities/ tattoo ...Show All
jms04081974 update problem
I have a dgv displaying bills. if that bill is referenced in a costing table, when updating the record and pressing save, it does not allow updating. thats good. if i make a change, go to another row and then press save, it does update. not good. why is this happening table bills pk - billid table costing fk - billid no cascade on delete,. and update. still if i update a record in bill, it allows in according to the situation explained above, so if i save 1 record, it doesnt allow. if more than 1 record is updated then save is pressed, it allows update. ...Show All
Paukstis viirus
Help! Got a virus and can't get rid of it. It's called "advertismen. I've got a 98se. I already used Ad-Aware SE Personal, But it did nothing. Any suggestions Thanks Have you tried antivirus If you are not willing to buy, you can try following http://free.grisoft.com/ ...Show All
Martin Schmidt Controls which resize themselves !
Hi all ! I use Visual Studio .NET 2005 SP1 (+ Updates for Vista) on Windows Vista. I have a strange problem in a WinForm application. In a UserControl, which inherit another UserControl (simply contains a SplitterPanel), I’ve added controls (most of them are TextBox with the property Anchors set to Left and Right) to Panel2. All theses controls fits in the UserControl and when I resize it, all the controls have the correct behavior. My problem occurs when I compile the solution. After a sucesseful compilation, if I re-open (of may refresh itself) the Form Designer, all my controls are out of the UserControl! Does someone have seen that before Any ideas Thanks for your help! ...Show All
Leebo31 Outputting characters where I want them
I'm looking for a way to put a character (of a color of my choice) at a certain spot on the screen. It can be a windows app or just the console. I'm new to C# so I'm not sure how this can be done. The only thing I can think of is slapping an array of textboxes on a window in a 20x20 grid, but that seems mighty inefficient (or is c# capable of handling 400+ textbox objects without slowing to a crawl ) If you've ever played Moria or Angband, you know exactly what I'm trying to accomplish here, any help would be most appreciated. Thanks! Extending post of Maksim Libenson you need 2 loops one for Horizontal Oreitentaion and one for Vertical, You need to change the points in regard to fill the whole Fo ...Show All
CruzPedro How to close a window from another window?
Hi everyone. I'm using Visual C# 2005 and Windows.Forms This is my situation: I have the following windows: frmMain (my main window) which opens frmW1 and frmW2 through two menu options. frmW2 can open frmWD through a button. Ok, so far so good. frmWD has several buttons, two of them are needed this way: one to close frmW1 (if it is open) and one to reopen frmW1 (once it was closed). How can I do to close or reopen frmW1 from frmWD What is the best way to obtain the instance of frmW1 Important: Note that while frmWD is open frmW1 can be opened using a menuitem from frmMain. I would really appreciate your help in this. Best regards Roland Thanks nobugz. I did ...Show All
Madhuchhanda Updating project without changing DB
Please excuse me if this is a silly question but this is my first project with VB (VS 2005 Express Edition). The application uses SQL Server 2005 Express. Soon, I will be in a position to take a large amount of data from the end user of the project and put it into the database then deploy the application to his machine. This will be a long process as there is some data in spreadsheets and lots of data on the backs of envelopes etc! At this point he will begin to use the application and add/modify data on a regular basis. However, after a few weeks, he will return to me and say "Can you change this part There's a bug in that part etc." How can I then update the application and re-install it on his machine and mai ...Show All
Brian McNamara - MSFT MainMenu ???????????????????????????????????????????????????????????????????
My main MDI form has a mainMenu with arabic text menuIems, so the mainMenu.RightToLeft is yes if form.WindowState=Maximized text is mixed up, and when the mouse hovers above a menuItem, text is mixed up more, but when i click a menuItem everything goes back normal. This Problem is not appearing if :form.WindowState=Normal and Me .SetBounds(Screen.PrimaryScreen.WorkingArea.X, Screen.PrimaryScreen.WorkingArea.Y, Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height) AnyIdeas Maybe you're using too many question marks. More likely: sounds like a bug in the RightToLeft implementation. Submit this bug to Product Feedback . ...Show All
ifaber About Threading
I have a winform application which begin with a splash form in a new thread(I used the . When the splash form closes automatically, a login form instanates in the original thread and hold using LoginForm.ShowDialog. However, although a textbox in the Login Form() get the focus, the application become inactive(user cannot type in the textbox immediatlly). User have to click on the form or use Alt-Tab to switch to the Login Form before they can type on the textbox. How can I make the application keep its focus after the splash form close Thanks for your reply. I am actually doing this task exactly the way as you suggest. However, if I do this, there is a flash of the Main Form even the login is unsuccessful. Moreover, it is more & ...Show All
Robin E Davies Transforming data values?
I would like to use the data binding mechanism to bind a NumericUpDown control to an int-valued property on an object. However, for various reasons, I want the control to show a value that is one greater than the value of the property(*). Is there some easy way to do this In general, I guess I'm asking if there is some way to transform values in the data source to control properties and vice versa. Cheers, Simon (*) Why do I want to do this The property I want to bind in the object is a zero-based index value, however, it would be more appropriate to present this to the user as a one-based index. I'd like the mapping to be automated. Hi, Handle the Format event of the Binding object used to databind ...Show All
Adam Eldred Combo Box problem
Hi There, I have simple form which has 2 combo boxes. Both combo boxed display list of account numbers from the database. Now the problem is......... when I change the account number in one combo box, account number in the othe combo box is changed automatically to same account number which I select in the 1st one. Here is the simple code : -------------------------------------------------------------------------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using MySql.Data; using System.Threading; using System.Configuration; namespace Ac ...Show All
