joynerCN's Q&A profile
Windows Forms Cloning/Duplicating controls on a new tab
Hi All; I'm building a spiffy little windows form in VB.NET 2003 and I have created my mdi and it's child form. On this form I have a tabcontrol (tcCompany)and with a tabpage (tpCompany1). I will be creating/adding 1 or more additional tabpages based on my environment variables table. All of the additional tabpages will need the exact same controls as those laid out on tpCompany1. Can you clone/duplicate (not sure which is the appropriate phrase) Any assistance would be greatly appreciated. graab I spotted your answer first thing this morning, and that did the trick. Thanks! Don't you just love it when the answer stares you directly in the face I was sitting around late yesterday evening shooting the bree ...Show All
Visual Studio Team System Installing Team Foundation for Use over the internet
Hello, I have developers that are in different countries and I am trying to get TFS installed on HTTPS. First issue is that my machine name "machine1" is not the same as the name developers will have to use to get to it over the internet "machine1.mydomain.com". I was able to figure out the SSL part but now how do I configure all the links in TFS to point to my extrenal name "machine1.mydomain.com" without breaking my installation Thanks, Frank My issue is that the machine's full qualified name is "machine1.companyhosting.com" and my outside name is "machine1.domain.com" will this still work ...Show All
Visual Basic Hiperlink to a button
How can I create a hyperlink to a button in a form If this is a WIndows Form you can do the following: Create a Linklabel from the tool box. Add it's click event: Private Sub LinkLabel1_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles LinkLabel1.Click cbGo.PerformClick() End Sub Then it's simply ButtonName.PerformClick ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2d Platforms
I understand it'd be pretty difficult to help me with a problem with me just describing it, without seeing code so... http://skynes.tripod.com/TheWizard.zip There's a link to a zip file containing my XNA project and all images. The Project so far is a mix of a couple of tutorials I found online (2d wizard and a tile engine) along with sprites I found online. I haven't made any of my own sprites yet cause I don't see the point until I have everything working, but I will be using all my own original sprites when it works. Anyway. So far it's a wizard who can jump and shoot fireballs. An enemy (movement currently commented out) walks across the screen, firballs dont do anything yet, but touching the enemy costs you a life. M ...Show All
Windows Forms Disable the X
Is there anyway that i can disable the X close button but i still want to have maximize and minimize. I just want X to be either gone or X to be grayed out so it can't be used. Why don't you simply change the behaviour of your X button Instead of removing it, assign another function to it (minimize window, message box, ...). Why waste a button private void Form1_FormClosing( object sender, FormClosingEventArgs e) { if (e.CloseReason == CloseReason.UserClosing) { this .WindowState = FormWindowState.Minimized; e.Cancel = true ; } } ...Show All
Smart Device Development Thread Help
Hello, i am newbie i never use thread in c++ before i m developing mobile application using c++ and i have create the function like this DWORD WINAPI threaded(LPVOID param) { FILE* file=fopen( "\\My Documents\\thread.txt","w"); num++; char a=num+47; fputc(a,file); fclose(file); return 0; } and when i call this function from initinstance() DWORD dwThreadId; HANDLE hThread; LPVOID lp; hThread = ::CreateThread(NULL,0,threaded, lp,0,&dwThreadId); // returns the thread identifier } i want that threaded function will run in parallel with my application till end how i manage it is there any mistake in the code or i need more enhanc ...Show All
Windows Forms Threading Problem
Hey, I have a custom object that is using threading. I'm following an example I have in a book, so I created an object, and have a thread defined as a private member: private Thread _thread = null ; I have a method called run that defines this: public void Run() { _thread = new Thread ( new ThreadStart (Start)); _thread.Start(); } I have a Start method that does the work. public void Start() { .. do work.. } I am debugging, and the object is being created and it executes the Run method, but it never calls start to actually do any processing; instead it returns and nothing gets done. What am I doing wrong Thanks. To debug call Start directly without using a thread. M ...Show All
Visual C++ cant' compile my code on visual C++ express edition
I have been trying to cpmpile a simple code on the visual c++ express edition but the compiler tells me "cannot open include file: 'iostream.h': No such file or directory" I need some help You need to include just iostream, without a .h. #include <iostream> iostream.h does not exist anymore, it was non standard. ...Show All
SQL Server Stored Procedure - How To?
I have just started with stored procedure and created the code below in SQL 2005 Manageent Express but when i go to the Stored Procedure folder I can't see it, why SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Description,,> -- ============================================= ALTER PROCEDURE [dbo] . [add_new_person] @id_type varchar ( 50 ), @id_number varchar ( 50 ), @date_of_birth datetime , @person_name varchar ( 50 ), @nationality varchar ( 50 ), @gender varchar ( 50 ), @marital_status varchar ( 50 ), @blood_gr ...Show All
Visual Studio Tools for Office [VSTO v3 / Outlook 2007] Custom Commandbars that include combo boxes question
Hello We have developed an outlook plugin that creates custom commandbar that includes a combo boxes that allows users to classify emails based on a custom list. That classification is stored as an extended MAPI property with the email. The issue we came across is with outlook configured to use word as email editor. Since Word does not support "temporary commandbars", any programatic change made to the combo box displayed in insepctor window affects the combo-boxes in other open inspector windows. Does anyone know if Office 2007 will display the same behavior Use-Case: User creates a new message - selects a classification from the custom combo-box that is not the default. Then creates another new message -- the plugin will go t ...Show All
Visual Studio 2008 (Pre-release) Integrating AJAX with WPF
Hi all, I want to know whether it is possible to Integrate AJAX with WPF, or any information regarding that. Prajakta Hi Chad Thanks for your reply.That was a help, I need to integrate AJAX with a specific WPF application, i will investigate in that prespective .If you get any further clues do reply me back. Prajakta, ...Show All
Visual Studio Team System Can we use ($TargetPath) in post-build events?
I have some post-build events on some projects that launch executables after they're built but they aren't being executed during a team build. They have Exclude From Build set to true in the project but we added this to the Team Build project file hoping we could override that: <!-- Additional VCOverride properties for C++ projects --> <AdditionalVCOverrides>%3CTool Name=%22VCPostBuildEventTool%22 ExcludedFromBuild=%22false%22 /%3E%0D%0A</AdditionalVCOverrides> I noticed that the executables are being launched using ($TargetPath). Could that be the problem Should we use a different path We need be to be able to execute those post-build events when we build locally too. I ...Show All
SQL Server Client-Side Database Mirroring Details
Hi, I've been tasked with investigating different methods of achieving database redundancy. In doing so, I'm currently in the process of writing a test application to prove that Database Mirroring in SQL Server 2005 is a suitable solution. Of the established requirements I'm finding difficulties with the following: Identifying the name/instance of SQL Server my application is currently connected to. Identifying the name/instance of SQL Server cached as the failover partner, and confirming it state at any time. Identifying the name/instance of SQL Server cached as the witness, and confirming it state at any time. Forcing a failover via my test application. I've already got some of this functionality via sp ...Show All
.NET Development Problem with Transactions C# and Sql Express 05
Hello everyone I need to have a transaction with a select statement like so trans = cn.beginTransaction Insert into order table an order record select unique order Id from order table insert record 1 into orderdetails using the orderid insert record 2 into orderdetails using the orderid commit trans I am of course experiencing record locking after my first insert. I cannot select records from the order table even though I need the inserted OrderId in order to insert into the orderitemst table. I have tried switching the isolation level to readuncomitted on my transaction but sp_who2 still shows a block even with the readUncomitted Isolation level. A foreign key on the orderitems table prevents me f ...Show All
SQL Server Dependant assemblies in CLR
This is related to one of my previous posts. I am running a CLR stored proc that goes to an EDS (Novell) server with LDAP and returns records into a SQL table. I am using the Novell ldap library. I want to do this with SSL so my code referneces the Mono security library as well. However when I make the call to the stored proc to run in SSL, I get an object not found error. I do not think that the the Novell assembly can "find" the Mono assembly. Two points: 1/ I can do the SSL if I run it as an asp.net page (so I know the SSL works) 2/ The proc runs and pulls all the records in non-SSL (so I know the proc works) Any ideas Thanks, BIG OK tried the four part name so changed Novell.Directory.Ldap ...Show All
