hillarie branyan's Q&A profile
Windows Forms GDI+: clear specific graphic
Hello, I want to draw different types of drawings in a pictureBox image. I use: One PictureBox Two Graphics Four Graphics States I load an image and I atribute it to a pictureBox image. In the loading process I also save graphicsState. Then I have an event that checkes for two radio buttons. Depending on the check it will draw a violet or a turquoise circle on mouseDown event and also saves the graphicsState. My aim is to clear from the image the violet or turquoise circles. I have two buttons were I try to do that, but it simply don't work. Any one can help me Here is the code: private Graphics g1; private Graphics g2; private GraphicsSta ...Show All
Visual Studio Express Editions ListView sorting question
Hi I have a ListView control called HSlist on a form which has 3 columns. The adding data seems to work OK, but the sorting is weird to say the least. Initially, I thought that the list would be sorted on the contents in the first column, so I added to the ListView with the Item containing the data that I wanted the list to be sorted on (numerical). Then I found that the list was being sorted on the second column (strings), so I swapped the adding routine so that the numerical data was now in the second column - the list now was being sorted on the first column (strings). What I want, is either to be able to dictate which column the ...Show All
SQL Server Reference Dimension causing long processing times
I have a reference dimension that is linked to a regular dimension that is linked to the fact table. For some reason, when I process the database with some small sample data, it take about 5 minutes to process, where it should take 10 seconds. I am using a reference dimension because it is a child-parent hierarchy, and I don't think I can merge it into the regular dimension. My work-around is to just include the link to this reference dimension in the fact table, so I can create the child-parent dimension as regular. Now is processes in 10 seconds. It doesn't seem ideal since I have what seems to me an unessary dimension now. If I turn &q ...Show All
Visual Studio Team System How can I force static analysis and code testing policies via VS.NET 2003?
I'm using the team system source control provider plug-in to work with team system from vs.net 2003. How can I satisfy the check-in policies static analysis and unit testing now Those policies are specific to VS2005; you cannot use them with the MSSCCI plugin. See Michal's blog . ...Show All
Visual Basic Need help with GroupBox
Does anyone know how to find out which control was clicked inside a GroupBox I'm using PictureBoxes instead of RadioButtons or CheckBoxes, and I need to know which PictureBox was clicked inside the GroupBox. There's 20 PictureBoxes. Rather than write a separate click event for each one, I would like to find a way to find out which PictureBox (out of the 20) was clicked--perhaps something similar to: Private Sub GroupBox_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles & _ GroupBox.Click Dim ctl As Control For Each ctl In GroupBox.Controls Ms ...Show All
Visual Studio 2008 (Pre-release) Markers - Symbols
What is the best approach to show markers (symbols) at particular positions which can be rotated individually ...Show All
Visual Studio 2008 (Pre-release) Sparkle Jan CTP available!
Enjoy! http://www.microsoft.com/downloads/details.aspx FamilyID=ed9f5fb2-4cfc-4d2c-9af8-580d644e3d1d&DisplayLang=en BTW: it has its Forum... Do you mean there's a Sparkle MSDN newsgroup I don't see a forum at forums.microsoft.com. I'm playing with it at the moment by the way, looks very promising :-) ...Show All
Visual Studio Express Editions Register for multiple users
Hi I downloaded and installed VC++ EE to my XP Pro SP2 PC. I did this whilst logged on with Admin rights. I registered and saved the key that I received in a .txt file. I use the PC on a day-to-day basis whilst logged on with Limited rights and, when I tried to use VC++, it said that I needed to register. I used the same key that I'd used when I registered with Admin rights but it was rejected. I was under the impression that I could register the software several times, if necessary. How do I go about registering the software for use as a Limited user Do I have to get a further key from MS If I do and register with Lim ...Show All
Visual Studio Team System Any way to find all check-ins with policy failures?
Is there any way to search for all check-ins where the programmer has overridden a check-in policy failure It's effectively impossible to manually trawl through the entire history! Also, how do you turn on emails for policy overrides (That is, according to the documentation it should be possible to get TFS to send you an email every time someone checks in with an overridden policy, but I can't find the documentation that tells you how to turn on the email support). Thanks for any help! That's great - thanks very much for the help! ...Show All
.NET Development Help with 24 hour times
I am having some trouble with times - in part of my app, people can enter a start and end time for something and I am using a masked textbox for this (the datetime control shows seconds and isn't nice to type in). When the entry gets written back to the database, I am bolting my time and date together with: IFormatProvider Dformat = new System.Globalization.CultureInfo("en-GB", false); String StartDate = ApptDate + " " + txtStartTime.Text + ":00"; StartDatim = DateTime.Parse(StartDate,Dformat); But if the users' clock is set to 12 hr AM/PM, my times get chunked to 12 hour format... so an all day one (00:00 - 23 ...Show All
Visual FoxPro optimize sql
hi i am trying to optimize my aplication and for what i have seen in the net the SYS(3054) tells me if an sql statment is optimized or not. but when i do the foloing: SELECT acodigo, edescri, afamn1, afamn2, afamn3, &campo ; , agrupo1, agrupo2, agrupo3, agrupo4, agrupo5, agrupo6, ASTOCK AS stkt ; FROM thisform.ficheiros(1,1), thisform.ficheiros(2,1), ('tabart' + ano_chr2) ; WHERE acodigo = ecodart AND tacodart = acodigo ; INTO cursor &aux1 it always says that it isn't optimized. All the fields in the "where" are primary and all the tables are from the same database. is it possible to optim ...Show All
Visual Studio Tools for Office Refedit Control for VSTO
http://msdn.microsoft.com/library/default.asp url=/library/en-us/odc_vsto2005_ta/html/OfficeVSTOLanguageMigrationFromVBA.asp The link above talks about a refedit control that can be used with VSTO. However, it does not appear to be implemented in VSNET 2005 Beta2 What is the status of such a refedit control Has anyone on the list found a workaround / solution / alternative As gsbraun was noting, not having refedit is completely unacceptable. From Dec 2006 to now, perhaps someone has figured out a solution Any help pointers are very appreciated Juan C. (jcmendez@gmail.com) ...Show All
Windows Forms Application Setup
I've created my 1st app in winform (till now without help, but it's another problem :) ). App is small (40KB) & works fine.... On my comp only :( My buddy wanted to see it & received message "The application failed to initialize properly (0xc0000135). Click on OK to terminate the application." As I've found on MSDN it's ...Show All
Visual Studio Team System Problem with the report site.
On the team project we setup a report site. For the report site we added TfsOlapReportDS and TfsReportDS. We then added a couple of reports, Bug Rates and Issues. The Issues report is using the data source TfsReportDS which runs fine with no problems. When I open the Bug Rates report in Team System, I get the following error message: An error has occurred during report processing. (rsProcessingAborted) Query execution failed for data set 'AreaPathPath1'. (rsErrorExecutingCommand) Incorrect syntax near 'Measures'. Incorrect syntax near 'WorkItemType'. I then added two more reports. Again the one that used the TfsRe ...Show All
SQL Server Setting DTS DataType on added column: codepage.
When writing custom component, and and adding a column to the output, the DTS DataType must be set using SetDataTypeProperties. One parameter is codepage (int). What value(s) can I enter there Where can I find this information It will really depend on where the data originates, but I should say it would be a good bet for most situations, as people normally work in one codepage accross most applications. Unicode would be easier still! ...Show All
