chiefmsb's Q&A profile
Windows Forms how to get the relative location of the controls within a panel?
Hi, I am having a panel and the size grows dynamically. I have a horizontal scrollbar and a vertical scrollbar. How do I get the size of the complete panel. When I say panel.size it just gives me the size of the screen that can be viewed. I need to get the complete size of the panel. I also tried to append the panel.AutoScrollMargin.Width. But it is not giving me any value. How can I achieve this task I also want to know how to get the location within the panel where the mouse is clicked. Your help will be appreciated. Thank You. Hi, Is your problem solved Thank you, Bhan ...Show All
Software Development for Windows Vista Windows 2000 Icon Style Guide
Any possibility of still being able to view the Windows 2000 icon style guide Type <Windows Vista user experience guidelines> into any major search engine and you'll be sent to the download page. http://msdn.microsoft.com/windowsvista/uxguide The Windows 98/2000 guidelines are out of print but you can try to scavenge one from Amazon. http://www.amazon.com/exec/obidos/tg/detail/-/0735605661 ...Show All
Smart Device Development COM port remapping on Smartphone emulator
I'm stumped, I'm trying to connect a GPS unit to the emulator by mapping COM1 on the host machine to the emulators serial 0 (COM1:). I noticed in the documentation that COM1: is used for debug output, and I've also read in this forum that it can be used for connecting external devices. When I tried it with the image that came with the Smartphone SDK CreateFile succeeded but I got nothing from ReadFile. I then tried on a debug image I’ve been building out of AKU 2.6, and I started getting some data. However the data was missing chunks and occasionally filled with chunks of garbage. I ran the same test app on the desktop that I was runnin ...Show All
.NET Development XmlSerialize XmlElement in web service
I have defined a wsdl file for a web service method that suppose to return an object to client. I have the xml data load from the SQL server database that represents the object. Instead of deserialized the xml data into the object and return the object. Than the ASP .Net will need to serialize the object to the xml again to be included in the SOAP message. I plan to change the return type of method to xmlelement, but used the same wsdl file as before. This way the proxy file generated on the client still have the typed object as the return type. The problem ...Show All
.NET Development Connection string working with 2005 but failing with 2003.
I hv a glaring issue and no solution— This code works fine in VS 2005 but fails in Vs.NET 2003. Using OLEDB, it works in VS.NET 2003, but the code used below fails. I cannot change the lines below and cannot upgrade the solution to VS 2005. Now pl tell me what s going wrong!! I seriously lack experts here to bail me out J Imports System.Data.SqlClient Imports System.Exception Public Class Form1 Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. Initia ...Show All
Visual C# Casting an enumeration that has a defined type..
public enum foo : ushort { foo, bar } ushort test = foo.bar; Cannot convert from 'Test.foo' to 'ushort' Sure, I can make variable of type foo, but I'm encoding the value to a network stream, so I want it as a ushort. The thing is, I specifically told the compiler the enum is of type ushort, so why do I have to typecast it You need to cast it :-) ushort test = (ushort)foo.bar; Oh - you said *why* do I have to cast it Because C# is a strongly typed language, IMO it requires casting more often than it really should, but at least it's not VB :P ...Show All
.NET Development Events ASP in VS 2005 IDE
Hi. I have created a user control (System.Web.UI.UserControl) in c#. In its code I have declared and managed an event: [Description("lettoreImg_OnSelectedIndexChanged"), Category("Action")] public event EventHandler SelectedIndexChanged; The problem is that if I use this control on the web form design in visual studio 2005, inside the window with its property I can't find the events section neither the event I have created, but in the xhtml visualization, using the intellisence, the automatic declaration of the event appears: <myControl ID="myC" OnSelectedIndexChanged ="" runat="server" ...Show All
Windows Forms Typed DataSet and Relationship Name
I am wondering if there is a way to display the Relationship names in the intellisense like the Table and Column Names. Any ideas.... Thanks, rythm You are right it does not. Thanks for giving it a thought. It is just that I prefer using Property Names instead of "Strings" to avoid errors and thus was trying to find thsi. ...Show All
Visual Basic How do I control navigation in datagridview. ie to go sideways on <enter>
When the user presses enter in a cell for a certain column I want to sent the next cell to the next column, like doing a <tab> instead of going to the next row. I have used the keypress event, but this is not fired if the user is in edit mode and presses enter. Anyother action to set currentcell changes the column, but the process still moves to the next row. Does anyone have any ideas. Ok, here goes nothing... Dim LastEditedCell as DataGridViewCell Private Sub DGVCenter_CellEndEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DGVCenter.CellEndEd ...Show All
Windows Forms Big Red X on DataGridView
Hi, I am working on an application that polls servers with BackgroundWorkers for information about the state of application objects. When a background thread has data that needs to be written to the DataTable that is bound to the DataGridView, it calls a delegate and passes the data, and the UI thread updates the data. It's all working rather well except for one problem. If I switch desktops (I'm using the Microsoft Virtual Desktop Manager), or if I lock the workstation and then log back on, an unhandled exception occurs in the DGV control and it displays a thin red box with an X that fills the control. The last line in the call stack ...Show All
Windows Forms What service does the datagrid use to create tablestyles
Does anyone know what service does the tablestyle editor use to create tablestyles I have my own host designer project and when I drop a datagrid on the form and edit the tablestyles it creates them but with no name property which tells me it didn't use the host.createcomponent method. So it has no name and when it doesn't go though the proper&nb ...Show All
Visual C++ Mixed c++ TypeLoadException Internal limitation: too many fields.":"<Module>
When I load my mixed c++ dll using Assembly.LoadFile from a C# application I get a TypeLoadException with message "Internal limitation: too many fields.:"<Module>"" How can I possibly know which type it is and what could be the problem OK, finally I understand what causes my problem. There seems to be a limit in the assembly loader. With more than 65535 global FieldRVA entries in an assembly the loader raises the TypeLoadException exception. This seems to be no limit of the assembly format but of the loader code. I loaded the assembly with ildasm - what is really slow and did a dump "all" of the assembly. Searchin ...Show All
Windows Forms Drag Drop Custom Control
I have created a panel that contains custom controls. Currently I can drag and drop them without any graphics and all is good. I implemented the ImageList_DragBegin routines (DragEnd, DragLeave, DragEnter, etc) into the code and it works with one exception. When the control is dragged across other controls in the panel, the controls are not repainted correctly and there are traces of dragged image left behind. (See Drag2) Drag 1 (Everything looks good) //www.attitude.com/users/lee/drag1.gif Drag 2 (Drag residue left from image) www.attitude.com/users/lee/drag2.gif This is written in VB.Net 2.0 and references a C# ...Show All
Visual C++ how to get a handle to a control
Hi I started a new process from my application, and I want to enter some data in some of the controls in the new application. I was thinking to do that with the SendMessage function but how do I get the handle for a control in that window. Thank you for the help. What type of application are you writing, MFC, ATL, managed, etc Is this control part of your application, or are you tryiing to set the data of a control in another application ...Show All
Visual Basic A complex coding for me
Ok this is some kind of thinking. I tried thinking of a way to structure the code but couldnt. Maybe this is not even possible Items on my Form: MonthCalendar1 Label1 Textbox1 Button1 Ok this is a kind of to-do-list. So everytime i select a date on the monthcalendar1, it should show me what things i have to do on label1 like "today collect laundry" Now how do i set the to-do-things. I select a date on the monthcalendar1, i type something like "got meeting" into the textbox and click button1 it should be set. Senario Ok i want to remind myself that on 30 jan 2006 i got to attend a meeting. So i select 30 jan 2006 on ...Show All
