krhoover's Q&A profile
Visual Studio Express Editions Visual Basic Express edition 2005 freezes during setup.
OK, I just downloaded Visula Basic Express Edition 2005, I've already uninstalled the .NET framework 2.0, and done everything the online instructions tell me too. My problem is this: When I run the setup program, everything goes OK untill the progress bar in the box that says "Setup is gathering the files needed for installation" gets about 3/4 of the way full, then it stops, I thought maybe it was just being slow, so I left it alone for 4 1/2 hours and still no progress, does anyone know what my problem is and how to fix it Here are the manual install instructions. http://msdn.microsoft.com/vstudio/express/support/install/ ...Show All
Visual Basic Force the printer to print to a new page
I have a situation where I want to force PrintDocument to start a new page even though the previous page is not full. This would be like placing a page break in Word. I have tried using (.HasMorePages) but to no avail. The output has a combination of text and graphics if that makes a difference. Thanks. Returning that property from your print delegate will simply instruct the print engine to reinvoke your delegate with a clean graphics canvas and print to another page. Sorry, perhaps the above should have been a little clearer .... The method you are doing the painting within is called once for each page that you wish to generate. If you want the method to be called again, set e.HasMor ...Show All
Visual C++ Two instances of global variable created when DLL depends on static library
The code below is a simple example that displays some behavior that I do not understand. I have a Visual C++ solution that creates a simple console application. The solution contains a Win32 console application project, a static library project, and a dll project. The console application project contains main.cpp: //########## BEGIN main.cpp #include "MyDLLClass.h" #include "MyStaticLibClass.h" int main() { MyStaticLibClass mslc; mslc.changeInt(2); MyDLLClass mdc; mdc.DllFunc(); } //########## END main.cpp The static library project contains MyStaticLibClass.h and MyStaticLibClass.cpp: //########## BEGIN MyStaticLibClass.h class MyStaticLibClass { public: void changeInt(int _Int); }; //########## END ...Show All
Visual J# Inaccessable Inner Classes in Java to J# Conversion
I am trying to compile a large Java API in J# using VS 2003 and .NET 1.1 framework One problem I am running into is that Inner classes defined in a parent class are not visible when they are acessed through a derived class. Consider the following three Java files: Parent, Derived, and Application: Parent.java: package JavaAPI; public class Parent { public static class Inner { static int InnerInt; Inner() { InnerInt = 1; } } public Inner GetInner() { return new Inner(); } } -------------------------------------------------------------------------------------------------- Derived.java: package JavaAPI; public class Derived extends Parent { public void DoSomething() { /* OK Inner c ...Show All
SQL Server Extremely slow Excel MDX
Using Excel as a client is most of the time exceedingly slow. For example writing a simple query of the type: SELECT [Measures].[Some Measure] ON 0, [Product].[Product-Version].[Product] ON 1 FROM [Cubename] in Management studio is in Excel transformed to: SELECT NON EMPTY HIERARCHIZE(AddCalculatedMembers({DrillDownLevel({[Product].[Product-Version].[All]})})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS FROM [Cubename] WHERE ([Measures].[Some Measure]) which takes several times longer to execute. As one starts drilling down it becomes increasingly worse with excel producing MDX that takes 100:s of times longer to execute then if I handwrite the mdx. This is with a very simple cube where Some Measure is no ...Show All
.NET Development Enum & argument to routine -- how to spot the Enum
In the Interop for ADO the sink ConnectionEventsVt has the following definition (from ildasm): .method public hidebysig newslot abstract virtual instance void InfoMessage([in] class ADODB.Error marshal( interface ) pError, [in][out] valuetype ADODB.EventStatusEnum& adStatus, [in] class ADODB.Connection marshal( interface ) pConnection) runtime managed internalcall adStatus is a ref to a ADODB.EventStatusEnum. So what happens here -- is adStatus boxed into a class (I am guessing so). The parameter is marked as a class which I suppose tells me its boxed -- but how do I know what the unboxed type is -- do I have to do a lookup on the type without a '&' In th ...Show All
Visual C# CheckListBox select single item...
hi.. How i can select single item in a CheckListBox... I want to enable it or disable a single item or i want to check it or uncheck it... Thanks in adavance, Vinay You cannot disable individual items like you can a control, but you can prevent item's checked value to be changed by using ItemCheck event: private void checkedListBox1_ItemCheck( object sender, ItemCheckEventArgs e) { if (e.Index == 2) { e.NewValue = e.CurrentValue; } } The above code doesn't allow third item's checked value to be changed. I'm sure you'll find a better way to check whether the item's check state is allowed to change or not (probably through some of item's properties...). Andrej ...Show All
Windows Forms IntellisenseTextbox
Last week I added the possibility for the users of my hobbyprogram to add there own code. I therefore added a RichTextBox to display and edit the corresponding C# (or VB-code). However thus is without intellisense. Thusfar I haven't found ways to add some basic level of intellisense to that textbox. I wondered if someone knows how to get some IntellisenseTextbox , basically thus a RichTextBox with Intellisense Hi there is a tutorial on intellisense on codeproject: http://www.codeproject.com/csharp/diy-intellisense.asp df=100&forumid=31360&exp=0&select=727059 and also, have a look at sharpdevelop, an open source c# ide (download the code and start playing ;)) http://www.icsharpc ...Show All
SQL Server Where is SSIS package stored?
I have used Import-Export wizard to import some data from a flat file into a db table. When prompted, I have chosen to store the package in SQL Server. The package is executing correctly, scheduled to run (job) once a day...the problem is that I can not see this package in EM and I do not know how to open it in BIDS (since i can not point to a certain file). I can see the package in msdb sysdtspackages90 table, but nowhere else in EM - under management->Maintenance Plans I can see the packages created for db maintenance, but not the one created using import-export wizard. I can se the GUID in the job (command line tab) but the search for the GUID # does not yield any results. The searc for .dtsx does not show this package either. Where ...Show All
Smart Device Development SMS Location
Hi all, I'd like to backup my SMS messages (inbox & sent) from my 2003se PDA/phone (I use an HP iPaq h6365). Could someone please advise where I can find this folder/file - thanks. I'd like to be able to restore my SMS messages should my phone require a hard reset. Thanks, Gav Thank you. I don't really program much myself, but you have answered the question. If anyone knows of any ready to compile code that'd be a big help to me. I found the following web sites if they help: http://forums.microsoft.com/msdn/ShowPost.aspx postid=1216679&isthread=true&siteid=1 http://www.developer.com/ws/pc/article.php/3381221 http://forums.microsoft.com/MSDN/ShowPost.aspx PostI ...Show All
Visual Studio 2008 (Pre-release) Create a round TextBox I can edit
I need to create a round texbox I can edit. I created a resource dictionary with a stile in it like this: < Style x:Key = " RoundTextBoxStyle " TargetType = " {x:Type TextBox} " > < Setter Property = " Template " > < Setter.Value > < ControlTemplate TargetType = " {x:Type TextBox} " > < Ellipse Width = " 30 " Height = " 30 " Stroke = " DarkSlateGray " StrokeThickness = " 0.5 " > < Ellipse.Fill > < SolidColorBrush Color = " DarkBlue " Opacity = " 0.2 " ></ SolidColorBrush > </ Ellipse.Fill > < Ellipse.BitmapEffect > < DropShadowBitmapE ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem creating depth textures
Every time I try to create a depth texture an external component exception is thrown. I have tried creating it first (in case it was a memory issue) and with every set of parameters i could come up with. I am having no problems creating render targets or with creating a depth surface. The code: //creating the surface works, the texture does not //Surface surf = graphics.GraphicsDevice.CreateDepthStencilSurface(graphics.BackBufferWidth, graphics.BackBufferHeight, DepthFormat.Depth24, MultiSampleType.None, 0, true); m_depthMap = new Texture2D(graphics.GraphicsDevice, graphics.BackBufferWidth, graphics.BackBufferHeight, 1, ResourceUsage.DepthStencil, SurfaceFormat.Depth24, ResourcePool.Default); m_positionMap = new Texture2D(graphi ...Show All
Visual Studio Team System Visual Studio 2005 patches
hi there, I have found many issues with Visual Studio. Such as it crashes, no refreshing properly and bugs in the databinding control. why does microsoft not release patches for visual studio NewbieDude wrote: Is the patch available yet There are so many bugs in the Databinding control its so annoying The same goes for the Visual Studio 2003. First service pack is released recently. Bugs,crashes a lot of them ... I tested Visual Studio 2005 trial edition and my keyboard just didn't work. Backspace,delete and cursor keys did not respond, this was one of the most annoying and stupid things in my life. There should be upgrades and pathches for Visual Studio constantly or people will migrate to other platforms like i'm try ...Show All
Visual Basic store and retrieve picture from sql server 2000
I found some good resources on storing and retrieving pictures to sql server database for C#, but haven't found a single thread or example on how to do this with VB. I tried converting the C# code but I keep running into problems when trying to convert this line to VB byte [] bytBLOBData = new byte[fsBLOBFile.Length] I think it would be great if someone wrote up and entire how-to or at least a quick guide for the code to retrieve and store the picture. Below is my entire code but I can't get it quite right. Look at the part where I declare bytBLOBData. Option Explicit On 'Option Strict On Imports System.Net.Mail Imports System.Data Imports System.Data.SqlClient Imports System.IO Imports System Imports System.Dra ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Starting work on my GUI system
Well, I've hit a wall with my game's development, and since there was no GUI with XNA 1.0, I've decided to go ahead and make my own GUI system. I implemented a lot of mechanics for my game, but I need greater interaction to proceed development in a sane manner. So far I've just implemented the text drawing stuff from scratch. It uses only monospace fonts generated with BMFontGenerator without using the generated .xml file. It's decidedly minimal to use only monospace fonts, but keep in mind two things - 1) my particular game doesn't require anything more robust than monospace fonts and 2) a game's engine should be designed around the game's specifc requirements. Otherwise you're scope creepin. I remind myself constantly not to let cool ...Show All
