Brian McKeiver's Q&A profile
SQL Server Having trouble using my component
Hello, I have a component that I've built on one machine, compiled it, added it to my toolbox and it works fine. Now, I've ported (i.e. copied and pasted) the code to the project environment. it still compiles OK but for some reason it isn't made available when I go "Choose Items..." I've a feeling this is a problem with strong naming or something. In my AssemblyInfo.cs file on my laptop (where it works) I have the following: [assembly: Asse ...Show All
.NET Development OPC Automation
Hello, I'want to create an OPC Client for any OPC Server in VB.NET. I use Visual Basic 2005 Express Edition. So, I add a reference to my OPCDAAUTO.dll. And at this time, there is just this part of Code : Public Class Form1 Dim WithEvents g_OpcServer As OPCAutomation.OPCServer Dim WithEvents g_OpcGroups As OPCAutomation.OPCGroups Private Sub Form1_Load( ByVal sender As System. Object , ByVal e As System.EventAr ...Show All
Visual C++ rand() not being random!!!
OK An other problem which I really need assistance with I'm using srand to generate random numbers out of a range BUT i always get the same sequence of numbers!! But I notice the problem come from rand() i tried to create a new project with only this : #include <ctime> #include <iostream> using namespace std; void main() { srand(time(NULL)); cout << rand() << endl; cin.get(); cin.ignore(); } ...Show All
Visual Studio Express Editions How can I load data into a 2-dimensional array?
I have some data in a text file in the format: X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,I,O,O,S,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O ...Show All
Windows Forms Graphics Question
After setting a winform to IsMdiContainer = true, I can't draw graphics text on it in its paint event. Here's the code doing the drawing: Dim objGraphics As Graphics objGraphics = Me.CreateGraphics() 'Draw some text. Dim TextFont As New Font("Arial Black",&n ...Show All
Visual Studio Team System TFS and One-way Domain Trusts
TFS is not operating as I would have expected with regards to authenticating against a trusted domain. As best as I can tell from the User Education site, our configuration should be supported, yet I'm in a situation where the user accounts from the trusted domain cannot authenticate to TFS, and TFS group management will not allow me to add users or groups from the trusted domain either from the UI or using TFSSecurity.exe. The User Education ar ...Show All
Windows Forms Textbox
Hi, I'm new to .NET framework. In the past I've used Borland and trying to learn visual c++.NET is a challenge. I'm not familar with MFC, so I'm diving straight into .NET. I have not found any good beginner/intermediate books. Anyway, I'm trying&nbs ...Show All
Visual Basic Should not hide advances members
Hello, in the Tools Options Dialog i have deselect Hide Advanced Members in the Basic Node. But i don't see the advanced members in the Text Editor. For Example the .Remove Method of System.Delegate. How can i see them Regards, Markus In the object browser, make sure you have 'show hidden types and members' and 'show inherited members' selected. Please note in visual basic, you'll be using the addhandler and rem ...Show All
Visual Basic Updating a dataset help...
Allright, well it seems simple enough, but I'm kind of stuck. First of all, I'm using VS 2005. I've run into trouble while trying to use the save on the navigator tool bar that automaticaly appears when you drop a table onto a form. After I delete a row from my table, I want to save the data; thus, I click the save button on the navigator toolbar. Here is the code that is automatically generated when the toolbar is created to handle the save ...Show All
SQL Server Moving a SQL2K publisher to a SQL 2005 instance.
Hi, I have to move a SQL2K instance (publisher) to a SQL 2005 instance and i prefer not to re-snapshot all the databases being replicated due to the large size of the databases. As i understand all i need to do is 1. Ensure all published databases are in readonly mode. 2. Stop the replication (by either dropping subscriptions, publication or stopping replication agents). 3. Move the databases to the SQL ...Show All
Visual Studio Team System VS 2005 Solution Explorer's Getlatest not getting newly added files
Dear members, I'm having weird issue and wonder that someone else having it or not. Sometime when i add some files in the project and does complete checkin using VS2005 Solution Explorer but still other team members cant see it under the project from Solution Explorer and when i explore the Source Control Explorer files are there and i'v to getlatest them from source control explorer. Can some body figure out wats the issue i dont want to u ...Show All
.NET Development Dynamic XmlSerializer
Hi all! Is there a way to at runtime determine the type of an object and use tha t information in the constructor of the xmlserializer class. I have a few different objects to serialize and I would like to avoid overloading for every object type that needs to be serialized. Any ideas on this matter Thanks! /Pelle Use the following constructor public XmlSerializer(XmlTypeMapping xmlTypeMapping); ...Show All
SQL Server What's Happened to Copy Objects in Import/Export Wizard?
I have just upgraded to SQL Server 2005 from 2000 and went to export some objects to another server and found i no longer can - well at least the easy way. Can anyone tell me what has happened to Copy Objects in the Import / Export Wizard Where can i find it now Regards, John You theoretically can for tables and views, you have to select a table and use the context menu there. Howewer: on my PC I a ...Show All
Windows Forms Welcome to Gridview Hell
Ok this should be Sooooooo Easy that it is insane All I want to do is return a datatable and have the gridview display 4 rows of 3 images. I also need the gridview to page through the Datatabe if there are more than 4 rows of images (Easy so far, Can and have done this in my sleep... Perhaps thats the problem). But when you click on an image, I need to populate things on the right side of the page.. Details like the non-thumbnail version o ...Show All
Windows Forms Dumb Question - Clearing Form.Icon
How can I clear the Form.Icon property value so there is no icon showing in the title bar Tried giving it a 1x1 icon with the proper transparency and it keeps stretching it to 32x32 and leaving a gap before the title bar text. ...Show All
