aguess's Q&A profile
Visual Basic Printer compatability library source code ?
Is the source code available somewhere I don't want to emulate the VB 6.0 printer object - I just want to avoid using the stupid event driven .Net PrintDocument - I want to control page breaks myself - like in the VB Printer model. Having the source code would help. Hi DrinkWater, Printer object is written in VB.Net. It is a layer of abstraction on the System.Drawing.PrintDocument that shipped with VS 2005 . ...Show All
Visual Studio Express Editions Problem in using MDI
This is the CODE which i have been using, '''''''''''''''''''' Private Sub MenuItem3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MIcoach.Click Dim frmcoach As New Form2 frmcoach.Name = "COACH" frmcoach.Text = "Coach Entry" frmcoach.MdiParent = Me frmcoach.Show() End Sub Private Sub MICLcoach_Click(ByVal sender As System.Object, ByVal e As System ...Show All
Community Chat Windows Vista "WoW"
Hi all, Do you think that Windows Vista can be used as Server instead of Windows Server 2003 tell me pls I looking to change my Server OS... What does the "WoW" stands for .............. Thanks in Advance Server OSs usually have different tuning in terms of resource allocation than do the standard products and in addition they have much tighter security and better utilities. I think there's a Vista version of a server OS coming out soon. It would be better to wait. ...Show All
Visual C++ Problem with File Open Dialog
Hello All , I have an application that was built using VC6. It uses GetOpenFileName API. Now when i build the code using VC8 the GetOpenFileName API creates a new look dialog. I analyzed the problem , and found that it is due to the change in structure of OPENFILENAME. and this is because of _WIN32_WINNT macro value. I have defined this to be 0x0500 for VC8 build. If i define _WIN32_WINNT to be 0x0400 then it produces the same dialog as i was getting in VC6. All i want to know in what areas does the value of this macro affect the application, API's. Can I safely define this macro ( less than 0x0500) for VC8 build , or will it create problem in different OSes. My application is intended for Win98, Win2K, WinXP ...Show All
Visual Basic Changing Disabled Controls ForeColor
Hi, Is there an "easy" way to change a control's ForeColor when it is diabled Yes, I know that this goes against the Windows standard. On our forms, we have buttons with a dark blue background and a white foreground (the design is dictated by marketing). When the buttons become disabled, the ForeColor goes to a dark color making the button unreadable. Thanks! Hi, So I was halfway through testing my new custom button class when I ran across the BackgroundImage property. It turns out that if I use a default button, set the background image to an image containing the backcolor I want, and change the ForeColor to something appropriate, everything works like I want to. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Sun to affect a terrain? How?
Hi. I have an FX code that I wanted to show you (if it helps) to process the light to the terrain. Here is the code: float4x4 WorldViewProjection : WORLDVIEWPROJECTION; texture UserTexture; float4x4 xRot; float4 xLightPos; float4 eye; float4 ambientMaterial; float4 diffuseMaterial; float alpha; float xLightPower; struct VS_OUTPUT { float4 position : POSITION; float2 textureCoordinate : TEXCOORD0; float3 normal : TEXCOORD7; }; sampler textureSampler = sampler_state { Texture = < UserTexture >; magfilter = LINEAR ; mipfilter = LINEAR ; }; struct Pi ...Show All
Internet Explorer Development IE7 displays my xml/xslt page differently from IE6
Hi, I have a Web application that works as follows: - An ASP.net page generates an XML string linked to an XSLT stylesheet and sends it to Internet Explorer. - Internet Explorer applies the stylesheet and displays the resulting HTML page in the browser. Everything worked great with IE6 and most of this still works fine in IE7 except for one page. In that page, I return an XML string similar to the following: 1 < xml version="1.0" encoding="utf-8" > 2 < xml-stylesheet type="text/xsl" href="styles/volumetryAdmin.xslt" > 3 <ifinance xmlns="urn:ifinance" auth="0" lang="fr" today="20061109"> 4 <precomps> 5 <precomp id="5& ...Show All
Visual Basic Bound TextBox does not always update when datasource changed
I have a simple TextBox (TBFirstName) bound to a property of a class thusly: (TBFirstName.DataBindings.Add(“Text”, Employee, “FirstName”). Employee is an instance of the class “Person” with a property (among others) of “FirstName”. Changing the TBFirstName changes Employee. However, changing the value of Employee.FirstName does not always change the TBFirstName. My problem is that I do not know the circumstances under which changing the property Employee.FirstName will actually change the TextBox. For example, setting Employee.FirstName from the text_changed event on another TextBox worked while setting it from the Click event of a button or the Validated event of the other TextBox had no effect on the bound TBFirstName. How c ...Show All
Visual Basic vbCrLf
Whats wrong with the following code please ListBox1.Items.Add( "Principle Interest Balance" & vbCrLf) It displays the string in between"" just fine but after that there are two open boxes Principle INterest Balance^^ Mitch I am adding to listbox to display small table of data, 3 columns numerous rows... with the following code ListBox1.Items.Add(i & AmountPaidToPrinciple & MonthlyInterest & MonthlyInterest) I need to get more space between each item(i.e AmountPaidToPrinciple etc) how do I do that oh yes figured out i dont need CrLf!!!!! but I need to make spacing Mitch ...Show All
Visual C# reduce code
There is any way to reduce this code, like not needing to use the same code twice #region HKLM Run RegistryKey hklm = Registry .LocalMachine.OpenSubKey( "Software\\Microsoft\\Windows\\CurrentVersion\\Run" ); foreach ( string programas in hklm.GetValueNames()) { string arquivo = hklm.GetValue(programas).ToString(); ListViewItem item1 = listView1.Items.Add(programas, imageList1.Images.Count -1); item1.SubItems.Add(hklm.Name.ToString().Replace( "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion" , "HKLM" )); item1.SubItems.Add(arquivo); } hklm.Close(); #endregion #region HKLM ...Show All
Visual Basic Program Locks on Clicking Show Desktop Icon
Using VS 05/VB 05 SP1 Professional… In debug mode (F5 build), if the program is stopped at a break point and I click on the “Show Desktop” icon in the Quick Launch tool bar, the desk top does not show and the program will immediately stop responding (confirmed by Ctrl-Alt-Delete Windows Task Manager). You can close it with Task Manager, and VS05 still runs ok. This was never an issue under VS03. Any ideas what is going on Is this a known bug in VS 05 Thanks, Bob Using VS 05/VC# 05 SP1 Got exactly the same trouble. Has tried several different machine setups. (including the fully patched plain vanilla WinXPpro SP2 +.NET2 one). The problem must have been thus IDE-related and is not dependant on chose ...Show All
Software Development for Windows Vista This thread has been moved. (Unable to Delete)
This thread has been moved. ...Show All
Gadgets Downloading and searching a web page...
Hey. I just got into Sidebar development and have a question. I've already got my gadget displaying nicely, but have run into problems making it functional. My Javascript is really rusty, so bear with me here. I'd like to be able to download a web page's source (HTML, generated HTML from a PHP page, whatever, not like the actual scripted source or anything, just what the end user sees) and then be able to sift through it for a certain element. Specifically, I'd like to download the index of http://www.charas-project.net and find the first link after the source: < span class = 'title' >Last 10 Forum Discussions</ span >< br >< hr > I can probably find the string handling functions to do the latter myself, but the d ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem with Designer and using Events
Hello. I'm trying to create a game component which has some properties that generate events, like this: private float positionX; [ DefaultValue (0)] public float PositionX { get { return positionX; } set { positionX = value ; PositionChanged( new MainCharacterEventArgs ( this )); } } "PositionChanged" is an event that I would like to generate everytime the character changes position... The problem is, when I use this Component with the designer, it always gives me this error: Object reference not set to an instance of an object. Hide at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value) at System.ComponentMod ...Show All
Visual Studio Team System Error - Object reference not set to an instance of an object.
I have a webservice that I want to subscribe to the WorkItemChangedEvent. I have tested this on my test server, but when I attempt to subscribe on my production server, I get a plain vanilla nullreference exception. That's no help. I can navigate to the service in the browser. Here is the command line that I used to subscribe on the test server. I have been unable to make it work in any form on the productions server. bissubscribe /eventType WorkItemChangedEvent /userId AD\\dsgtfsservice /address http://dsgts1:8080/NumberWorkItems/Service.asmx /filter "\"ChangeType\"='New'" Any guidance would be appreciated. ++Alan Naren, Yes, I'm getting the null reference text in the subject line of this thread when calling biss ...Show All
