StargatePwns's Q&A profile
Visual Studio Express Editions Line Numbering
I was wondering, with the current code that I have for my line numbering system...how can I have it change the size of the font(the numbers) to match the size of that in the RichTextBox Any help would be appreciated. Thanks. [code] Private Sub DrawRichTextBoxLineNumbers(ByRef g As Graphics) 'Calculate font heigth as the difference in Y coordinate 'between line 2 and line 1 'Note that the RichTextBox text must have at least two lines. ' So the initial Text property of the RichTextBox ' should not be an empty string. It could be something ' like vbcrlf & vbcrlf & vbcrlf With RichTextBox Dim font_height As Single font_height = .GetPositionFromCharIndex(.GetFirstCharIndexFromLine(2)).Y _ ...Show All
Community Chat HAY! I'm not sure what is allowed in here
Serious Question.. I DID look for what I should do but.... Gee I spent two days gettin' nowhere! Can code be posted in here for other's use Do I need to send 'AS MADE' or erase all DLL and Exe files first I would suppose if OK in a ZIP I have some programs made with my FREE C# Express (I LOVE FREE) Thank you Bill! Ya' made me SO happy! Just some test programs with User Controls for the Mindstorms(tm) NXT... using my wonderfull! C# Express.. And Other (Smarter than I am) code which I think is is free to anybody.... Sorry folks.. I tried the Microsoft (tm) Robo stuff but I'm not smart enough to use it! EDIT: Sorry LEGO Mindstorms (tm) not the other NXT! Yes, you can post code here for others to use. If yo ...Show All
Software Development for Windows Vista BUG: Vista RC2 breaks SCSI_PASS_THROUGH_DIRECT for writing to USB drives
This link gives a pretty good description of what I am seeing:"http://www.64bit-world.com/forums/microsoft-public-windows-vista-general/50295-vista-build-5728-above-break-compatibility.html" Additional information not in the above link: I am seeing a GetLastError value from the DeviceIoControl call for SCSI_PASS_THROUGH_DIRECT for the Write(10) (0x2A) operation of 1450 which translates into "Insufficient system resources exist to complete the requested service." This problem did not occur in any previous version of Windows, nor in Windows Vista RC1.This is stopping shipment of our product. Please respond ASAP. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Backbuffer format
How do you get the device backbuffer format now ...Show All
Visual Studio Express Editions reading data
i need to know this quickly (job interview) 1. how do i read from a text file to a table (say.... access) 2. how do i read (using recursive methodes) from a table to vb.net 3. how do i read from xml to vb.net i meant the second part was a link to C# anyway.... 1. i dont suppose you could show me both to a dataTable and ms access 2. ok.... can you show me how to do it in code ...Show All
Smart Device Development loading image files into a imagelist object
Hello all, Im trying to load a bitmap image into a imagelist programaticly using VS 2005 VB. I usaly use system.drawing.image.fromfile but it does not seem to be supported on the compact framework is there another way Thanks -BCR You could use this instead of Image.FromFile(): New Bitmap("\Full\Path\ImageFileName.exe") Make sure to provide full path to the file, that is needed since relative path are not supported on devices. Also make sure to dispose of this bitmap as soon as it’s no longer needed. ...Show All
Visual C++ hi
hi __asm { int 3} For VC 7.1 or later, there is also the intrinsic __debugbreak(); ...Show All
.NET Development Saving a website WITH images by using the system.net.webClient
How can I save a website including the imagefiles an not only the htmlfile by using the system.net.webClient I tried a few ideas but no one really worked well. No, you don't replace the strings in the HTML file. What you need to do is parse that html file, get where exactly the .jpg are stored and then issue separate request for downloading each of those jpg file Mariya ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Translucent Overlay Sprite (i.e. "developer console")?
How would I implement a console into my program I have a solid dark blue DDS file loaded into a Texture2D variable. I can map it to the screen at (0,0), but (as expected) it's just a rectangular solid blue blob. I want to make it translucent, so that I can see some game elements moving under the console. I am already using SpriteBlendMode .AlphaBlend , but I think that's for making transparent "holes" in your bitmap files, which isn't what I want. I want the whole destination rectangle to be filled with my dark blue, but I only want the dark blue to be half intensity and blend in with what's underneath it. If you want to control the transparency or tint of a sprite then you ca ...Show All
Visual Studio 2008 (Pre-release) What's wrong with my "IsOneWay" method?
Hi, I am making a p2p messenger using WCF netTcpBinding, I write some method marked as "IsOneWay=true", but it just don't be "oneway", when client calls the method, client's thread is blocked as the remote service's thread is blocked. Why contract: 9 [ ServiceContract ] 10 public interface IMessenger 11 { 12 [ OperationContract (IsOneWay = true )] 13 void SendMessage( string message, Guid senderGuid) I referred Windows SDK's sample, found I just forgot one attribute: [ ServiceBehavior (ConcurrencyMode= ConcurrencyMode .Multiple)] ...Show All
Visual Basic How to do these things?
I am trying to make a schedule generator and I need some help on a couple of things. First of all - how would or how can I make a calander This is something basic and I'm wondering if there's a tutorial somewhere. Second of all, how can I make a database where the user input data (like when the worker can work) and then the program takes the data and puts it into the right slots. Thanks guys. I have to say I am really confused. SQL isn't working for some reason. I've never used Microsoft SQL - only MySQL. Ok so - how do I set up a database in which data is stored in columns and tables but I don't need to program to connect to anything OUTSIDE its network and doesn't need any other program installed (eg. MySQL.) ...Show All
Visual Studio Team System members of project always offline
Hi When I edited an word or excel document in the sidebar of office to do tasks of colaborate all my projects users appears but they are always offline Any clue Thanks in advance Javier yes, it is relationated. The user are my Team users and the office applications shows the colaboration sidebar because they are using TFS ...Show All
Visual Studio Team System TFS and Enterprise Architect 6.1
I’m using TFS and Enterprise Architect 6.1 I have downloaded and installed Microsoft Team Foundation Server MSSCCI Provider Version 1.1 I opened up my EA project and configured the source control to use TFS. It found the server and prompted me to choose a folder to place the EA project under. I did so and everything worked fine. I then deleted the EA project from my local machine/folder and removed the folders from source control and repeated the process. However, this time when I choose TFS as the SCC provider and then clicked Save, I selected the server but I did not get a chance to choose a source control folder for my EA project. It just automatically filled in the project folder from the last time. When I c ...Show All
SQL Server Error Message trying to deploy report.
I saw this posted about 6 weeks ago, but have not had the time to look. Could use some help. TITLE: Microsoft Report Designer ------------------------------ A connection could not be made to the report server http://localhost/ReportServer . ------------------------------ ADDITIONAL INFORMATION: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- <html> <head> <title>Configuration Error</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Ve ...Show All
SQL Server Interactive sort, forcing a row to remain at the end
Hi, Im trying to do an interactive sort , one of the rows returned from my datasource called 'Total' i wish to display at the bottom always. is there a way i can do this I've tried the below on the column header but the total is either at the bottom or the top how can i check the ordering if Ascending or Descending Then i cld swop the 1 and the 2 around. =iif(Fields!Item.Value <> "Total", 1 ,2) & Fields!Item.Value Otherwise doesnt anyone know how to palce a row from the detail section into the footer Many thanks Dave Hi All I'm Climbing the walls here, does anyone know how to do an interactive sort but keep one of the returned rows pinned at the end of the result set I've t ...Show All
