mario.muja's Q&A profile
Visual Studio Express Editions I need help
I have a richtextbox, and I want my application to add "<br />" to the end of each line when I hit a button. not sure in RTF. I guess one way would be to add an image into the clipboard, then paste it into the document but this may not be a good solution. An example however: Dim theImage as Image = Image.FromFile(" theImage.jpg ") 'Load the image from file ClipBoard.SetImage(theImage) 'set the image in the clipboard Me.theRichTextFormat.Paste(DataFormats.Bitmap) 'paste the image into the document in the RTB control ...Show All
Windows Forms How to get target path when drag/drop (.NET2.0 C#)
Hi, I want to drag an item From my listview, To local computer's filesystem. I need to get the path of the target filesystem, how to do that in C# Br, -L Lanceli wrote: Hi Andrew, Your post gives me helpful hint. But my "file" in the ListView doesn't exist in local file system. This file is binary format content in the memory. I guess I know how to accieve it. Hope ItemDrag is the correct event to use. Thanks a lot! I will close this post as soon as I solved my question! BR, -L Yeah, you're on the right path... Search google too, you will find plenty of source out there. ...Show All
Software Development for Windows Vista test case 8: Fast User Switching help needed
Our application doesn't support fast user switching. However, the test case 8 states that If application does not support concurrent user sessions, it must pop-up a message indicating this to the User and write a message to the Windows NT Event Log in order to pass this test case. How do we find out when the user tries to "swicth user" to show the popup message. Please help. Here's more detail on Fast User Switching that might be very helpful to you http://msdn2.microsoft.com/en-us/library/ms997634.aspx#winxpfus_switching ...Show All
SQL Server How to use reporting services with data mining ?
Hi , How can I use reporting services to get reports out of analysis Services Database I found following on one site, but I tried to look for Analysis services database on the server I am deploying the model , but I am not able to find it. 'To use Reporting Services with data mining, you simply create a Reporting Services project with the BI Dev Studio and specify an Analysis Services database as your data source. Depending on the contents of the database, you will be presented with either an OLAP or Data Mining query builder as in Figure 3.23. You can always switch between the two modes by clicking the Switch ' thanks, Vikas Hi Jamie, I've tried searching what you mean, but I have not found it. Do you mean th ...Show All
Visual C# Sample code problem: creating threads
I found some example code in a web page titled “How to create a thread by using Visual C#” and located here: http://support.microsoft.com/default.aspx scid=kb%3Ben-us%3B815804 The instructions in this tutorial are easy to follow and I think I followed them correctly. It took maybe 3 minutes. When I try to run the new project, it pops up the form, then a few seconds later a window titled “InvalidOperatorException was unhandled.” The Window has an option to “Copy exception detail to the clipboard” so I did that and pasted the data in below. The line of code highlighted is: this .progressBar1.Value = newval; I did it twice and obtained exactly the same results. Did I make an error Has anyone ...Show All
Visual Studio 2008 (Pre-release) Hosting Multiple Services
Hi, First, I want to host over 50 different services each with a seperate interface, how can i do that in WCF using the same endpoint and the same service host. Second, can a service dynamically add a service to be hosted, for example lets say i have created a new service is there a way i can dynamically host this service without recompiling the service host code. Ok, how can i do that especially that when you create a service host it asks for an object or Type of the service that will be used. This is mainly tightly built around the service i want to publish. Secondaly, in the endpoint section in the config file you also define one contract (interface) how can i define multiple ServiceContracts each with its own implementa ...Show All
.NET Development IPersistStreamInit->Load methos crashes in Win2k SP4 and in windows 2003 SP1
Hi I have a procedure with following code fragment IStream* pStm = NULL; IPersistStreamInit *pPSI = NULL; // pPSI and pStm are initialized here hr = pPSI->Load(pStm); above call crashes silently on win2k SP4 and on windows2003 SP1, but it works fine on XP SP2. What can be the possible reason and solution for the problem. Any Help will be appriciated. Thanks in advance. Hi, The problem is resolved now. Bug was found with the FileStream class implementation. This FileStream is used by Load method. Thanks for Reply. Regards, Atul Nisar ...Show All
Visual Studio Team System Bug: 2005 is missing in Add/remove program and setup dialog boxes in some part
Small bug in the setup: The 2005 part of the product is missing in the setup in some parts. It is only Visual Studio Team Edition for Database Professionals instead of Visual Studio 2005 Team Edition for Database Professionals as it is in pictures and the rest of the VS 2005 team family products have. I guess they should appear next to each other in Add/remove programs since they are part of the same team family. Best regards Niklas Engfelt I saw that it is missing in the ReadMe of CTP5 as well. In the Requirements it says that you should have Visual Studio Professional Edition. If you are not having any year, that is the 2002 version, and I think that is not working with Database Edition. ...Show All
Windows Live Developer Forums VE in XAML application
I am trying to embed VE in a WPF application (XAML). From this forum, I have learned how to embed VE as a web browser control in a WinForms app, and then load a .js script into the webrowser and talk to the script methods inside (I don't like kludges like this, but then that is what I get for trying wacky things). But ( VS-Studio, Sparkle (interactive designer)) do not allow web browser controls to be placed in XAML pages. So I am stuck as to do do this. I have seen heptazane's solution. I was able to reproduce it. But as I noted there, this is a pretty raw control, and unsupported. [when I tried it, it seemed the source of the textures have moved, so it really does not do what I need]. Here is what I am trying to do: Cre ...Show All
Visual Basic How to use MemoryStream.Read Method
Hi, I am learning to use the MemoryStream class, and having a hard time understanding the documentation in MSDN ( http://msdn2.microsoft.com/en-us/library/system.io.memorystream.read.aspx ). I want to read the first 4 bytes of a byte array using MemoryStream, convert these 4 bytes to integer, and store them in a variable. Could someone provide a working example Thanks! In the example I saw they did something cheap. They compressed and decompressed in the same program and kept the bytecount in memory. I had to invent that method on my own and it's works really well. ...Show All
Visual Studio Express Editions ArrayList namespace not found - c# express
Hi, I am trying to learn c#. I was working on a small program, and I needed to use an arraylist. When I type ArrayList myArray = new ArrayList(); , an error message is generated saying that "The type or namespace "ArrayList" could not be found (Are you missing a directive or an assembly reference )" I don't know how to fix this error. I reinstall c#, but I am getting the same error. I am using a Compaq Presario 2100 - Mobile Intel(r) Celeron(R) 2GHz and 128 mb of ram - window xp pro -2002 /sp2. Any kind of help would be appreciated. goto the help section - f1, type in arraylist. You will find that ArrayList is a member of System.Collections if you poke around enough. so put using System.Collections at ...Show All
Visual Basic txt files
How can I access text files in VS2005 and display them in Arrays Any help or websites containing a "How to" would be greatly appreciated. Thanks! Also, more information on split() method of the string class well if its in the debug\bin folder where the app is then you will open it using this: Dim theStreamReader as new System.IO.StreamReader(Application.StartupPath & "\ filename.txt ") this will look in the current folder, where the application starts up from, and open the specified file ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mesh Subset Collision Detection
I have a world with many Mesh Subsets, loaded from a .x file. How do I know exactly where (XYZ) in world coordinates, one specific subset is I want to somehow loop through my subsets to check for collision detection with my character, which has a bounding box. My program is in native DirectX. If your scene is complicated then any check will be computationally expensive. Some things you can try to help are: Create a very simplified mesh of the terrain to check against, it doesn’t have to be rendered. If the character is only going to be moving around at ground level then you don’t need buildings so many polygons high, you don’t need roofs and cylinders can turned into octagons or hexagons. Basically get rid of as many faces a ...Show All
SQL Server Storing calculated measures into existing measure groups
Apologies if this is a really obvious question, but how do I put calculated measures into existing measure groups I have a calculated member Z that's defined as Measures.X / Measures.Y. I want to put Z in the same measure group as X, but I don't see an option to do so on the "Calculations" tab. Thanks! Not sure what would it mean to "put" calculated measure into measure group. You can specify AssociatedMeasureGroup for calculated measure, but it has no meaning for semantics or functionality, perhaps some effect on UI - i.e. in some client tools such calculated measures will be grouped together with measures from their measure group. ...Show All
SQL Server Createing an instance on a Sql Server 2k installation.
I need to know if it is possible to create a Sql Server instance on top of an existing SQL Server 2k installation. I am trying to mimic a production setup completely and the database is setup as an instance of a SQL server. By that I mean that we connect to the database by specifying <servername>\<instancename>. I apologize if I have been ambiguous, or have used incorrect terminology. I am not a DBA and am trying to explain this the best way I know of. Any help that anyone can provide is greatly appreciated!! Sure, another instance can be easily installed by using the setup disk on choosing the named instance option along with the setup. If you have a default instance installed on the ...Show All
