Michael Hotek's Q&A profile
Visual Studio Express Editions Classic ASP with VWD: why is JScript default language?
Hi all, Thankfully, I can use Visual Web Developer to edit Classic ASP scripts. But there's an annoying problem I'd like a solution for!... As long as I have the "@LANGUAGE=VBSCRIPT" directive at the top of a page, it will correctly format VBScript scripts (keywords in blue, comments in green, strings in red, full intellisense for functions etc.). However, I have to use multiple Include files for each full page, which means not all page chunks can have the @LANGUAGE directive at the top. Here's the problem. Without the @LANGUAGE directive, VWD assumes the default scripting language to be JSCRIPT , and formats all script blocks accordingly. How do I change VWD's default scripting language to VBScript I first poste ...Show All
.NET Development Microsoft.Practices.ObjectBuilder.dll not being copied to a Project through a reference
Hi Here is my situation: Firstly I have a class library called Data, I'm using Enterprise Libraries Data block so I have the following references in the Data Project Microsoft.Practices.EnterpriseLibrary.Common.dll Microsoft.Practices.EnterpriseLibrary.Data.dll Microsoft.Practices.ObjectBuilder.dll System System.Data System.Xml Inside the Data project is a class called DataAccess. This is what DataAccess looks like: using System; using Microsoft.Practices.EnterpriseLibrary.Data; namespace Data { public class DataAccess { public DataAccess( bool useTransactions) { Database database = DatabaseFactory .CreateDatabase(); } } } Lastly I have another Console application project called ...Show All
Visual Studio Team System vsts developer - testing question
I've got VSTS Developer installed. I am wanting to conduct load testing on a web site and have reviewed some of the information on Microsoft's site. It appears that I'm only capable of performing unit testing on class files. Is that correct I'd like to do a load test and don't see where I can get Application Center Test in VS 2005. Is that tool still available Can I download it Do I need VSTS Tester to do load testing or can I download the template to do that If not would I have to uninstall developer and install tester to do load testing I really don't want to have to uninstall/install each version just to do a load test. I spend most of my time developing and after words, I need to do load testing. Any suggestions ...Show All
Visual Studio Formatting QuickInfo tooltips
Is there any way of formatting an IntelliSense QuickInfo tooltip I'd like to be able to add bold, italic, etc. to the tip - but there doesn't seem to be any way of doing this. I'm currently just returning some text via the GetDataTipText method in my AuthoringScope object. Any ideas anyone Other than setting the foreground and background colours via the "Editor Tooltip" page in tools options there isn't much you can do here. You can also use the IVsFontAndColorStorage interface from the SID_SVsFontAndColorStorage service to get and set colours too. Use OpenCategory, make any changes you want by calling SetItem, SetFont etc., then call CloseCategory. Look in HKLM\SOFTWARE\Microsoft\VisualStudio ...Show All
Visual Studio 2008 (Pre-release) generic data connections fail
Previous code of DBDataFactories and getfactory functions do not work in vNext. It neither gives error. We have already developed a fully working application which can simultaneously connect to any datasource and work. Now it never connects as we are unable to fetch the DBFactories. Any solutions Regards RRV [rv_ooty@hotmail.com] I'm using May2006 CTP. In the documentation of August 2006, i found there is no major change. so i did not download. Should i download the latest RRV ...Show All
Windows Forms How to create a alpha-blended & transparent rectangle with shadow
How to draw a round-edge rectangle (lenght 200, height 30). Border color should be white and the interior totally tansparent Plus the borders should be alpha-blended with smooth shadows / blurring effect Is it possible to create this using .NET's native GDI+ The following piece of code will get you a rounded rectangle with a alpha blended white border: protected override void OnPaint(PaintEventArgs e) { Rectangle b = new Rectangle (30, 30, 200, 30); using ( GraphicsPath path = new GraphicsPath ( FillMode .Alternate)) { path.AddArc(b.X, b.Y, 10, 10, 180, 90); path.AddLine(b.X + 5, b.Y, b.X + b.Width - 5, b.Y); path.AddArc(b.X + b.Width - 10, b.Y, 10, 10, 270, 9 ...Show All
Visual Studio 2008 (Pre-release) Inherited Custom Image Control...
I've been trying all sorts of methods, searching Google, this forum, MSDN, etc. for successfully creating and using a custom Image class, inherited from the base Image class... public class SidebarIcon : Image { private string iconTitle_x; private string iconPath_x; public string iconTitle { get { return iconTitle_x; } set { iconTitle_x = value; } } ... } Now, going from there, or taking a totally different approach from making this simple custom control... I want to use it in XAML just like I can the Image class, but with those added properties, iconTitle, and iconPath. I've seen and tried samples all over like, <cc:SidebarIcon/>, etc. But ...Show All
Windows Forms Register my app with a uri prefix
Hello, I'd like my application to be launched when a link is clicked anywhere in the system. For example Azureus launches when clicking links like this: magnet: xt=urn:btih:NZVGT3LUBNFTXTCSKTZBLIFKJXUR3RHI How should I implement the same for my application Thanks in advance, Rovshan It doesn't look to me that these URNs are meant to launch apps, just to identify files in a peer-to-peer network. Check this wiki article . ...Show All
Windows Forms ListView DragDrop Index
Hi, Im trying to insert items draged from a ListBox to a ListView. The new Item must be inserted below the Item that's under the cursor. So I need to know the Index of the Item that's under the cursor. Private Sub lvCustomerSurvey_DragDrop( ByVal sender As System.Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles lvCustomerSurvey.DragDrop With lvCustomerSurvey 'I have tried Dim i As Integer = .GetItemAt(MousePosition.X, MousePosition.Y).Index Dim i As Integer = .GetItemAt(e.X, e.Y).Index Also the InsertionMark.Index http://msdn2.microsoft.com/ru-ru/library/system.windows.forms.listview.insertionmark.aspx , but always shows -1 Dim Con As Concepto = CType (e.Data.GetData( ...Show All
Visual Studio 2008 (Pre-release) Question on .NET Framework 3.0 June CTP
Is .NET Framework 3.0 June CTP == .NET Framework 2.0 + WinFX May CTP Or .NET Framework 3.0 June CTP == .NET Framework 2.0 + WinFX June CTP Thanks! ...Show All
Windows Forms Can you merge datalist columns?
I have a datalist with 7 columns that shows the results of a search on a database. If the search does not return any results i want to be able to show "No records found" in the center of the datalist. Is this possible If it is any help on the way to accomplish it would be appreciated. Thanks ...Show All
Visual Studio Express Editions My form does not respond?
Waht should I do if my form does not respond I have a button on my form that has an email code under it, so whenI press it, it sends email. The only problem is that when I press it, my for says "(Not Responding)" at the top. Then I get an error that says the operation has timed out..how should I fix this comment out the UseDefaultCredentials you also forgot to add the networkcredential to the SMTPClient object credentials. - just a couple of things to point out if you wish to send email successfully. The default timeout is 100 seconds before raising an exception I believe in the SMTP class ...Show All
Smart Device Development UDP Client mobile Client For Communicating to desktop pc
Hi, I developed the socket client application on mobile and socket server application on the desktop pc using the SOCK_STREAM both application commnunicating through active sync . But when i am creating same application for UDP using SOCK_DGRAM the application can not communicate through active sync . in client app sendto function of the winsock is succeeded (not returning any error ) but data not receive at the server end . Whats reasons is active sync not supporting the UDP socket communication how this can achieve Give me any details to make this possible . Thanks in advance Hi Barry, I installed the Virtual driver & made the setting on the Emula ...Show All
Smart Device Development Question from newbie about reading file name from listview
Hello I've been searching forums for solution of my problem. I think it's very simple but I have no idea how to make it works. In my project I have got a simple listview with *.txt file names from program directory. I would apprecciate it if someone told me how to get value (file name) of currently selected key. Any help would be welcomed! Thanks for the answer! I have something like this: private void listView1_SelectedIndexChanged(object sender, EventArgs e) { string Itm; Itm = listView1.SelectedItems(0).Text; } but... it takes error "Error 1 'System.Windows.Forms.ListView' does not contain a definition for 'SelectedItems'" So I have to define listView1.SelectedItems, ...Show All
Visual Studio Workaround for subreport within subreport
I have several reports - entirely SQL driven, and subreports within subreports, obviously I didn't realise until the last minute that it disregards subreports within sub-reports. Is there a workaround for this Or am I stuffed Thanks Kev Hi Thanks the advice, in the end I've just moved these sub-subreports into the parent report instead, I've got it working fine now. Thanks Kev ...Show All
