Friendly Dog's Q&A profile
Visual Basic Cross-thread operation not valid
Please tell me that you are going to fix this before the official release!! I am using VB not C++. I really shouldn't have to care that my code is not running in the same thread as the one that created the form that contains the control that I am trying to update. Please fix this or at least have some real examples that show how to update a control on a form. The examples that I found were not helpful at all. Well you really sho ...Show All
Visual Basic Listview control.....removes selected item(s)
Listview control.....removes selected item(s) How to remove a selected items or checked items from a listview control in VB.NET Listview1.Items.Remove(lstapplications.SelectedItems(i)) I thought I can do the same as in listbox but did not work. ReneeC wrote: The following works when multiselect is not set: lv1.SelectedItems(0).Remove( ...Show All
Visual Basic Using Namespace in vb.net is not as good as in c# why?
I was wondering why ms decided to have the way they set up the namespaces differently between the language. c# when creating a new projects it adds the namespace to the code as well as the property. in vb it only adds to the property of the project and if you try to add it to the code it will create a double one. eg MyCompany.Application.Employee Namespace MyCompany.Application.Employee public class stuff end class end namespace calling the ab ...Show All
Smart Device Development How to change font in dialog??
Hi every one, I use the follow code to modify the bold attitude for some static text, but the code need to define the character size and others. it will affect the character size on the different resolution LCD. I want to just modify the font weight to be bold and others keep as system default setting. How could I do it HFONT hFont ; LOGFONT lfFont; memset(&lfFont, 0x00, sizeof(lfFont)); memcpy(lfFont.lfFaceName, TEXT(" ...Show All
Visual C# What's wrong with my word.application in multithreads?
I wrote an own-defined threadpool and used waitcallback to delegate a function in each thread in pool. But there are some problems with the program: when I run the program, it gave no response and I can see the "winword.exe" process in the task manager, no exception occurred. The problem seemed to be at running this statement: Word.Application msWord = new Word.ApplicationClass(); Although I kne ...Show All
SQL Server Derived Column Task failing with error 0xC0049067
I have a package that fails as soon as it hits the first Data Flow that contains a Derived Column task. The task takes three date columns and looks for a date of 6/6/2079. If it is there, it is replaced with a NULL. This task worked fine until I installed the Non-CTP version of SQL 2005 SP1, earlier today. (I went from RTM 9.0.1399 to SP1 9.0.2047)Does anyone have any ideas Here is the error I am trapping: An error occurred while evaluat ...Show All
Windows Forms populate combobox
hi, I would like to populate a comboBox with three text values and assign an ID to each one so that when one of them is selected, then an ID for that text value is used later on ie. combobox1.items.add("value1") combobox1.items.add("value2") combobox1.items.add("value3") tried accountTypeComboBox.Items.Add (new ListItem("Item 1", "0")) accountTypeComboBox.Items.Add (new ListItem("Item 2", "1")) but gives an error on ListItem Thanks ...Show All
Visual Basic How can I get a Field From A Dataset
I set a field on my grid as not visible and when I try to rowbind data I can not get that value using the e.row.cells(6).text - So - my question is how can I get that value without showing it on the grid or how can I get this field from the dataset as each record is binding.. here is the code I have: Private Sub BindGrid() Dim myDataSet As New DataSet myConnection.Open() strSQL = "SELECT * FROM CDO_Quality_Test WHERE CDO_ID = " & ...Show All
Visual Studio Express Editions How to get MFC libraries for Visual C++ Express 2005
hi, I have a software package which works well during VC6. Now I tried to compile it in VC++ 2005 Express. Most of projects in the package are no problem. But there is only one project which is a GUI application (using MFC) always got some problems. At first, it missed some lib files. So I copy some lib files from VC6 directory to current lib directory. Then I got the following error. Anyone can give me some ideas Lin ...Show All
.NET Development DataRead Failure Please help...
Hi, i'm using vb.net 2003. The problem that I encounter is the fact that after awhile, the record count shows the correct count, but, the values that it's supose to extract from the database, doesn't match. I use a datareader to extract the values, and that code are read each time the form is activated, so, it's in the From_Activated event, but, when I test it, it runs fine for the first 8 or so times, and then, the values in the Lis ...Show All
Visual Studio How to add Folder using Item Template?
Hi experts, I am going to create an Item Template which create 3 files in a folder. I got it work with the a "hard-coded" folder name, however, how can I create the folder according to user input Eg. I created the .vstemplate file as below: <Folder Name="Templates" TargetFolderName="$fileinputname$"> <ProjectItem SubType="Code" TargetFileName="$fileinputname$A.cs" Repla ...Show All
Visual Studio Team System Messages Suppression
Hello! At the moment we are trying to get rid of all the fxcop warnings in our project, but have three issues we can't resolve. 1. Is there any ways to specify all the message suppressions in one place (file) We need it because suppression attributes like this: [System.Diagnostics.CodeAnalysis. SuppressMessage ( "Microsoft.Security" , "CA2118:ReviewSuppressUnmanagedCodeSecurityUsage" )] make code complitely unreadable. We have opti ...Show All
Visual Studio CRC error when installing Beta 2
ERROR:Error 1331.Failed to correctly copy vcredist_IA64.exe file: CRC error. ERROR:Error 1331.Failed to correctly copy vcredist_x64.exe file: CRC error. The install said it completed successfully, but with warnings. I looked in the error log and found the about two lines. Any ideas about what is going fail, if anything, due to the above errors -Russ Yes, I installed from the same DVD. It does look li ...Show All
Software Development for Windows Vista LoadLibrary (regsvr32) fails without Visual Studio 2005
I've just upgraded from Visual Studio 6 to Visual Studio 2005. I've got the latest DirectShow stuff (in the platform SDK) and am using it. Everything builds and runs fine on my development machine (which has Visual Studio 2005 installed) but when I try: "regsvr32 "myfilter.ax" on a different machine (without Visual Studio 2005, both machines are WinXP Pro and up to date AFAIK), I get the error: LoadLibrary ("myfilter.ax") failed - ...Show All
SQL Server Authentication Problem x64
Win 2003 Server x64, .Net 2.0 x64 Reporting Services 2005. RS Database is a remote SQL 2005 on the same Domain in the same room. I can only get the report manager to authenticate local users; it will not authenticate Domain users. If I set up a local user and add a New Role Assignment all works OK. I have no problem adding a Domain user to a New Role Assignment, it allows this, but it will not authenticate the user. Adding the Domain user t ...Show All
