John Koziol's Q&A profile
Windows Forms RichTextBox - Font Changing
Is there a way to change the font of the selection in a RichTextBox without change the size of the selection and vice versa Example: I have 2 words with different sizes, I select them and change the font, and the size of them not change (Like in Word and WordPad). This is not possible with the RichTextBox because the SelectionFont property takes an instance of the Font class which requires both a font and a size. ...Show All
.NET Development EventLog.WriteEvent
Hi, I would like to write errors for my application to the eventlog with the error icon so that its easy to see whats an error and wants an information for my log. Today I use . WriteEntry ("myMessage...") witch is no problem , it generates a message entry with an information icon in the event log. So far so good... What I understand is if I want to write an error I have to use . WriteEvent to get the error icon and read about this but what I dont understand is the part with EventLogMsgs.mc (a resorce file) I dont find any sample how to create a resorce file and how to use it in a VB.NET 2005 Windows application. Does anyone has ...Show All
Visual Studio Express Editions MRU List doesn't reorder correctly
Hi. Is it just me, or does the MRU lists in VB 2005 Express never reorder When you create a new project it's placed as #1 and the old ones are moved down once. So far, so good. But when I click on e.g. #2 it's still #2. It's never moved up to #1 as expected. C# 2005 Express does this correctly, so i guess it's a problem with VB. Is there anything that can be done A reg-setting or something Thanks in advance Regards Very strange. This has happened on two different installations so far. The first was Win2000 SP4 where Beta 2 had originally been installed. Then I uninstalled a ...Show All
Visual C++ MFC porting
"Hello world", i would like to know if somebody can suggest me the best way to port a MFC application to UNIX/LINUX system. My application is a MFC 7.1. Thanks Lewix If you end up doing this, you may want to consider wxWidgets or Qt as the framework for the *nix port. Or you can run on the WINE emulator. I don't know the viability of these approaches. Just giving you some ideas for you to google on. The following blog appears to give useful links. http://dojo.miktex.org/blogs/christian_schenk/archive/2005/06/09/mfc_linux.aspx Particularly interesting: http://www-128.ibm.com/developerworks ...Show All
Smart Device Development Where is the Blue Tooth Support?
Is there no way to emulate the use of Blue Tooth on the Pocket PC 2003 emulator Seems the ROM simply doesn't have this capability built in at all. Was a little surprised by this. Has 2005's emulator been beefed up to allow emulation of this service I see the thread was broken 2005 and I don't know if this is the right place for my problem. I have a new HP Pav, that uses windows vista home Premium. I lost my bluetooth installed software that which I used to connect with my mobile phone for internet. I can't find a link that will download this for me. I don't know how to get it back. I am ...Show All
Visual Studio Team System Here is my code...
hi, i added another rule class to the existing project and i extended the same base class (in which i have given the xml file name) that used for other classes. But when i loaded the rule in FxCop i got the message "Error loading rule 'MethodsShouldBePrivate': Rule 'MethodsShouldBePrivate' does not have an XML description present." Other rules get loaded correctly but this shows error. Plz help me out with this. Thanks Guns Hi Gunasekaran, Please verify the name of the class that is present in both xml and .cs file it is case sensitive.If you are not clear please paste your .cs file and & ...Show All
SQL Server Reading more than 1 set of files using Foreach Loop Container
Hi, My requirement is I have to read 2 sets of files from a folder. For example, I have to read all files starting with either 'a' or 'b' only. In 'Foreach Loop', if I say 'a*,b*', it is not working. Instead of comma (,), I tried colon, semi-colon and pipeline characters also. It is not working. So I am using 2 loops now. But I would like to know is there any way to do it using a single loop Thanks. Thiru, I doubt that what Michael suggests would be a big overhead. Sure, you iterate probably 10 times as much as you otherwise would do but is that really a problem For 90% of those iterations you don't actually do anything within ...Show All
Smart Device Development Bypass the Pocket PC Network Log On dialog box.
Is it possible to programmatically send the User Name, Password and Domain when doing network file IO functions I am creating an application that appends information to a text file located in a shared folder on our network and would rather not have the operator enter the information using the Pocket PC Network Log On dialog box. VB examples would be helpful. Thanks I dont know if this is supported in the .NET CF 2.0, I know it is for the full version in .NET 2.0, but have you tried the NetworkCredential class ...Show All
Visual C++ how to format a two or one digits number in a two char string?
Ok, maybe this is a very stupid question but wich is the cleanest way to convert an int to a System::String with always at least 2 chars... Now, I do this: String* convertTo2CharString(int num){ if(num<10) return String::Concat(S"0", Convert::ToString(int)); else return Convert::ToString(int); } I suppose that with the String::Format, I can do it with one line of code but I don't know how. Tnx. Here's a good place to start for information on all the new stuff that's coming in Visual C++ 2005. http://msdn.microsoft.com/visualc/whidbey/ ...Show All
SQL Server Problem in processing the cube for MSAS2005
Hello everyone, I have a problem in processing the cube for MSAS2005. this is what I have done please guide me to solve the issue. Steps: I have an OS of WIN2k3 with SP1 I have installed MSAS2000 with SP3 and then Installed SP4 Now I have installed MSAS2005(I have selected everything in order to create a server installation and then clicked on the advanced button to make sure nothing is missing out.) While the dialog to choose the instance came I had chosen the named instances (named it as MSAS2005) and then started the installation by only clicking Next button. After the installation was over I installed t ...Show All
Windows Forms MSN Messenger type toast, or alert
How about a control that displays the so called MSN Messenger toast, or alert, as also shown in Outlook 2003, and Nortan Anti Virus. And please there are many developers giving this kind of controls for a fee, or the developer evaluation controls that have limited features, or some blurps in it.. So can some smarty do it this simple stuff, and&nbs ...Show All
SQL Server Comment/Uncomment keyboard shortcut changed .. grrrrr!!!!
Call me old-school, but I happened to like the one-key Shift-Ctrl-C and Shift-Ctrl-R methods of commenting and uncommenting T-SQL code. I've tried to see how I can set up my own macro's to give me those key combos back instead of the double-the-work ctrl-K + ctrl-C and ctrl-K + ctrl-U keyboard short cuts. The k-c one is the worst because it takes two hands to type it, but the two fingered k-u isn't much better. Can someone tell me how I can override or augment these so that I can get these two familiar short-cuts back. I don't care if I have to override something .. whatever it is, it's not nearly as imporant as this to me. ...Show All
Software Development for Windows Vista Windows Workflow Foundation
How can I get the windows workflow foundation version Thanks very useful your answer, It guides me to the answer I'm looking for, but I haven’t Windows Workflow Foundation entry, I have two entry WinFx Runtime Components that show an Beta 2 version label, and a Visual Studio 2005 Ext. for WWF entry that match the numbers you mention. Thanks ...Show All
Windows Forms NOBODY SEEMS TO KNOW HOW TO Create customized project item templates.
Hi there I hope somebody could give me a hand I have already reinstalled VS TWICE because i tried myself to create subproject Templates. I have found links how to create a solution template but i cannot do the following. Scenario: There are some forms I use all the times. MDIParent form with toolbar/ListBar etc. Dialog Form base Add Edit form base ...Show All
Software Development for Windows Vista Vista trial period?
Is there not a trial period for the Vista CTP 5308 I installed it and am immediately asked to activate windows. I just wanted to install it and see what it looked like, etc... S hey guy's i'm looking for a clean install of Vista, can't find it anywhere And i see no where tot subscribe to it anyone have a copy ...Show All
