mobigital's Q&A profile
Visual Studio Express Editions VB 2005 Express on 2 computers. Do I need to register twice?
I installed Visual Basic 2005 Express beta 2 on two different computers (home and work). I used the same .IMG file if that's important. I want to register the programs so that they will not stop working. I have a single MSN account. If I register one of the installations using my MSN email address, will I still be able to register the other Will it let me register twice using the same MSN email address and psw I tried creating a new Hotmail account to use as a second, unique email address but the registration program refuses to accept it. It seems to want to use my MSN email address. Thanks in advance, audioGuy ...Show All
Windows Forms UserControl with multiple listboxes
I'm sorry, but I'm very new to this and I don't have anyone who can help me. This may be basic but I've been researching this most of the night and I can't figure out how I'm supposed to code this. I have developed a user control to use on several tab pages. This user control has 11 listboxes for which I will need to capture ...Show All
.NET Development Retrieving data in fields in dataset or ADO.NET
Who knows the codes for retrieving data in a database field in a dataset and inserting it into a textbox How do i move the arrow in the database through codes in VB.net pls email me at francis_himura@yahoo.com ASAP please! Thanks! Ok, ADO in VB6 and ADO.Net has a very different approach. ADO .Net adapts the principle of a disconnected recordset in VB6. If you want to create a ForwardOnly cursor, just like in vb6, You'll need to use DataAdapters. if you want a disconnected recordset (I think it's adOpenKeyset in vb6) then you'll have to use datatable or dataset. BTW, in ado.net you don't nee ...Show All
.NET Development Simple remoting program throws system.security.securityexception
I am fairly new to .NET and am having trouble getting my head round all the security aspects. I have written a very simple remoting application in C#. The server exposes a method which returns a string. The client calls the method and displays the string. I have a two PCs on my LAN: my main desktop running XP SP2 and a laptop running W98 with .NET1.1 added. I can run my app on these two PCs either way round and it works fine. The server consists of a host .EXE and a server.DLL. The client is a standard windows .EXE form app - all standard stuff (the remoting is configured programatically not using XML so there is no config fil ...Show All
Visual Basic Assignments within expressions
Will VB ever allow for assignments within expressions I've boggled over translating simplistic C# code into VB.NET code many hours since VB doesn't allow this. Take the following two code pieces for example: while (--n >= 0) { // do some code } And while (n-- >= 0) { // do some code } This may seem simple to translate at first, but only if the variable n is used inside the loop. If it is referenced outside the loop, it can be different values, based on whether the '--' is prefix or postfix. This is a simple example, but imagine more complex express ...Show All
Visual C++ another c++ question
I have this program with some errors that I cannot solve. Any suggestions Mark started a trust fund for his niece Mary. He started it on her first birthday with a deposit that was a product of her age and her mother’s in dollars. He got the idea thinking about the coincidence that Mary and her mother have the same birthday. And every birthday since, he has done the same, deposited an amount that was the product of their new ages. A great idea! And a very handy nest egg for the future for Mary. Now someone asked Mark how much is in the fund now Mark wasn’t exactly sure, what with interest. But he did know how much he had depos ...Show All
Windows Forms IObjectSafety
Hi all, <b>I want to create an ActiveX control in VB.NET that will be safe for initializing & scripting in IE, Now base on my readings I have to implement IObjectSafety Interface, so I created this interface below:</b> <Guid("CB5BDC81-93C1-11CF-8F20-00805F2CD064"), _ ComImport(), _ InterfaceType(ComInterfaceType.InterfaceIsIUnknown)> _ Public Interface IObjectSafety <PreserveSig()& ...Show All
Visual FoxPro Main Window Default Size/Location
I would like to know what determines where the compiled EXE application window opens and what size it is. I would like to have the window: - remember if it was maximized or - remember last size and position Right now it is always starting in the top/left corner and I'm not sure what I did to get it that way. Thanks I'm not sure whether we are talking about the same thing. I am talking about the overall FoxPro window which some people may have turned off. Not talking about the forms. Anyway, I found the solution Put SCREEN=OFF in the CONFIG.FPW file In the startup code of the project reposition and size the w ...Show All
Visual Studio VS2005 Team Developer install after SQL Server2005 Enterprise Trial?
Hi, I have installed the SQL Server 2005 Enterprise Edition 180-day trial on my notebook. Consequently I ended up with an installation of Visual Studio 2005 (with SQL Server Analysis Services, Integration Services, and Reporting Services installed), and of .NET Framework 2.0 (right ). I now have interest in installing Visual Studio Team Developer Edition. I ultimately would like to have both on the same notebook (i.e. not interested in removing SQL Server unless absolutely necessary - and then would be reinstalling anyway). Should I proceed with installing VS2005 Team Developer, or is it necessary to remove the existing VS2005 and ...Show All
SQL Server Can the SQL Server 2005 be installed on Windows 2003 SP1?
I recently attempted to install Windows 2003 SP1 on a machine on which someone had previously installed SQL Server 2005. The build number for the SQL Server 2005 installation is 9.0.1116. (BTW, which CTP is this build number ) The installation of the service pack seemed to go okay, but I soon got calls from users reporting that they could not log in to the instance. I investigated, and discovered that the SQL Server service had not started. We were unable to start the service, and had to remove SP1. This was the message I found in Event Viewer: Event Type: Error Event Source: SQLDUMPER Event Category:&n ...Show All
SQL Server Fail Execute Process Task based on batch file ERRORLEVEL?
I am new to this, but have scoured the web and not found an answer to my question... I have an execute process task that runs a simple batch file. When this batch file completes with an ERRORLEVEL greater than 0, I would like the task to fail. I thought this simply meant setting the "FailTaskIfReturnCodeIsNotSuccessValue" property to true, and setting the SuccessValue to 0. However, this does not appear to work. Even with a simple batch file forcing the errorcode to 1 as follows, the task still completes "successfully". SET ERRORLEVEL = 1 Any ideas Thanks! I am not clear on ...Show All
Visual Studio Team System cannot create a new team project
Hello. I installed TFS successfully into single machine and could connect to TFS using TFSSETUP account. But once I tried to create a new team project, I got an error message. "Project creation failed with error: "Initialization failed for plugin(s): 'Microsoft.Pcw.wss'"" The TFSSETUP account is a member of Administrators group and Namespace Administrator(ADAM). My environment is below. - Windows Server 2003 with SP1 - IIS 6.0 - SQL Server 2005 April Ctp - Windows SharePoint Service 2.0 - Team Foundation Server Log messages are atacched. Please help me. ---------------------- 05/02/2005 11:41:10.437 | Module: ELeadServiceMediator | ...Show All
Visual C# Simple Question: How to Open Win. Explorer with Path
Hi, it's me again :) I have a simple Question: How do i open the Windows Explorer with a given path by clicking on a Linklabel In your linklabel's click event you can initialize path variable to the path you want to open in windows explorer, and then use Process.Start() method: string path = @"C:\"; System.Diagnostics.Process.Start(path); ...Show All
Visual Studio Team System Testing a Unit that uses AppSettings
Hi, I wanted to unit-test a code unit that uses information from the appSettings section. Thus I created a corresponding app.config file in my Test Project. This looks something like < xml version="1.0" encoding="utf-8" > <configuration> <appSettings> <add key="mySettingName" value="something"/> </appSettings> </configuration> But then, ConfigurationManager.AppSettings[mySettingName]; returns null. How can I access appSett ...Show All
SQL Server Enabling the Service Broker
I'm trying to enable the Service Broker for Sql Server 2005 because I want to be able to use a SqlDependency object. I ran the following query to see if my local sql server service broker was enabled: SELECT is_broker_enabled FROM sys.databases WHERE name = 'dbname'; It came back with a value of 0 (which means it is not enabled). I tried executing the following sql command to enable it: ALTER DATABASE dbname SET ENABLE_BROKER; The query has been running for over 5 mins and just keeps spinning (should it take this long to enable the Service brfoker), so I cancel it. I even try to issue the command to see if the service broker i ...Show All
