JoeGilkey's Q&A profile
Windows Forms UserControl redraws incorrectly when control was covered
Hi, I have a user control, and overwrite OnPaint to do some custom painting. However, when something is moved over this control, it redraws incorrectly and looks "jagged". How do I know when this happens so I can invalidate it or is there another way to get around this Thanks, Tom Hi, Tom Are u calling base.OnPaint(e) at the end of the OnPaint method. Paste code in post hard to know what u are trying to do. kered ...Show All
Visual Studio Express Editions typedef arrangement CL doesn't like
typedef { unsigned __int8 uint8; unsigned __int16 uint16; unsigned __int32 uint32; unsigned __int8 char8; char8 * string8; signed __int32 BOOL; __int32 WPARAM; __int32 LPARAM; __int32 HWND; unsigned __int32 UINT; __stdcall CALLBACK; } Can someone please tell me why this is wrong More specifically, the compiler seems to want a typedef statement for each typedef, and I haven't seen the rule that makes this an unacceptable shortcut. I have issues with the documentation of the C syntax. It reeks. Because of this, the learning curve for C is mu ...Show All
.NET Development MSMQ Serializable Hashtable subclass causes a hang when extracting Message.Body
To start: I get no error message; just a hang condition. If I could get an Exception, I could probably figure this out for myself. Instead, .NET just hangs, cold and unresponsive. Here's the short concept of what I'm doing (no code examples here as the concept should be simple enough to implement by any interested troubleshooters): Make a struct called KeyValuePair with two fields: a Key and a Value, both String types. Mark the KeyValuePair struct as [Serializable]. Make a subclass of Hashtable called HashSet and override the Add method to guarantee that all Keys are unique at a ...Show All
.NET Development application deployment issues
Im having some issues when deploying my project written in vb.net which uses and Sql server database. During development I used my local machine as the server database, and this worked fine for myself and other users on remote pcs. But now I have changed the sql connection string to point to a dedicated sql server for deployment of the completed project I am the only user who can access it. I have another administrator with access to the same database and he can view/edit all the tables in sql server Enterprise Manager, but when he runs my program it generates an error on the first attempt the program makes to retreive data from the dat ...Show All
Windows Forms DataGridViewComboBox in DataGridView problem
the following code gives me 'DataGridViewComboBox Cell value is not valid': //getting a dataSet this .dsVerificationProcessInfo = DALcompany .GetVerificationProcessInfo(company.CompanyID, country); //setting dataGridView's dataSource to dataTable this .gridVerificationProcess.DataSource = this .dsVerificationProcessInfo.Tables[0]; ; //getting data for a dataTable from dataSet this .dtYearsLookup= this .dsVerificationProcessInfo.Tables[1]; //format year column this .gridVerificationProcess.Columns.Remove( "year" ); DataGridViewComboBoxColumn cmb = new DataGridViewComboBoxColumn (); ...Show All
Visual C# How to Send mail -help please-
iam a new C# asp.net developer and i want a code to send mail to mysite users . i want a code and instruction to get my framwork ready tahnks for help This question has been asked many times on the forums. Please do a search and you will find the code and instructions you are looking for. Here are a few to get you started: v1.1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=717&SiteID=1 v2.0 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=126529&SiteID=1 Michael Taylor - 1/18/06 ...Show All
Visual C++ applying an icon
How do you apply an icon to your app after you have manually editted the app.rc file Because when I look at the icon now it's just that regular old ugly version of the window. But when I open the file it shows the icon I had originally applied to it on the top left. Like just say for instance everything is normal and nothing is edited. Okay, I create my own icon and apply it and then debug my program, as it should it shows my icon beside the program name, so then I want my program version number to appear below the name, so I edit the app.rc file so that it shows the version number too, well, all is well until I figured out that by man ...Show All
Visual Studio Emailing Reports
1. Is there a way to add a button to the reportviewer control to email the report 2. Is there a way to add an "export" option to email the report We have a web app that is using the web reportviewer control. We would like the user to be able to email their reports directly from the control. Is there a way to do this Thanks, Trish The report viewer toolbar is not currently extensible (we hope to add support for this in the future). But you can add your own button to the form and programatically export the report using ReportViewer.ServerReport.Render or ReportViewer.LocalReport.Render. Y ...Show All
Visual Studio 2008 (Pre-release) How to turn off anti aliasing for small text?
Anti aliasing small text tends to make the letters look blurry and indistinct. I cannot find a way to disable the anti-aliasing of text in WPF and as a result label or button text looks really bad. Ideally I'd like to disable anti aliasing globally for font sizes below a certain size. How can I accomplish this -Ryan rfuller987@hotmail.com Hi Ryan, Anti-aliasing cannot be turned off in WPF, but I am quite concerned that small text sizes appear blurry for you. In general our ClearType sub-pixel antialiasing has been show to improve readability at small font sizes. What font and font size are ...Show All
SQL Server J# newbie having SQL trouble in windows form
Thanks to anyone who helps! I'm building a data entry windows form that requires the data to be sent to a SQL Server table (the table's name is "Local") when the form's "SAVE" button is clicked. I've built the form using the windows form designer, and now I'm attempting to use SQL statements to insert/update data into the table. There are six fields that will use SQL statements to send data to the Local table, and none of the fields are permitted to be null values. Two of the fields are comboboxes that are populated through the use of their own respective datasets (DisasterType and Dwelling ...Show All
Windows Live Developer Forums BOTS on MSN
There have been a number of questions about BOTS in the forum in various theads so I thought I would provide this post with a broader update on the topic. MSN has recently started licensing BOTS on the network. The huge benefit of a licensed BOT is that it will have contact limitations removed (the reverse list), so that millions of people could connect to the same ID. Our goal is to enable a broad network of these IM applications integrated with other MSN services (Activity API, Search, etc.). To make sure our customers have the best experience with these applications and provide tools to the broadest number of companies se ...Show All
Visual FoxPro Select SQL Problem
I am trying to select records from a database to determine qualifying order over 3 rounds of competition. I *thought* I had it working but the results are not always correct. I need to find the lowest number in the field IQUARTER from a list of runs from many different entries listed by the field RACESESSIONS, but I need only the lowest for each contestant. If there is a tie then the highest Miles Per Hour from the field I1320MPH breaks the tie, if there is an additional tie then the first one is placed above the other, this is determined by the TIMESTAMP field. The structure of the database that matters is this: tim ...Show All
Windows Forms Placing Windows Form in bottom of all windows
Hi, I tryed to set my form in bottom of z-order of all windows. I'm trying to create Windows desktop replacement. I found that I should use API SetWindwPos with HWND_BOTTOM argument, it woks only until i activate that window. After activation it becomes normal window. Can anyone help me I'm using VS 2003. Here is my code: Public Class DesktopWindow Inherits System.Windows.Forms.Form # Region "API Constants" Private Const WS_POPUP As Integer = &H80000000 Private Const WS_CLIPCHILDREN As Integer = &H2000000 Private Const WS_CLIPSIBLINGS As Integer = &H4000000 Private Const HWND ...Show All
Visual FoxPro Limit edit box
I have a issue with an fox app where I need to limit a editbox to no more then 3 lines of 40 characters. three text box controls will not provide the word-wrap support I am looking for.. Is there away to do this chris krelle Use additems() to add the records you want in the size you need. You can decide how many records are added easily this way. Look in help under additems and combo and list boxes. ...Show All
.NET Development cloning an object...
What's the best way to clone an object I want to create a copy of it. thanks in advance, Devin Well, no relation. :) All objects have MemberwiseClone as it is implemented in Object class. It will create shallow copies which in most cases are not enough. If you implement the ICloneable interface in classes you want to clone you can make the cloning more generic. The article below show that kind of implementation. http://www.codeproject.com/csharp/cloneimpl_class.asp ...Show All
