Chimme's Q&A profile
Windows Forms Resizing labels and other controls
Hi, I am having a query. I am using .Net 1.1 C#. There are a number of labels in a group box, one below the other and there are 4-5 groupboxes lying 1 below other. These labels get populated from backend so i m not sure how much amount of data could come. Actually there is no limit to it since the backend data type is Text for most of the fields. So now the problem is accomodating the text inside label and resize it according to values, at runtime. .Net does offer AutoSize property, but that only expands in width. My requirement is, it should not expand in width but rather in height. Now resizing the label can be done using Label.Height, but with this i also have to change the Y location, to accomodate it on the screen. ...Show All
Visual C# title bar
dear friends How to change the "color , style and font of the titlebar" Thnx in advance RAvi See this: http://www.codeplex.com/Wiki/View.aspx ProjectName=CustomerBorderForm Cheers ;-) ...Show All
Visual Studio Express Editions Problem Updatng PictureBox1
Hi! I put a Picturebox on my Form via the Toolbox. How do I update it via a code block Here is what I have: Private Sub DisplayItem() Dim i As Integer = DataGridView1.CurrentRow.Index Dim FileName As String = TurtleDataSet.Tables(0).Rows(i)( "Item" ).ToString() + ".jpg" Label1.Text = FileName FileName = "D:\...\Jpegs\" + FileName PictureBox1(FileName.ToString) End Sub Thanks in advance! well you can use the PictureBox.Image property and use the Image class to load the image from the file. Example: PictureBox1.Image = Image.FromFile(" filepath\filename.ext ") or you could use Load method: PictureBox1.Load( "filepath\filename.ext &q ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX development on Vista
Hello, I've installed Vista (final release version) and I'm in the process of setting up my development environment. I don't intend to move to Vista now, but I'm trying to find out if there will be any problems in doing so. I've installed Visual Studio 2005 (with SP1 and Vista update), and the DirectX SDK (I'm using the Oct 2004 SDK). I've created and built a C++ test program and everything seems fine there. However, I'm not clear on how to switch between the retail and debug versions of the runtime. When I installed the SDK, I didn't get a DirectX icon in the control panel, but I'm wondering if maybe this wasn't installed because of Vista security settings, because d3d9d.dll and d3dx9d.dll weren't placed in the Windows\System32 dire ...Show All
Visual C# How do i call a method from a different form?
Hi, I have 2 forms that are closely linked with each other: form1. a form which lists a bunch of different layers form2. a form which describes the layer (i.e. name, colour, etc) if i change something in form1, i want to call an update function in to update the display in form2, and vice versa. What is the best way to do this from my knowledge, using delegate only works in one direction, correct me if i'm wrong. My idea is to create the update functions within their respective classes and find some way to call that function from the other form. is that possible i have already set it up so that they are sharing a data structure, i just need them to access each other's functions. thanks. ...Show All
Visual Basic how can I use the sender object to determine which of the panels fired the event?
given the following; Private Sub Panel_MouseDown( ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PanelDrawingLeftTop.MouseDown, PanelDrawingRightTop.MouseDown, PanelDrawingLeftBottom.MouseDown, PanelDrawingRightBottom.MouseDown how can I use the sender object to determine which of the panels fired the event Isn't it a cast Thank you, -Greg and also Private Sub Form2_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load AddHandler Panel1.MouseDown, AddressOf OnPanelMouseDown AddHandler Panel2.MouseDown, AddressOf OnPanelMouseDown End Sub Private Sub O ...Show All
Visual Studio Release Dates
Hi, I want to Release Dates of Visual Studio.net 2002 Visual Studio.net 2003 Visual Studio.net 2005 and the related .net Framework Versions. Please provide me the links for proof (from Microsoft site), i tried to find, but couldn't find it.. Thanks good find! VS2005 was launched in november 2005 - I clearly remember that as not only was it the month of my birthday but also, because I attended the event locally! :-) ...Show All
Visual Studio Express Editions Can't Seem To Trap VB .net 2005 Error
Hello All, I see an error being written to the Visual Studio 2005 Output Pane that says "A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll" but I can't seem to trap where it is originating from... which is really puzzeling. The application Pings several hosts using the... Dim po As Ping = New Ping() Dim pingreply As PingReply = po.Send(tgt.hostid , 1000) ...Syntax and writes ping reply data to a file and error data to an Error Logfile. I have every subroutine wrapped with a try/catch but the problem does Not seem to propagate up the stack into the catch exception( ) The application is very large and I am upgrading from the VB .net 2003 (is this a possible caus ...Show All
Visual Basic Resizing the Form
On the click of a button, how does one resize the form in the form's code Many thanks! I thought it would have something to do with me. , but I was trying to make me.frm_main.size work. Your esample actually makes more sense. :D:D:D ...Show All
SQL Server Copy Database Wizard Error- SQL Server Agent cannot execute the SSIS package
I am trying to copy a database from our company's external SQL Server(production) to our local SQL Server(development). The Copy Database wizard fails on the step "Execute SQL Server Agent Job". Following is the error in the log file.. Please advise InnerException-->An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Thanks for pointing me to the fourm. Yes I am using Management Studio for the Copy Database Wizard. Could you please tell me how I can check t ...Show All
Smart Device Development Best Platform for my Application
Hi, I've developed an application for a PPC running Windows Mobile 2003 in Java (a J2ME MIDlet). As I came to find out, this isn't really for me, mainly because I want to run the application in the background or even better, a windows service. I've now seen the light and am developing the same application in VS2005. Before I move forward, I wanted to see which platform I should choose so I have the least issues in the future. I would like it to be able to run in the background and unnoticeable. It needs to read the Virtual COM port, access GPRS to do requests on the net, use a timer, and listen to key events. Support for Windows Mobile 2003 and Windows Mobile 5 (and any future WM versions) is essential. It would be desirable if it ...Show All
Gadgets Need help with Gadget? Not sure how to Debug
I tried to create a gadget using the RSSFeeder sample but when I add it to live.com all I get is an error that says "Error". I am using IE7 but am not sure what I can do to debug. If anyone has any advice I would really appreciate it! Here is the manifest file with links to the js and css! Thanks in advance sorry, I posted the wrong manifest, it should read as this < xml version="1.0" > <rss version="2.0" xmlns:binding=" http://www.live.com "> <channel> <!-- Specifies the name of your Gadget --> <title>Live.com RSS Gadget</title> <!-- Gives a short description of your Gadget --> ...Show All
SQL Server export to excel question
i used matrix control. Grouping and Sorting Property I checked the property --- visibility can be to toggled by another report item report show is right. the item is toggled by another report item but export the excel file the report item is not togled by another report item the excel show like a table. how can i set the excel show. set the item is toggled by another report item this is i want . JAPAN TOTAL TKY MET-1 SD TKY MET-2 SD &n ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Any Plans for Support for VS 2005?
Does anyone know if there are plans to support VS 2005 at some point There are a number of missing features in VC# Express which I have come to rely on. Most notably, Macros. My productivity is hindered in Express. I would really like to be able to use VS 2005. At the moment, I am using a custom pipeline content generator and the XNA assemblies under VS 2005. Which is a complete hack, but it does work (on Windows). Basically, it means I have to eventually recreate the projects in XGS in order to make them work on the 360. So does anyone know if there will ever be real support for VS 2005 Game Studio Express is aimed at the hobbyist game developer. In some cases (I'd bet many) this category includes people who make their living wri ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can you access member variables dynamically?
I'm writing an input handler class and I'm writing a function to return true or false depending on if the requested button is down or not for the supplied player. At the moment I'm doing it like this: <code> switch (MyRequestButton) { case "A": if (currentState[player].Buttons.A == ButtonState.Pressed) { buttonDown = true; } break; case "B": if (currentState[player].Buttons.B == ButtonState.Pressed) { buttonDown = true; } break; </code> But what I'd like to do is something like this: <code> if (currentState[player].Buttons.MyRequestButton == ButtonState.Pressed) { buttonDo ...Show All
