G lee's Q&A profile
Windows Forms Tabbed Form
hi can i host a form inside a tab control what i want to do is an MDI and isnide it some forms and i want to display them in a tab mode could this be done thanx a lot thnak yoy v.much for yr answer but i have an idea i dont know if this will work i will create my forms as a user control and then add them to a tab control in a form i tested it and it works fine ...Show All
Visual Basic Contending with New Versions of VS/Windows
I am concerned about the constant parade of new releases of major programming tools such as Visual Studio and indeed even Windows itself. It seems to me that there is a constant parade of new versions of stuff ... VB 3, VB 4 ... VB 6 ... VS 2003 ... VS 2005 ... and now I hear about VS 2007 and Office 2007! Now, I am the first person to want to see improvements made in products and I understand that updates are important but trying to keep up with all of this is driving me batty. Now, here comes Windows Vista and from what I have read VS 2003 and VS 2005 won't run under Vista. I guess this means that I have to stop doing new stuff and go back and rework my old projects/programs to run under VS 2007. This is a BIG pain. There really ought to ...Show All
Smart Device Development How to determine if phone has SMS capability?
Hi. I am using VS2005/VB.Net and CF2 to write applications for Windows Mobile 5 Smartphones. I'm developing an application that relies on the phone having the ability to send and receive SMS message. I believe (but I could be wrong) that in some countries, and/or with some network providers, that the ability to use SMS is something that must be "turned on" by the network provider and/or setup within the phone. Therefore, I would like my application to be able to confirm that SMS is enabled and working on the phone, and if not, inform the user appropriately, rather than the user thinking that my application isn't working as intended. So, is there a way to programmatically determine if the Smartphone has the ab ...Show All
Visual Studio Breakpoint will not currently be hit. No symbols loaded for this document.
I have been 'developing' with Visual Studio 2005 for about 3 weeks now - primarily .NET class libraries developed with VB. I am coming from VB6, although I did a lot of development with Visual C++ several years ago, so I am still trying to come to terms with the debugger. I have read many threads posted by people who are having a problem with breakpoints, specifically with the message in the subject line above. There have been many suggestions on how to fix this problem. Sometimes these suggestions work, sometimes they do not. Most of the suggestions involve deleting DLL and PDB files and rebuilding, or restarting Visual Studio. None of them suggest any problem with something the developer has done or any problem with the configuration of ...Show All
Visual Studio Tools for Office Smarttags
Hi, I'm developing in C# and I'm using Office 2003. My poblem is that I want that all incomming Email are wiroking witz my SmartTags which are searching for article numbers. What I have to do for it M. Franz, Check out this article on MSDN it explains the process of building an application level smarttag in managed code. Eric Carter's book Visual Studio Tools for Office: Using C# with Excel, Word, Outlook and Infopath also goes into great detail on this topic starting at page 666:) http://msdn.microsoft.com/msdnmag/issues/05/02/ManagedSmartTags/default.aspx Hope this helps, Donald ...Show All
Software Development for Windows Vista New xp pro machine, MSDTC not installed or configured?
Hello everyone, I purchased a brand new shiny development machine last weekend (one of the new dual core 2 processor machines...two thumbs way up!). The operating system on the machine is XP Pro. I am coding a C# 2005 winforms application which requires MSDTC and after opening my C# project and running it I noticed that MSDTC is not installed on my new machine. I thought MSDTC was installed on every windows machine but apparently that is not correct. So when I go to component services to look at the Distributed Transaction Coordinator the "my computer" icon has a red arrow over it instead of a green arrow which makes it look like there is a problem. If I click on the "distributed transaction coordinator" folder under co ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Data Model Discussion
Just trying to get a bit of discussion going on the sorts of solutions that people are using to handle their game data. Here's a breakdown of the solution that I've been working on to get the ball rolling. I was mostly going for RAM efficiency here, though I tried to keep the overhead on all of the methods needed to do stuff as low as possible. I'll have to instrument the code and see how fast I can create different kinds of objects and iterate my dictionaries at update and draw time. Data Mapping Files: - GameData\TextureSources.xml - GameData\ObjectDefinitionSources.xml These files provide mappings from enums to data files. More on how these are used later. Data Files: - Textures\*.<ext> - Objects\*.<ext> These f ...Show All
SQL Server DBCC MemoryStatus dump and help 'Insufficient memory'
Hey guys. Today morning at about 9:58am I had an insufficient memory exception in SQL. I've reserved 12gb memory for my SQL server. I've pasted below the dbcc MemoryStatus dump gotten from SQL log. It also gave me a BPool::Map: No remappable address found My SQL Server version is 8.00.2148. Enterprise Ed. Can you see any problems in the below pasted log 2006-08-09 09:58:11.63 spid175 BPool::Map: no remappable address found. 2006-08-09 09:58:11.69 spid101 Buffer Distribution: Stolen=156843 Free=1634 Procedures=17623 Inram=0 Dirty=108669 Kept=0 I/O=0, Latched=1220, Other=1286875 2006-08-09 09:58:11.69 spid101 Buffer Counts: Commited=1572864 Target=1572864 Hashed=1396751 InternalReservation=510 ExternalReservation=130 Min Free=15 ...Show All
SQL Server ReportViewer error "Page navigation is out of range"
I am embedding the ReportViewer in an aspx page and the report comes up fine, but when I press the "Next Page" or "Last Page" buttons, I get the error: "Page navigation is out of range". The application has session state turned off. The problem occurs whether or not the viewstate for ReportViewer is turned on or off. How can I fix this problem I figured out a workaround. It appears that the error occurs when you set the ServerPage during the postback. Don't explicitly set the ReportServerUrl or ReportPath during postback and it should work: /* Insert the following two lines before setting ReportServerUrl or ReportPath */ if (IsPostBack) return; Report.Server ...Show All
.NET Development Orcas, .Net 3.5, and .Net 2.0 applications
My understanding is that when .Net 3.5 ships, it will be some new assemblies in addition to the current 3.0. However, I've seen mentioned that there will be a service pack for the 2.0 bits. I believe when I installed Orcas it said it was installing ".Net 2.0SP1". What will ".Net 2.0SP1" do to the 2.0 assemblies Will it change version numbers If so, will it just be 2.0.xxxxx that changes Our customers can write assemblies that our application loads and runs. What I'm trying to figure out is what will happen if the customers write an assembly in Orcas (but it doesn't use any new 3.5 features). Will such assemblies be bound to the 2.0 version and therefore work Or will our app, which is running in the 2.0 CLR get an ...Show All
Visual C# cannot debug any code once it has changed
Hi, I have just installed Visual C# 2005 Express Edition and all was well. One day later and I can't debug a new project as I get the error: "The following module was built either with optimizations enabled or without debug information" I can create a new command line project and add the following line of code: Console.WriteLine("Test"); This runs fine...no problem. However when I change that line to: Console.WriteLine("Another Test"); I get the above error. I cannot debug any code once it has changed. I've seen some other posts with the same error but no clear solution. I have worked out that when I delete the .exe file from the bin\debug directory it all works again. The code debugs f ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XAudio <--> XACT API?
So I've gone through the various multi-threading presentations from the GameFest downloads trying to understand how best to structure my game. All is well so far, the concepts map over to the managed world pretty easy ... and I've even gotten myself a creator's club sub, so I'll get to try all this on the 360 shortly. One recurring thing that I noticed in the "Case studies" of existing/shipped games that one of the presentations did is that many of those games dedicated an entire core to "XAudio". So I was wondering if, for an xna game of similar complexity, one might be able to follow their lead. If so, how would one ship the audio processing to the other core ... is it as simple as having a thread that calls the upda ...Show All
Visual Studio Sandcastle Errors
I am getting the following Warning on starting a sandcastle build: Warning: MRefBuilder has a version of '2.2.061208.00' but version '2.0.2459.30849' was expected. You may need to update your copy of the help file builder. followed, much later, by: Error: BuildAssembler: The type 'Microsoft.Ddue.Tools.CopyFromFileComponent' was not found in the component assembly 'C:\Program Files\Sandcastle\ProductionTools\BuildComponents\BuildComponents.dll'. BUILD FAILED: Unexpected error in last build step. See output above for details. My question is does this mean I need a newer version of the Sandcastle Help File Builder Can I make a configuration change to correct Does the Warning result in the error Thank yo ...Show All
Windows Forms Button to Form Communication
I have an array of buttons shown on my form. My buttons are of a custom type that inherits from Button. As is supposed to be, when I click the buttons, their OnClick method is called. I need to keep track of every two buttons that are clicked, such as a this button was clicked first, this one second kind of thing. How can I go about that Your button should not have behavior associated with it. It should behve like a standard control and good design dictates that the view must be separated from the behavior. Charles ...Show All
SQL Server Restoring sql express and databases from tape backup.
Hello, I would like to restore SQL Server Express and its databases from a tape backup to the same server. This is a disaster recovery senario. I backed up the Master, Model, MSDB and my own test database using SQLCMD scripts. I have no problem restoring these using task scheduler on the server before the disaster recovery. However, in my real disaster recovery testing, When the server is restored by tape drive (HP one button disaster recovery), I try to run my SQLCMD restore scripts in task scheduler and I cannot connect to the sql server. Also I cannot connect with Management studio. I have recieved the following error in event viewer. ---------------------------------------------------------------- Event Type: Error E ...Show All
