Fahad349's Q&A profile
Visual Basic Embed TrueType font in VB 2005
Hello, I have created a TrueType font that I would like to use in a project but I don't want the font installed on the end users machine. Is it possible to embed a font as a resource, or otherwise, in a VB 2005 project How do I protect a font form general use/distribution Thank you in advance, ED Hello, Thank you for the quick response! I have loaded the code and modified it with my font name. I set the 'Build Action' to 'Embedded Resource' as required. When I run, the 'fontStream' variable is always 'Nothing'. Do I have the required 'Imports' wrong Here is the code as I have it: Imports System.Drawing.Text Imports System.Runtime.InteropServices Imports System.IO ...Show All
Visual C++ How can i make a read-only partition in my usb disk ?
i want to write a program to set the usb disk partiiton to become read-only, protect the data on the disk. is it possible to use some storage i/o request to achive that or can someone suggest me how to do thanks Damien Watkins - MSFT wrote: Hello Re question: How can i make a read-only partition in my usb disk Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups. OTP Thanks Damien Damien, I'm going to have to ...Show All
SQL Server UNIQUE/PRIMARY KEY confusion.
I wrote this stored procedure and it works fine, it seems. The questions I have are as follows: (1) What is the difference between PRIMARY KEY and UNIQUE. They seem to pertain to the same behavior. When I used only UNIQUE as qualifier I did not see that the column was marked as primary in the SQL Management Studio. What I need is for a column to be unique in the sense that it would not allow duplicate values and it must have an INDEX on it. I need it to be descending . (2) Did I do it right or there are aspects in here I do not quite see set ANSI_NULLS ON set QUOTED_IDENTIFIER OFF GO ALTER PROCEDURE [dbo].[CreateTableDailyClose] @symbol varchar (10) = null AS BEGIN SET NOCOUNT ON; DECLARE @SQL VARCHAR(500) SET @SQL = 'CREATE TABLE dbo. ...Show All
Visual Studio Team System avg page time
I have run loadtes for 17000 & 2588 users for 1 hour. . and the avg.pagetime for 17000 is 14.5 sec and for 2588 users is 20.2. i have a clarification when we increase the load the av.pagetime will be high. but my reulst are showing these valus. what wil be the factors for getting thse results. Initally i have completed 17000 users . parameters(i.e counters selections are same for both the tests). Duration is 1 hour for both the test. Please let me know if any information is required. ...Show All
.NET Development Aspx pages on Vista's Local IIS display as text or directory listing
I upgraded to windows vista yesterday (RC2 from MSDN). Nowe every page that I select come up as HTML text when started from debugger in visual studio 2005 Web services load up as a directory with file name hyperlinks. Another interesting thing i have seen is when i type this in my address bar: http://localhost/ i get the same efffect I get a HTML page that displays only text and no visual as expected. I tried running aspnet_regiis.exe -1 from command line (just to make sure this was not the problem) and i said i needed to elevate my security to run this. Thank you in advance for your help! I tried the suggestion. No changes I still get the directory list. I did this before btw ...Show All
.NET Development WMI Classes for SAN HBAs
I'm looking for the WMI classes for Storage Area Network (SAN) Fibre Channel (FC) Host Bus Adapters (HBAs). Similar to Win32_NetworkAdapter, Win32_NetworkAdapterConfiguration, and Win32_NetwrokAdapterSetting. I'd like to be able to Query the Manufacturer, Model, Firmware version, BIOS version, and Driver Name and Version. I'm using Framework 2.0. If there are add-ons, I'd be interested. Play with this tool to find out what the manufacturer made available to you. ...Show All
Visual Studio Express Editions Format as zero if a Textbox is empty
Hi Everyone, As a beginner I’m not writing a programme as such, just learning how to do various things – currently learning how to enter data into textboxes. I have 3 textboxes formatted to allow numeric data only and a button that when clicked will display the answer in a message box. Question: How do I write the code that says “if no data is entered then the textbox is to be considered a zero” .What I mean is, I press Tab to go to the next box, leaving the box empty, but instead of writing code to enter a zero I just want the empty box to be considered a zero (this is for adding numbers). At present, I have the button click event to assign a value of “0” to box 1 if it’s empty. (I’ve written code for box 2 differently than 1 and 3 for pr ...Show All
SharePoint Products and Technologies WSS3 cannot be crawled
I'm getting this error on the server of WSS 3.0 The start address <sts3://ebs-sharepoint/contentdbid={d901caff-7863-40aa-8460-c3ef9132cb89}> cannot be crawled. Context: Application 'Search index file on the search server', Catalog 'Search' Details: Access is denied. Check that the Default Content Access Account has access to this content, or add a crawl rule to crawl this content. (0x80041205) The WSS 3.0 is configured to use Kerberos and both the WSS Search and Timer service is running under a domain account. Any help. Thanks. Jason Im having this problem as well. If anyone finds a fix, please let me know if within a few days of this posting. And Microsoft, please figure out w ...Show All
Smart Device Development Uniobjects.dll
i am trying to create a CF program that i can use/reference this dll. the dll is supposed to be .net compatible. this is an IBM dll for communicating with a U2 database. i can add the dll to the program as a reference but, when i try to instanciate the class, i get this error: "COM object with CLSID '{3ED50B8E-0667-11D4-BE19-00104B2A91CE}' cannot be created due to the following error: Class not registered ." i tried tlbimp and it didnt work. any ideas Setting environment for using Microsoft Visual Studio 2005 x86 tools. C:\Program Files\Microsoft Visual Studio 8\VC>cd\ C:\>cd windows\system32 C:\WINDOWS\system32>dumpbin.exe uniobjects.dll /HEADERS Microsoft (R) COFF/PE Du ...Show All
Windows Live Developer Forums how are the WSDLs actually versioned? One day notice for an incompatible upgrade?
We just got a notice that the production API is being upgraded to change some names of things such as BudgetAmt to BudgetAmount (but the new help file says MonthlyBudgetAmount !). The email says this is happening "Friday October 20, 2007". I assume this is a typo and it means 2006, which is tomorrow. The email says it is modifying the existing v3 WSDL. This is contrary to the "Microsoft adCenter API Versioning" section in the help file which says the WSDL is assigned a new version number when incompatible changes are made, to allow for a sane upgrade path. The email says it is not being done in the sandbox until later. The versioning section in the help file says upgrades will be done first in the sandbox. What is the a ...Show All
Visual C++ Passing Unmanaged Class by reference to Managed Class Constructor
I have a MainForm. It has two child forms. The program reads in large SEGY files (2gb -> 100gb), appropiate data and read settings are stored through the class system that has a main controller "SEGY.H" & "SEGY.CPP". They a coded in pure C++. My two child forms are managed. I want to pass a reference for SEGY from the MainForm to each child form when they are required to be shown to the user, obviously to avoid copying large amounts of memory. I cannot pass a native class by reference to a managed class through the managed classes constructor. I have tried (code in mainform): private: SEGY *Segy; //it then gets constructor call when filename is chose CHILDFO ...Show All
Visual Studio Team System Custom rule - Validating Pascal/Camel casing?
Dear All, I've a requirement, where I need to validate local variables (of a method) for Pascal casing. Is there any way so that I can implement this Thanks Hello, Look at this: http://blogs.msdn.com/fxcop/archive/2006/04/07/570553.aspx It should help. regards, Anton. ...Show All
SQL Server Report Designer Code block limit (number of characters)
Hi, Is there a limit on the numner of characters that can be put in the code block of the Report Designer in Visual Studio 2005 Report -> Report Properties -> Code tab Thanks, Shyam ...Show All
Windows Forms Best way to handle shortcuts ?
Hi, I was wondering if there is a good OO-way to handle keyboard shortcuts. Atm my shortcut handling code consists of a big list of if else if else statements containing switch statements (if/else to detect the modifiers, the switch statement to handle the keys) As you might have guessed, this is ugly and not very clean. I tried using a Dictionary of Keys to Action (a simple void delegate) mapping. but the problem here is that the keys pressed never match those in the dictionary because extra modifiers and flags are present. I was wondering if anyone has any suggestions how to make a decent key to action mapping. Thanks, Ben. the shortcutmenu is generated the moment it is requested. ...Show All
SQL Server Running value
Hi In my report I have the total column,under the total i have two sub fields:no , Row%and i have another column Cumulative total sub fields are no,***% For the Row % under total i write like this: =Round((Fields!Male.Value+Fields!Female.Value+Fields!Unknown.Value+Fields!Invalid.Value)/Sum(Fields!Male.Value+Fields!Female.Value+Fields!Unknown.Value+Fields!Invalid.Value)*100,2) For the *** % under cumulative total the expression is: =RunningValue((Fields!Male.Value+Fields!Female.Value+Fields!Unknown.Value+Fields!Invalid.Value)/Sum(Fields!Male.Value+Fields!Female.Value+Fields!Unknown.Value+Fields!Invalid.Value)*100, sum , "AgeByGender" ) But i am getting this error: The Value expression for the textbox '* ...Show All
