Rick0124's Q&A profile
Visual C# public data members vs. properties
what's the real difference between public data member and properties Just in case, I would check to make sure all of your references are correct. The difference between Itemset and itemSet is very small indeed. ...Show All
Windows Forms Dll sub doesn't work after repeat
I created an fortran based subroutine and calling it from "visual basic" application. But after a couple of repeats of the call command, the sub doesn't work if I dont close the exe application file.. It just skips the call declaraqtion... I think I need to reset some kind data somewhere but I dont know where Is there anyone who could suggest&nb ...Show All
.NET Development How do I deploy a business component in ASP.NET aspx.vb page
I compiled a VB class file as a dll file and copied the lib file in the bin folder of my asp.net application. However, when I try to import the file, the namespace does not appear in the context menu, and I am not able to make any references to the dll and its methods. I understand that I do not need to register the dll file in a .NET environment. What do I need to do in order for me to make references to the object and its methods. Help... Hi! cgraus is right, you need to put it in your bin folder, and then in VS, add a reference to the dll that you just added. Once you've done ...Show All
.NET Development ADO.net, how to use INSERT statement
when execute insert statement, happend exception "fail to connect datasource". if change the value( , , ) to real value(3,'dfdf',11). it work well. so it prove that it can connect to DB. and execute select statement, no problem. why insert can happened the problem how to handle it CageNo defined to AutoNumber, CageName to Text and Food to Number(long integer) in Access. Any help, i will appreciate it. using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Data.Odbc; namespace WindowsApplication3 { /// <summary> /// Summa ...Show All
.NET Development Typed dataset and ReadXml
Hi! I have some problems with my typed dataset, the dataset contains several datatables and the problem occurs when i try to load the dataset with the ReadXml function. The problem is that some of the tables won't load properly. For example: MyDataSet ds = new MyDataSet; ds.ReadXml("ds.xml"); The table table1 in ds will be empty, even if the xml-file contains data that belongs to table1. MyDataSet ds = new MyDataSet; ds.table1.ReadXml("table1.xml"); Doesnt work either, but this will work: MyDataSet ds = new MyDataSet; MyDataSet.table1 tb1 = new MyDataSet.table1(); tb1.ReadXml("table1.xml") ds.table1.Merge(t ...Show All
Visual Studio Team System Rosetta Not Playing Nicely - Help Request (Security)
hey all, i did the virtual server install path and i'm having some troubles in getting a project created as per the example. for reference, i used the how-to for virtual server (except my dc is on the base machine) for the december CTP build. wanted to try to troubleshoot this a little. if anyone could lend a hand i'd appreciate it greatly. i have three machines in the game: WATERPOLO dc, ad, dns CRICKET (virtual machine) sql + reporting services, tsfs data) BOCCEBALL (virtual machine) sharepoint, word, excel, tsfs app, tsfs client) the error seems to point to a security issue, as the inner exception on the RosettaInitializat ...Show All
Visual C++ Code used to clear text boxes
im new to c++, and i would like to know the code that you need to use to clear text boxes. regthesk8r wrote: im new to c++, and i would like to know the code that you need to use to clear text boxes. SetWindowText can be used with an empty string. ...Show All
Visual Studio Changing the icon of context menu item during runtime
Hi, I want to change the icon of a context menu in my VSPackage during runtime. is there any way to set the icon during runtime apart from .ctc file. the icons are supplied during runtime based on a condition. its being loaded in the Project imagelist properly. Please help. Thanks Unfortunately, you cannot change the icon of a command dynamically. You can change the text displayed, but you cannot change the bitmap. Craig ...Show All
SQL Server Triggers
I understand that triggers is not currently supported in this release, and that Microsoft may be considering supporting them in the future. Will the final release have support for triggers, or will this have to wait until the next major release Thanks The present version of SQL Server Mobile ver 3.0 does not support triggers. There are different viewpoints about the trigger functionality as given below: 1) Notifications – Rather than having a full fledged trigger functionality, can we have notifications. Some of the application development scenarios for this are – Data in the tables is changed by t ...Show All
Windows Forms TabControl background color
I would like to set the background color of a tab control (more precisely the background color of the area next to the tabs). I guess I have to create a custom class inherited from TabControl where I override the OnPaint method... Could anyone provide a code sample please Thanks a lot! In the meantime I've installed the Magic Library,& ...Show All
Visual C# Problem with axWebBrowser in a Multithreaded application
Hi! So I have a MainForm. There is a timer on that form, and in a right time I want my application to shows four seperate forms with an axWebBrowser on them. These axWebBrowsers are automated with their OnDocumentComplete events. So, first I had the following error message: ...The current thread is not in a single-threaded apartment. So I searched the internet for this error, and corrected my code with this line: regThread.ApartmentState = ApartmentState.STA; I dont have 'is not single threaded blabla...' for anymore, but now I have this error: Attempting managed execution inside OS Loader lock. Do not attempt to run managed code ...Show All
.NET Development Two different Commands in same function
I have two SQL commands in a button click function...Can i use two totally different commands in one button click method ...Show All
Visual Basic causing clicks prog
I have a situation where I compute the next toolstripmenuitem to invoke and then click on it for the user. Six different routines are involved. I currently do it by looking at the name of the menu item and picking the correct routine to call. Not only is the is ugly, I left out one of the six categories when I first coded it:-( The appropriate click events are all "stored" in the event properties. How do I retrieve and fire the appropriate one. The following code looks like it should work, but doesn't: Dim typ As Type = mi.GetType Dim ev As System.Reflection.EventInfo = typ.GetEvent("Click") If ev Is Nothing Then Throw LI ...Show All
Visual Basic TextBox BackColor change OnFocus and LostFocus
Hello, Is it possible to extend the TextBox class to include an event where the TextBox changes it's background color on focus and returns it to the default on lost focus Kind regards, Hello, Appreciate your answer. It works perfectly. Would the same solution apply with a form that has, say ten TextBoxes- I mean, repeating the same code for each one of the TextBoxes (TextBox1,....2,...3. etc) Kind regards, -------------------------------------------------------------------------------------------------------------------------- This newbie can't talk and can't walk. Embarrassing. ...Show All
Visual Studio Tools for Office Drag & Drop + VBA Marco Question
Dears, I have 2 questions: 1. I'd create a DataGridView inside a User Control (ActionPane) in my VSTO2005 project, and I'd like to know is it possible to allow users to "drag and drop" a DataGridViewRow item, that's row(s) of data, from ActionPane to Excel worksheet directly I can't find any DragEnter event handler for the worksheet object. 2. I want to display a dialog box asking user to select a location of a dynamic ObjectList, that mean, I'll create a ObjectList on the fly and let the users select a destination. I tried the Globals.ThisWorkbook.ThisApplication.InputBox with option 8 (Range) but it's just a modal dialog, I even c ...Show All
