Answer Questions
Jeff2005 SetSelected confusion -
Can someone tell me why this won't work ' Clear the selected Items from companies list box Try 'NOTE: .NET Framework Bug ' The ClearSelected() functio ...Show All
Amit Chopra_MSFT DGVComboBoxColumn gives ThreadStateException
I'm having a problem when selecting cells in a DataGridViewComboBoxColumn. Each time a cell is selected I see the following error: "DataGridView Default Error Dialog: System.Threading.ThreadStateException: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that you Main function has STAThreadAttribute marked on it. ..." Firstly, I don't use any Main() methods in my application.  ...Show All
jgroleau nudge like MSN Messenger
Hi I try to make form nudge like MSN Messenger by this code in vb.net Me .Top = Me .DesktopLocation.Y - 6 Thread.Sleep(30) Me .Top = Me .DesktopLocation.Y + 6 Thread.Sleep(30) Me .Left = Me .DesktopLocation.X + 6 &nbs ...Show All
mgoertz - msft wsdl.exe.... sounds great... but WHERE IS IT???!??!
I have one book that has been trying to teach me how to build and deploy web services... I find this book totally worthless and confusing. But anyway lets not go into that... Now what I need to do, is create a web service that& ...Show All
CodeJingle Using Word templates to construct document dynamically
I need to write a Word document dynamically by adding Word templates that consists of formfields that need to be replaced with data from a dataset. The problem is is that it doesn't seem to be possible to add the contents of the template,with&n ...Show All
Sara Tahir TableAdapter SQL
Hello everyone, I had a question with regard to the new VS 2005 TableAdapters. They allow you to build "canned" SQL Queries and remane them FillBy1 or whatever. I also see that you can pass in parameters. So you push a button to run the query. I don't want to do that. I want to pass a complete, already built, Query to the TableAdapter and have it run it. We generate a complete SQL query using a sophisticated search engine. I want ...Show All
ryanlifferth Two datagrids and scrollbars
Hello, I am writing a quick data comparison app to compare similar data from development and test environments. I have two datagrids on the screen each getting bound to a datatable from one of the environments. What I want to do is link up&nbs ...Show All
Simon Guest Count messages in MSMQ
Hello, I'm writing a monitoring software that shows how many messages are in the monitored message queues. The message queue runs on a server, the monitoring software on the client. The problem is: If there are many messages (>=100) in a particular&nb ...Show All
igreenberg print screen..getting blank screen
Hi... I am getting a problem with PrintScreen. It is not working properly when I try to copy a scene from windows media player. After taking the print scren shot , when try to paste it.. its only coming a blank black area &nbs ...Show All
malawneh Deployed application breaks when it's auto-updated.
Based on these two truths: 1) ClickOnce only updates files when their hash has changed; 2) Assembly hash doesn't change when only AssemblyVersion changed; Consider an application that is composed of 2 assemblies: an assembly A that references assembly B. By default the assembly version is [assembly: AssemblyVersion("1.0.*")] . If we build, publish and deploy the application, assembly A will reference assembly B with a version (B_V1) and ...Show All
mmallett Add a line break in a Label.Text
Hey all, How do you go about adding a line break into a Label.Text property programmatically Label lblDescription = new Label (); string sText = "Personal Information appears on the Timecard printouts and previews.Employee ID # is the only field required." ; lblDescription.Text = sText; lblDescription.Location = new Point (iX1, iY + 5); lblDescription.Width = panel1.Width - 20; panel1.Controls.Add(lblDescription); ...Show All
Tom Morrison Error: PInvoke item (field,method) must be Static.
I am getting an error and don't know how to begin to fix it: <color="darkred">Error: PInvoke item (field,method) must be Static.</color> Here is the function that I am calling: <DllImport("winmm.dll")> _ Function PlayASound(ByVal ...Show All
Kartik Subramani Bending the DataGridView...
Hi, I'd like to extend the DataGridView a little bit to basically look like this: http://kingvest.de/dgv.png However, I'm stuck at one point: How can I do the month aggregation as shown Pretty important is the visual aspect of it. So it should be centered and not on the left hand side like the DataGrid does to show several tables. I think what's probably best is to do a custom aggregation in one table rather than actually using multiple tables. ...Show All
wim_ CheckedListBox - how do I get checked items in ItemCheck event
Hello All, Using: Private Function GetCheckedItems() Try Dim obj As Object Dim strFlds As String ...Show All
Rod Landers VS2005 Form Designer not working
I have been working with VS2005 for a while and today it stopped providing the code for the " Windows Form Designer generated code " section and on new Windows forms . It's also excluding the "Inherits System.Windows.Forms.Form" from the new form. Its like its setting up a normal class and not a Form class. Matter a fact the olny code generated is the basic class: Public Class frmGroupNotes end Class If I add controls to this ...Show All
