Devincci's Q&A profile
Windows Forms memory problem with self-removing usercontrols
I have a Windows Forms application that has a single form which is used to display several different user controls, each containing a set of controls. Only one usercontrol is displayed at a time. I set up the app to create a new instance of the relevent usercontrol when it is required, adding it to the Controls collection of the form. There is&nb ...Show All
Visual Studio Express Editions How To Loop On Rows From A Database Table
I want to loop on the rows from a database table, but I can't work out how to do it. So far, the code I have is: Dim sConnectionString As String _ = "User ID=myname;Password=myPassword;Initial Catalog=mydatabase;Data Source=123.22.44.35,1433" Dim objConn As New SqlConnection(sConnectionString) objConn.Open() Dim sSQL As String = "SELECT * FROM manufacturer_list" Dim objCmd As New SqlCommand(sSQL, objConn) So from there, how could I loop through each record Thanks. Dim cn As New SqlClient.SqlConnection( "User ID=myname;Pas ...Show All
Visual C++ debug output/cout output/ & debugging best pracatices?
Hey folks... you'll have to forgive me... I'm coming from a Java world. I inserted some code that will print to cout.., yet I don't know where to look for where this will be... And debugging... what are some good best practices (in java i used to call my own print function which would first check if debugging was enabled) i've seen some code with a 'DEBUG' function... what is this Thanks! ...Show All
SQL Server NEED HELP - Merge Replication with SQL Server 2000
Hi, I posted about this before, and set out on my own to get this working, and haven't been able to. I'm trying to get merge replication working with my SQL server 2000, and after 2 weeks I still have nothing. I've gone through multiple 'walkthroughs' which all brought me to the same point. I'm getting down to crunch time, and I'm either going to use this or implement my own merge algorigthm (I'd much rather use this). So here's where I've gotten to: My database it taking snapshots correctly (i think) I believe IIS is configured correctly, because I am able to get to the dll in the snapshot folder I have tried using ...Show All
Smart Device Development Debug PB compiled with EVC
Hi, mr. All! Can anybody tell me if it is possible to compile a binary with a Windows CE 5.0 Platform builder's compiler, but debug this binary with EVC Which switches should I set to make it possible Thank you. Unhappily that isn't supported. CE5.0 uses a newer set of compilers and linker that generates debug information in a format that isn't supported by eVC. Note, PB5.0 Can debug eVC generated debug information. VS2005 can debug PB5.0 (and older PB's) as well as eVC generated symbols. So your best bet is you need to debug PB5.0 generated compiler is to use PB or VS2005. ...Show All
Windows Live Developer Forums Issue with window.external.Channel.SendFile() Method ... Need help Please
Hello everyone: I have my SendFile tag set to true in my xml. I can successfully get the file i want to send by using the var fso = new ActiveXObject(" Scripting.FileSystemObject") then calling the getfile(path to file) method. But, when i try to send this using the code that Microsoft provided in the MSN Messenger Activity API help file as well as microsofts site; I keep getting this error every time I run my activity. "SendFile failed. Error Description: Invalid procedure call or argument" Below is the code segment that is issuing. Please if you have any info that can help me that would be gre ...Show All
SQL Server Web Synchronization Update (Bug)
When you try to update a web synchronization, the wizard asks you to select an existing virtual directory. The problem is that it ends up creating a new virtual directory under the one you wanted to update. If you select the original one, the wizard doesn't enable the "Next" button as you'd think it should. David Cornelson Did you select the virtual directory you created when trying to modify I just tried it and it does not create another one. 1) I created a virtual directory called vdir under the default web site. 2) Then I started the wizard and on the web server page, I selected Configure an existing virt ...Show All
Visual Studio 2008 (Pre-release) Correct way to write an inherited Avalon control
There are two options in the new class wizard that seem close enough. One is for a Custom control, where a class is generated that's derived from Control, but it's just source code, no Xaml. The other option is a User control, where a class is derived from UserControl, and includes Xaml support. Now, say I want to derive my own ComboBox or ListBox - which of the above two do I use as a start I am thinking, I generate a UserControl derived class, and then replace the base class with the class I want to inherit from. Is that the right approach Or does Avalon have a wholly different model for writing subclassed controls Thanks i ...Show All
Visual C# The IDE often automatically changes the file subtype from "Form" to "Code" in the .csproj file
The IDE often automatically changes the file subtype from "Form" to "Code" in the .csproj file, which renders the forms unviewable in design view until that change is undone. Is there any way to prevent the IDE from doing this automatically Thanks, Wilfred look at this url http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx FeedbackId=f39a46fc-5dac-4a55-81ef-e1d262fe0040 ...Show All
Windows Forms How to find and update the value in the hasttable
In the hasttable I have the following key, value pair sun, 10 mon, 20 tue , 30 wed, 40 Could you please let me know, I want to find the key mon and update it's value to 35 If the key is the string "mon", then you access the DictionaryEntry by passing "mon" to the Hashtable's indexer; myHashtable["mon"] = 35; ...Show All
Windows Forms How to split the column Heading of Datagrid in Two rows
In vb.net The column Heading of one of columns of the Datagrid is Normal Rate of Change As I have 9 columns to this grid I had set the width for this column 110 Then heading is truncating I want to wrap this heading as Normal Rate Of change I have difficulty could someone please let me know how to do this Thanks Hello Every Body I am also ...Show All
.NET Development referenced component Microsoft.Data.Odbc could not be found
This is a not a current problem, I just resolved it and decided to post it here for anyone else who has this problem when u convert from any project over to visual basic 2005 and u get the error "referenced component Microsoft.Data.Odbc could not be found" or in the name space u get the error Microsoft.Data.ODBC not found it is not a bug it just wasn't included with visual basic 2005 beta 2 you have to download the data access file from http://www.microsoft.com/downloads/results.aspx freetext=odbc&productID=&DisplayLang=en Click on ODBC .NET Data Provider also u can go here to get more info on how t ...Show All
.NET Development How i can disable pinvoke?
I need to deny the use of pinvoke from dinamically loaded assembly how i can do that PInvokes are protected by a demand for UnmanagedCodePermission. There are several ways to remove this permission from the granted permission set. One (as stated already) would be to create a sandboxed AppDomain (the overload with the PermissionSet arg) where you can control the permission set specifically and ensure this is not in the list. Another way would be to have the assembly itself refuse (via the RequestRefuse assembly-level declarative security action) the permission. Brian Stern [MSFT] ...Show All
Visual C++ Help with an error message please
Hi, I was just wondering if anyone could give any advice about how to get rid of the following error message I have: fatal error C1034: signal.h: no include path set. I have tried the following: Tools-Options-Directories-Show Directories for-Include Files-Directories-Enter Path but according to this, the include path is fine. Thanks Alan If the file is on your machine then you canjust use the /I compiler option to point to the directory where the file is located. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Basic VB.Net Conversion???
I am converting some Vb.Net applications to NetCoBOL i was wondering where the NetCobol forum was Is Net Cobol a microsoft product I would probably try www.netcobol.com which may provide some forums. ...Show All
