TheSteve's Q&A profile
Windows Forms Control.Setbounds Intellisense bug
I don't know if this has already been noted but I just found out that the intellisense for the y parameter of the SetBounds method is mistakenly declared to be the new Control.Right property of the control instead of Control.Top. ...Show All
Visual Studio 2008 (Pre-release) How to get the value of the color in some position of a LinearGradientBrush?
Hi everybody,I have a problem about LinearGradientBrush. Here's the code: <Canvas Name="MainCanvas" Height="20" Width="200" Margin="0,0,0,0"> <Rectangle Name="rectLegend" Width="200" Height="10"><Rectangle.Fill> <LinearGradientBrush StartPoint="0,0" EndPoint="1,0"> <LinearGradientBrush.GradientStops> <GradientStop Color="white" Offset="0" /> <GradientStop Color="red" Offset="1" /> </LinearGradientBrush.GradientS ...Show All
Windows Forms Deploy ASP .NET app
I am running Visual Basic .NET Standard 2003 edition. I want to deploy an ASP . NET app, but the standard edition does not have the ASP deploy wizard. Is it possible to deploy a web app to a server in Standard edition Any response would be appreciated. Thank you Hi, This thread most likely be a ASP.NET Question :) Anyway, the ...Show All
Visual Studio 2008 (Pre-release) Worry about LazyLoading
ForExample if we had a PERSON class with 50 attributeTypes and the class had compositon and aggregation relationships with 10 other classes. How will DLinQ deal with "Lazy Loading" if I only need 2 attributeTypes from PERSON class and 2 more related attributeTypes Can it create an optimized SQL sentence that I get the FASTEST result from my RDBMS Or does it load all the 50 attributeTypes and relations OOP in a Logical world of programing,and it is really cool.Especially FOR OR/M vendors...hehe but in conceptual design OOP has no place, such as there is OO analysis does not exist.Aristo did analysis without OOA.Th ...Show All
Windows Forms Binding DataGridViewImageColumn in DataGridView
Dear all, I would like to binding (string or bool) data from database in DataGridViewImageColumn. However, i catch exception in DataGridView_Error event when i run it. Exception message is Formating error or Commit error. Please help me to resolve my problems and give me example code if possible. Thanks for your help. Khiem Vo. The Image column only supports binding to a byte array, not to a string or bool data. You'll need to manually convert the string or bool to an image in the CellFormatting event. Hope this helps, -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All
Visual Studio Logos in Report Header
Hi Everyone, I'm doing a project with local reports. In my reports the logo comes from the database thus I've to use a 'Database' image.My report logo is inside a report header alone with other info. The problem I have is that I cant refer to Database fields inside the report header. I got round this by having the other report header fields as Parameters. I also tried to cross-refer the image from an hidden image box located inside the report body. But I guess that's not simple as doing the same for a text box to refer a string. One alternative is to forget abt the ReportHeader and go for a Recatngle data region but its much cooler to have ...Show All
Windows Forms Unrealistic animal birth
When i made my first creature, and when it reproduced first time i was surprised that the child location is chosen randomly from all over the terrarium. I see that it is not right, the child must be placed near his parent. In many means it will be reasonable. Firstly to protect young growth: the parent would be able to protect his children&nb ...Show All
Visual C# Parent and Child relationship among Forms
Hello, I am trying to develop an application which will have the following layout, but running into a little bit of trouble. Let's say I have a main window FORM_Main, which has 2 buttons but1_main and but2_main. If you click but1_main, FORM_1 appears. FORM1, has a button but1_form1, and if you click but1_form1 a dialog window will appear, that will not allow you to go back to FORM_1 untill you close the dialog window. However, I still want to be able to go and click the but2_main on the FORM_Main, and etc.. To summarize, I want one main window which will be the parent of all spawned windows, but the spawned window will be able t ...Show All
Software Development for Windows Vista Vista 5259 denying me access to my IP settings
I did a clean install of the OS and the internet is not working again, I know I'll have to enter my IP etc directly into the TCP/IP properties but when I try to do that it would not let me, with error message saying I do not have sufficient rights to access those settings, so it's denying me access to my own computer settings, how do I fix or get around this Thanks for any help. 5259 is not a supported build, but it sounds like you are running either as a standard user or a protected admin and that the credui/consentui isn't getting invoked(bug). The easiest way to get around this temporarily is to logon us ...Show All
.NET Development Pressing enter key causes my web page to load again.
Hi , I am facing a strange problem with the ASP.NET (with VB.NET) user controls. My user control contains only one text box web control and some other controls (but one and only one text box). I put this user control on a webform (web form also does'nt have any text box control) and request that web form through "http:// " request. Now, when i put some text in the text box and press the "Enter" key (while the cursor is still in the textbox ) the webform reloads i.e. Page_load event is called again for the webform and subsequentally for my user control. This initializes my user control to blank sta ...Show All
Visual Studio Team System Caching\Source Control abnormalities in Team Systems
This is more of a overall problem I've been having then a specific problem. We currently are in a pilot project -- 4 developers, 1 architect, 2 ba's, 1 pm, and 2 dba's. The code we have been working on has multiple projects of different types (web, web deployment, setup, class library, etc) and we've been in a bit of flux as we've been investigating different architectual problems. As we have been adding and removing different projects there seem to be lots of caching going on so that 1 person will delete a project out of source control so that it doesn't appear at all (no red x indicating it wil be deleted, etc) and another person will g ...Show All
Visual Studio Macro to switch on XML documentation?
Hi, Is it possible to create a macro that iterates through all projects in my solution and switches on the XML documentation flag I can't find a way to have XML documentation switched on by default. (Do you ) My dozens of solutions each contain dozens of projects and it's a pain having to go in to the project properties of each solution and switch XML documentation on. I would like to open a solution, execute a macro and have the rest done for me. My code so far is as follows... Public Sub GenerateXMLCommentsForAllProjectsInSolution() Dim project As Project Dim projectObjects As Object () Dim window As Window ...Show All
Windows Forms Updating Data Bindings
Quote: Data Layer Component As you become more familiar with the client application, you may notice a few minor, negative UI side effects resulting from our data architecture. The Windows Forms controls support the idea of data binding, which provides a way for a control to automatically populate (and maintain) itself with values from a data source. Because we are&nb ...Show All
Visual FoxPro define window
How could we show a define window into a top level form, where-in screen visible is set to FALSE Because I try it, and it doesn't show-up, maybe i got wrong in coding. Thanks for any help Amado Madix, Start thinking how you do that with a browse. If you can browse then there is either a cursor or table open in current workarea. With a browse or programmatically moving record pointer ( say with skip, locate, seek etc ) you can go on any record. "Transfer to your form" - it depends. If you call a form that uses the same datasession as calling form does all you need is to position the record pointer ( by any means, it might be a browse, ...Show All
SQL Server oracle connection manager configuration help
Hi, I dont know if I should post this question here, or on oracle forums, but here goes ... I made a simple package that performs 2 Excecute SQL Tasks, one task does a select query on a SQL Server DB Table, the other task does a select query on an Oracle DB Table. The package runs fine in BIDS when debugging, but when I deployed the package to a file system and added it to an sql server agent Job, it all went wrong ... I tried the ms oledb dataprovider (ole db) for oracle but also the oracleclient data provider (ado.net) but the package always fails. The error messages in the logfile are these: ...Show All
