Chook_rl's Q&A profile
Smart Device Development Combobox bug using Windows Mobile emulator
I have an application that uses a combobox's selectedindexchanged property to make a second combo box visible. When the first Combobox is populated with an item list everything works correctly. However when the first combobox is populated via a datasource form a Windows Mobile SQL table, the second Combobox becomes visible the instant the form is loaded. Obviously I don't want to see the second Combobox until after the first one is populated as ...Show All
Windows Forms Does datagridview checkboxcolumn support text?
VB 2005, DataGridView in UnBound mode: I am new to using the built-in datagridview checkboxcolumn type. I was assuming since this column type is similar to a checkbox, then each such cell would support both the box for the checkmark and a text string next to it. Is this the case, or did I just dream it up Assuming it was a dream, does anyone have a reference on how to make a cell in the datagridview behave like this where each cell can h ...Show All
Visual Studio Express Editions Thanks
How do you create multiple lines within a message box when combining a string with variable values I know... it would probably be easier to just create a seperate form and load the form.... just wondering if it was possible to not have to do such though. What if the data that is to appear on the next line is - lets say - the value of an array. I'll explain my question. What if I want to display a list of values which the user entered ...Show All
Software Development for Windows Vista Overprint, knockout or trapping in XPS?
Just wondering out overprint/knockout would be handled in XPS. That is, black text with a cyan background might be overprinted to deal with registration problems. In PDF files, the text object has the attribute of whether it knocks out or overprints. I am not finding a similar setting in the XPS spec. Trapping is another issue, but does not need to be specified in the document. Knockout: by default, XPS uses t ...Show All
Visual J# Problem with C++/CLI and J# interaction bug
I'm having a problem with C++/CLI and J#. I am writing a class library in C++/CLI and want to use it from J#. I narrowed down my code and wrote a repro: a.cpp: #using <mscorlib.dll> #include <stdio.h> using namespace System; namespace AA { public ref class A { public : unsigned long Print() { printf( "Hello\n" ); return 0; } }; } b.jsl: import System.*; import AA.*; public class Test { public static void main( Stri ...Show All
Windows Forms Graphics question
Ok my problem is with Graphics class //------------------------------------------------------------------------------------------------ private void Form1_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics; g.DrawLine(new Pen(Color.Black), new Point(30, 30), new Point(30, 100)); g.Dispose(); } you see i declare Graphics g=e.Graphics where 'e' is the PaintEventArgs and then draw a line //--------------- ...Show All
Visual Basic Strange ReadByte results
I am trying to read a binary (midi) file. This image shows the first few bytes in a hex editor (Ultra Edit, xvi32 gives the same result). Notice that the last 4 highlighted bytes are 00 00 01 B9. I Read this file with the following code: Private Function hexify( ByVal b As Byte ) As String Dim retval As String = b.ToString("X") If retval.Length = 1 Then Return "0" + retval Else Return retval End Function ...Show All
Game Technologies: DirectX, XNA, XACT, etc. D3DXIntersect and getting face normal
I'm using D3DXIntersect to get face index in mesh and that is working nice. I don't know how to get normal for that face or normals for vertices that are forming that face. Actualy... only normal for first vertex would be enough. I'm not realy liking that function after all. It seems to return a list of all the triangles that were intersected by the ray, wich means that it doesn't return as soon is it hits the f ...Show All
Visual FoxPro data from one table1 that isn't in table2
Yallo, I know there is an easy fix, but I have spent to much time on it and can't figure it out. I have two tables that share some id numbers. I want to pull all the data from one table where the id isn't in the other table. Table1 id name 1 steve 2 clarith 3 dorthy 4 pudbo Table 2 id name 8 clem 2 clarith 6 fursmorth 4 pudbo two tables: they share records with ID 2 and 4. I need to pu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. movement pause
When I use this method in my render loop and hold down the key protected override void OnKeyDown(KeyEventArgs e) { //...move player } the player will move once, then after a pause continue to move. How do I get rid of the pause, so the player moves immediantly Thank You I had that problem too. I found the easiest way (for me since I tend to avoid unsafe code and prefer to use 100% .ne ...Show All
SQL Server Using HTTP Post to secure parameter values?
It is mentioned in "MS SQL Server 20005 Reporting Services" (good book by the way) that you can get around URL access limitations by employing the HTTP Post method. I have employed the HTTP Post example from the book and parameter values are still exposed in the URL. Am I missing something I have searched the internet trying to get a definitive answer to this issue and came across this blog ( http://blogs.msdn.com/tudortr/ ) entry w ...Show All
Visual C++ How do I convert a long variable to const Int ?
I get back numOfContext as a long (req. by this call). I then want to create 2 arrays based on this size but I need const int for array declaration. How can I do this Thanks. pSYContextContainer->get_Count(&numOfContext); AlphaDavis wrote: I get back numOfContext as a long (req. by this call). I then want to create 2 arrays based on this size but I need const int for array declaration. How can I do this Thanks. ...Show All
Visual Basic Help w/ Printing Please!
So far I have been able to set up the document I wish to print, but once I initiate printing I am pretty much lost. I use the following code: 'Print Setup PrintDocument.DocumentName = (FilePath & "\print.pdf") PrintDialog.Document = PrintDocument Dim Result As DialogResult = PrintDialog.ShowDialog() If (Result = DialogResult.OK) Then PrintDocument.Print() End If Now I am aware that I need to have a subro ...Show All
Architecture Are interfaces for behavioral overloading only?
This question comes from the new approaches being suggested when designing services with WCF and even ASMX 2. The approach is one that uses interfaces (or abstract classes) to focus on the method signatures and avoid diving directly into implementation when desiging services. This looks like a half-way contract first approach that is meant to help developers focus on what makes a service reusable (strong typing, message orientation, explicit met ...Show All
Visual Studio 2008 (Pre-release) Controlling nillable
Hi. I'm writing a webservice with WCF. The webserce will be used from a Powerbuilder (Powerbuilder Script) client. Here some limitations apply. With a class like this [ DataContract ()] public class Entity { [ DataMember ()] public int AnInt { get { ... } set { ... } } [ DataMember ()] public int ANullableInt { ... I get a schema like thi ...Show All
