Manabu's Q&A profile
Windows Forms Deployment Promotion Question
Our current deployment environment consists of a Development, Acceptance and Production server. The process is that I deploy to the Development server via ClickOnce for general testing. The idea then is that the deployment get migrated up to the Acceptance server for QA to test. Finally, the deployment would be migrated to Production. Is this really possible with ClickOnce since the manifest contains the initial deployment location (Developme ...Show All
Visual C# Construct Enum dynamically possible ????
I was wondering if it was possible to construct an enum at runtime Let's say i have a lookup table, and i'd like to have an enum for that lookup table. Is it possible to construct the enum dynamically Thanks, It's called an int. You can't construct a enum dynamically, and what would be the point enums are for making magic numbers readable in code and validating values. If you never read the value in the code, ...Show All
Software Development for Windows Vista Custom Composite Activities and Correlation Tokens
Beta 2.2 Perhaps a tricky one for the WF people: I have a custom SequenceActivity that has some logic for generating the properties I need for a CallExternalMethodActivity and HandleExternalMethodActivity. The general idea is that the composite activity encapsulates the supporting logic for a user input custom activity. Now, for each type of typed input from the user, I inherit from this class and put the actual CallExternal and HandleExternal a ...Show All
Visual C# Thread execution order
Hello - I have a WinForm built in C# with a System.Windows.Forms.Timer. When the timer expires, the Tick event is fired and I update some Bitmap images that I use as backgrounds to some of my controls. During my program execution, additional controls may be created and need to have the same Bitmap images for backgrounds as the previous controls. While all the updating and setting are done on the UI Thread, I'm concerned that while I ...Show All
Visual Studio Team System E-Mail Nofitications w/ no subject line after e-mail address change
Hi, After I changing the "from" e-mail address, I'm no longer getting a subject line in my e-mail notifications from TFS. Any comments and deas would be appreciated. Thanks! Hi Henry, Can you please verify for me that this is still an issue If it is, I will have it assigned to the appropriate person to provide help. Thanks, -Matt ...Show All
.NET Development FtpWebRequest re-sending USER and PASS commands half way through download loop
Well, the title says it all really: I'm using FtpWebRequest to download multiple files as follows: private string GetFile(Uri uri) { string un = Misc.ReadRegKey("ParserFtpUsername"); string pwd = Misc.ReadRegKey("ParserFtpPwd"); string file; NetworkCredential cred = new NetworkCredential(un, pwd); WebProxy pxy = new WebProxy(); pxy.UseDefaultCredentials = true; FtpWebRequest wr = (FtpWebRequest)We ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Octrees question
Hi, I've done some reading before posting this, so I think that the answer to my questions is not already in the forums. I've also searched the internet and read some articles about octrees. Bu I still have some doubts regarding this matter. What happens if a object is too big, and is inside 2 or more octree leafs Should the object be divided in 2 If not wouldn't the object be drawn twice Or this should never happen If the object will ...Show All
Software Development for Windows Vista IIS in vista build 5231
I'm having trouble installing IIS in vista build 5231. Per www.open-node.net/archive/2005/10/17/1164.aspx I tried the following: start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServerFeature;IIS-FTPServerFeature /p:c:\packages\Ultimate\Microsoft-Windows-IIS-WebServer-Package~31bf3856ad364e35~x86~~6.0.5231.2 However, I did not get any return message. pkgmgr / shows the command line options, so the utility exists. However, the / ...Show All
Visual Basic Stop user inputting a single
I need to no how to stop the user inputting a single into a textbox. The only way i can see to do it is to make it so that the length cant be longer than 2 characters but there has to be an easier way thanks for any help you can give me Are we talking about preventing them from entering a value that can be represented as a single data type. So its OK to enter integers, alpha characters, something that co ...Show All
.NET Development array redim and redim preserve
Greetings All, The following is the vb.net code i need equilant C# code. can anybody pls help me to complete the following Dim vaResultSet If Not IsArray(vaResultSet) Then ReDim vaResultSet(0) Else ReDim Preserve vaResultSet(UBound(vaResultSet) + 1) End If Thanks in advance sai Sadly, Microsoft were forced to preserve a lot of VB6 *** in VB.NET. Read this link: ...Show All
Windows Forms MsgBox Font
Seems like a simple solution, but can't find the answer. How do you change the font properties for a Message Box. I want the text to show as Font Size 15 Thanks MsgBox("HELLO WORLD", MsgBoxStyle.OKOnly, "Title") You cannot modify the font properties or layout of the MsgBox since under the covers, it calls MessageBox in User32.dll. This Win32 C-function only exposes the owning window, text, caption, ...Show All
SQL Server Unable to replicate over websync but via the lan
Hello, I am having a problem trying to run websync but can run replication over the lan. During the websync it errors out stating cannot connect to the distributor. The same login and password are used in both scenarios. Am I missing a setting John Mahesh, Sorry I should have been more specific. I didn't configure the distributor for the live box until a month ago. That was the only difference, ...Show All
Windows Forms Change DataGrid Cell Color @ Runtime
I get the Row and Col Input from the User and I have to change the cell color for that particular cell. Is there a way to do this Thanks, Check out the following. You might be able to adapt this for your purpose ...Show All
Visual C++ Where's my VC++ 6.0 keyboard layout (Beta 2) ?
Maybe I'm just not looking at the right place, but I can't find a way to go back to my old VC++ user shortcuts. Old habits die hard ;-) The only options I have are: - Brief - Emacs - VC++ 2 - VS 6 (not VC++ 6) Is the support for VC++ 6.0 shortcuts gone in Beta 2 If you are using the "C++ Developer" profile, you can select "Default" and this essentially is the same as selecting "VC6" since VC6 is now our default. If you are not us ...Show All
.NET Development Events in Generic List
In a C# program I've been working on, I have a class that makes use of a couple of generic lists to store some data. When the form that displays the database is closed, I do a check to see if the class is dirty. I've got some properties set up for the singular values so that when they changed, the dirty state gets updated, but I haven't got the lists updating the dirty flag yet. The way that I'm looking at doing it is attaching an event handler ...Show All
