.Adrian's Q&A profile
Smart Device Development Developing a horizontal orientation application for Pocket PC in Visual Basic
Hi, I need to rotate my Pocket PC form in Visual Basic 2005 to develop a horizontal-only application. Is there a way to do this The emulator can be rotated, but I also need the design form to be horizontal. Thank you for the lead. I was able to locate information on orientation at: Visual Studio Forum Docs\Developing Orientation and dpi Aware Applications for the _NET Compact Framework.htm ...Show All
Visual Studio Express Editions Watchdogged display loop
Hi all, I need to display in a form the content of a simple text file (2 lines containing each an unformatted numerical value). This file is updated (re-created) automatically +- every 2 minutes by a industrial monitoring device. How can I display the content of my text file, requesting the refresh of my display form only when there is a file change I must not kill my machine because it is a terminal server with 60 users by writing a brutal loop (very interesting topic to read "loop with a pause", which is very close to my problem - responsiveness is not a problem for me.) I must not kill my local network either as my text file is situated on a drive mapped to another machine.... Thank you for paying attention to my reque ...Show All
Visual Studio Team System Team Server Editions vs Visual Studio 2005 Prof
Good Morning I am trying to find out what the difference would be, from a feature aspect,between using Team Foundation Server with an actual Team Edition of Visual Studio versus using Team Foundation Server with Visual Studio Professional and a CAL. I haven't been able to find anywhere with a definitive list of 'you get this,but not this' for one versus the other type of install. Secondly, if the feature set is skewed in favor of the Team Edition versions...... then is there an upgrade path for those with Visual Studio Professional as I have already seen that the price is quite a bit higher and I don't necessarily want to throw out my licenses for the professional stuff..... Thanks in advance for the info AJ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Skysphere Demo
It's finally all working, thanks for all the help! I've created a Sky Sphere demo to help me figure out how to do such a thing for my game. The texture for the sky sphere gets distorted around the poles, and I haven't figure out how to fix that, but otherwise it looks pretty cool. If you're interested, I've uploaded the source code and artwork to: http://www.spellflight.com/GameModels/SkysphereDemo.zip Here's the readme: Skysphere Demo By Michael Billard mike@sbillard.org This Windows XNA demo displays a sky sphere and a simple model that flies around the game world. You can control the model's rotation and position. You can also control the camera rotation and camera position. Background texture by NASA. Models and te ...Show All
Audio and Video Development XPath - intersection of nodesets
Is it possible to perform an intersection of nodesets within an XPath And if possible... Is there a somewhat elegant way to do it Seemingly it's not difficult with XPath 2.0, however with the HD spec we're using a subset of XPath 1.0. The most common reason anyone would want to do this -- since elements can have multiple classes, let's say we'd like to select all elements with class('a') AND class('b'). The class() function involves a built-in (which is probably optimized / indexed on DOM load) split() or tokenize() on the "class" attribute string, and it would be hard to mimic this ability looking at @class directly. I realized what the problem was -- this may (or may not) be instructive... I ha ...Show All
Visual Studio Express Editions need to find out if current logged in user is an admin or not
Hi all, Is there an equivalent of "who am i" command in Windows Some function (or / and) command that would tell me who the currently logged in user is I am particularly interested in finding out if the current user is an admin or not. There seems to be a function IsUserAnAdmin() but I am not able to compile it on xp. Also, seemingly its not supported Vista onwards. So can someone give me a simple program which will print on console "current is an administrator" or "current user is not an administrator" Thanks, Vamsee. Vamsee Krishna wrote: I am particularly interested in finding out if the current user is an admin or not. There seems to be a function IsUserAnAdmin() but ...Show All
Visual Studio Team System Another 29112 setup error on Report Server Configuration
I searched for about 4 hours before posting here and tried to reinstall from scratch etc, using the steps described in the manual. Based on the answers/advices and details posted i need to let you know this: 1. http://localhost/Report it is working. After i pass the HTTP Auth i get redirected to http://localhost/Reports/Pages/Folder.aspx and i can see the report manager. The problem is that I cannot log in using a Domain Controller account (well Active Directory) 2. http://localhost/ReportServer/ shows: localhost/ReportServer - / Hi Iulian and Eman, Could you both check that ASP.NET is installed on your AT Add/Remove Programs - > Add/Remove Windows Components -> Application Server/ASP.NET is checked Mauli ...Show All
Visual Studio 2008 (Pre-release) In-memory inflation of Message objects
Hi, I'm in a position where using streamed message mode in WCF wouldn't be possible (using RM and security) so I was wondering if anyone in here knows how much WCF inflates Message objects in memory (when using RM + Sec in buffered mode) Are we talking 1.3 x the payload size 2x 10x Thanks, Pat There is no direct correlation between wire size of a message and "memory footprint" of a message. Ultimately we read the wire format of the message into memory, and then we create the appropriate XmlReader on top of the byte[] in order to expose the message format. Streaming is for the case where you don't want to buffer the message into memory because you are incrementally handling and throwing away ...Show All
Visual Studio 2008 (Pre-release) snap to device pixel for DrawingContext
For performance reasons, I am using DrawingContext / OnRender. However, I would like to snap to the device pixel. Is there a way to do it at this level thanks Hmmm, Unfortunately, the only hints I can give you are the one I found while experimenting... Be advised that I might be wrong; however, I did obtain the result I was aiming for. I was trying to draw a "pixel snapped" line using dc.DrawLive(), the line was however sometimes blurry... I tried creating a GuidelineSet with a GuidelinesX set to the same coordinate where I was drawing the line... This had the unfortunate result of blurring ALL my lines (even those which were not blurred before)... Investigating, I found out that ...Show All
Smart Device Development How to make the application start with system
Hello,everyone: I want to make my program run when the system boot. So how can I do that by code Any APIs or sample codes hello: I think you can add a key in register, when initial, you can get the register key value, if 0,you continue run the program, if 1, return. Best Regards, Kenneth Yang ...Show All
Visual Studio Express Editions Variables
Hello, I need to know the different variables used in C#. Could someone give me a site or just tell me through a post what each of them are, and their definition. Thanks. String (string) - Storage that can contain alpha-numeric characters Integer (int) - Contains numbers from -2,147,483,648 to +2,147,483,648 Boolean (bool) - Contains, True or False Congrats on your 100th POST!!!! ...Show All
Smart Device Development Unicode VS ANSI encoded files on Windows Mobile Devices
Hi All, I'm very much aware of the sole use of unicode on Windows Mobile devices and that .NETCF2.0 strings are all unicode based. I've developed an application that reads INI based files. I created this file on my laptop and ignored the fact I saved the file with ANSI encoding. This did not give me a problem reading the file though. It worked just fine. I haven't yet written code to write to the file so I've no idea whether I will get a problem. I've since realised that this file is ANSI based so I saved it a Unicode just in case. Obviously it doubles the size of the file. I'm going to be using a lot of text based files in this application (some rather large) and wondered if ANSI would ...Show All
Visual Basic Flat text File Read in Dilemma!
I have a file I need to read in. Easy right Here’s the catch. Its 17k+ records than all end in a vbLF. If they ended in vbCRLF the following would work but they Don’t so its not. Current Code: StrPathToFile = "Filename" OpenReadFile Do ReadFile DoWhatNeedsToBeDoneHere Loop While Not EOF(#ntFileNum) Inputs used: Public Sub OpenReadFile() intFileNum = FreeFile Open strPathToFileIn For Input As #intFileNum End Sub Public Sub ReadFile() Line Input #intFileNum, strCHRecord End Sub It takes in the Whole file as one string ...Show All
Visual Studio How to change password while access vss 2005 via internet?
1. I am access vss 2005 via internet, but I can't find any where to change my password. can you help me 2 .And there is another stange things, I check out a file and made some change, then I find the change is not necessary, so I select "Get latest version" from right pop menu, but I found I can't get the latest version from server. can anybody tell me the reason. You can not change VSS password using Internet plug-in. Internet plug-in is only supported in Visual Studio but not in VSS Admin (Here is where you’d change the password) or VSS Explorer. If you are not using SSL then your Windows Login credentials will be used and VSS password will be ignored. If you w ...Show All
Windows Forms Working with a MDI and ToolBar
This app uses the Main form TAMain as container for several small windows with specific functionality, for instance, one interface withe the user for adding and maintaining Item Details, another for Users, another for Products, a so. Mi problem is that I got a main ToolBar set on the right of the screen that's the one that open such an such windows and makes sure no two windows are open at the same time. For instance, once the Items window open I'm settin the enable propperti of that particular button to false and all other buttons; since each window is open as a Dialog Window, the user won't be able to use any othe window but the activa dialog and its controls, I'm usign theregular : ItemDescription ProductsWindow = new ItemDescr ...Show All
