Software Development Network Logo
  • VS Team System
  • Visual Basic
  • Windows Forms
  • SharePoint Products
  • IE Development
  • SQL Server
  • Microsoft ISV
  • Visual Studio
  • Game Technologies
  • Audio and Video
  • Visual FoxPro
  • Visual C++
  • Visual C#
  • .NET Development
  • Windows Vista

Software Development Network >> KenRW's Q&A profile

KenRW

Member List

Sathish Alagirisamy
Junner2003
yeos_lee
GalaxyNg
Jamie Briant
Blipwort
LBSanthosh
JawKnee
sunnny
Maik Wiege
RayD
Linda Cornerstone
Simon Bowles UK
ititrx
Raman_HP
David Ing
Rupinder
akaRickShaw
jrboddie
Jeff Schuler
Only Title

KenRW's Q&A profile

  • Visual Studio Bug: Report only prints correctly from print layout screen

    Btw, is there an official location to post report viewer bugs On two PCs, the user can only print if they click Print Layout first. If they click Print from the initial screen (whats that called ) then the report does not print correctly. As follows: 1) On first PC, only top half of each page prints. 2) On second PC, a single page will print, with this error data on it: PCL XL Error Subsystem: KERNEL Error: Missing Date Operator: ReadImage Position: 1222 Both PCs have report viewer v2.0.50727. Report prints fine if they click Print Layout first. There are several known issues with winforms printing. These have been addressed with Visual Studio 2005 SP1, so make ...Show All

  • Windows Forms Abort the Thread

    Hi, I have two forms Welcome,MainForm. I want to use Welcome as SplashScreen till the second form instance is created. In Welcome form I have use one thread to create instance and to show the Main Form. After displaying MainForm I want to close Welcome Form as the thread. Can you please tell where Can I use abort() and close the Welcome Form. I think I misplaced the abort in my code. public partial class Welcome : Form { MainForm mainForm; Thread splashThread; public Welcome() { InitializeComponent(); } static void Main() { Application.Run(new Welcome()); } public void StartMain() { mainForm = new MainForm(); // ...Show All

  • Smart Device Development Download File from the Internet

    Hi, I've got my program to succesfully connect to a website and then read the contents of that page with HINTERNET.  But now I would also like to be able download a file off the internet and store it locally on the machine.  I could, in theory, just go to the file online, read what is spat out, and write that contents to a file.  But these files might be 100kb, which is too much to store in an INTERNET_BUFFER. Can I simply get the whole file and place it on the machine in one go Cheers, Dan. Thanks for the reply avinash. I actually found a built in function called URLDownloadToFile. Give it a web file and a local file name, and it will put that web file in your local file. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. 10-bits per component graphics

    I need to output 10-bits per component graphics but the System.Drawing.Color class only allow 8bits per component (0-255). Any idea You'll need to perform the appropriate enumeration to determine what backbuffer/display formats the device is capable of. If it will only allow 8888 formats then you're a bit stuck as you can't really force the hardware to do something its incapable of. If 2-10-10-10 render targets are supported you could do all of your intermediary rendering at a higher precision and then sample it down to 8-8-8-8 for the final output. This would be fairly similar to how FP16/FP32 HDRI rendering works - the intermediaries are floating point but the output is still 8-8-8-8 (usually). ht ...Show All

  • Visual Basic Add items in a combobox

    Hi I know how to add items in a combobox, but how to do it iff i have items to see and another to value. Like i see the car name in my combobox but if i select a car i want to send a number not the car name, know how to do it with a database. Regards alvin Set displaymemeber to the field with the car name in your lookup table Set Valuemember to the field with the car number in your lookup table Set the selectedvalue to the field with the carnumber in your table Set the datasource to your table Remco ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Grouping units like in a RTS game

    hello all.. is it possible to group units (drawing a rectancle) while holding down the mouse button with XNA i am planning to do a 2D game where i would need this.. if yes, please give me a hint how to do it... thanks in advance greg thanks for the ideas.. i will think about this :) greg ...Show All

  • SQL Server transaction inside a data flow task

    We are designing an ETL solution for a BI project using SSIS. We need to load a dimension table from a source DB into the DW; inside the DW there are two tables for each source dimension table: a current dimension table and a storical dimension table. The source table includes technical columns that indicate if each record was processed correctly by ETL procedures. Each row in the source table can be a new record, or an exisisting one. If it's a new record, a corresponding new record should be inserted into the current dimension table of the DW; if it's an exisisting one, a new record should be inserted in the storical dimension table and the existing record in the current dimension table should be updated. Furthermore for each ...Show All

  • Visual Studio Express Editions playing two consecutive wav files

    How would you go about playing two wav sounds one after another from two different subs with a slight delay between I have a different wav recorded for each month of the year and another wav recorded for Each day of the month. Here is a sample of what I have so far. Sub playdate() Dim mon As Integer mon = System.DateTime.Now.Month Case Is = 11 playsoundfilenov() End Select End Sub Sub playsoundfilenov() My .Computer.Audio.Play(Application.StartupPath & "\month\nov.wav" ) End Sub Sub playday() Dim day As Integer day = System.DateTime.Now.Day Select Case day Case Is = 9 playsoudfile9() End Select End Sub Sub ...Show All

  • Visual Studio 2008 (Pre-release) RC1: Parsing issue?

    When I try to open a page in Cider, I get a parsing error from my main application XAML. Here's the error: Error 1 Value '/Library;component/Skin/Default/SkinStyle.xaml' cannot be assigned to property 'Source'. C:\...\App.xaml 8 29 Here's the XAML: < Application x:Class = " App " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " > < Application.Resources > < ResourceDictionary > < ResourceDictionary.MergedDictionaries > < ResourceDictionary Source = " /Library;component/Skin/Default/SkinStyle.xaml " /> </ ResourceDictionar ...Show All

  • Windows Live Developer Forums MSN Messeger

    Can I make an application using Visual Basic 2005 that can control some functions in MSN messeger 7.5 If yes can you send me the code. I think that I need some dlls to make it happen. Thanks Glenn Zarb When I am typing                 Dim Msgr As New MsgrObjectClass()                       a blue line appears under MsgrObjectClass and it says that this type is not defined. Do I have to do something before this code like a dll or something else Thanks ...Show All

  • .NET Development Website

    Can Any body help me how can i create a web site that ather than localhost,i want it to have an address like juandelacross.com in my own computer my os is server2003 standard,please i'm an amature. 1. From start menu right click on MyComputer Computer Management dialog comes up 2. In the right pane select and expand |-> Services and Applications |-> Internet Information Services (IIS) Manager |-> Web Sites 3. Select and right click on the "Default Web Site" node, select New --> WebSite or Virtual Directory You will be guided through a series of dialogs asking the name of the site/directory, physi ...Show All

  • Visual Basic Problem with encoding between vb.net and a unmanaged DLL in C

    Hi! I have a DLL(made in C) which I want to communicate with, and I get the communication to work but the string which get sent becomes wrongly encoded. I have tried to declare the dll in the vb.net code like this: Public Declare Function Write Lib "test.dll" (<MarshalAs(UnmanagedType.LPArray)> ByVal Data() As Byte , ByVal DataLen As Integer , ByVal Id As Integer ) As Integer and also like this: < DllImport( " FG197038d.dll" , bestfitmapping:= True , CallingConvention:=CallingConvention.Cdecl, CharSet:=CharSet.Ansi, throwonunmappablechar:= True )> _ Public Shared Function Write( ByVal Data() As Byte , ByVal DataLen As Integer , ByVal Id A ...Show All

  • .NET Development Search and Replace

    Hi All! I'm writing a program using VB.NET 2003. Ultimately I am attempting to write a function for my program to search and replace PHP code. The tricky part is that the code will never be the same. I just need to replace one chunk of code with another chunk of code. I actually have it working right now using the standard replace function in VB.NET but it's not as robust as I would like due to the leading spaces or tabs at the beginning of each line of code. So for example I might search a PHP file for this chunk of code... if ($error == false) { $sql_data_array = array('customers_firstname' => $customers_firstname, 'customers_lastname' => $customers_lastname, 'customers_email_address' = ...Show All

  • Visual Basic Array starting at 1

    I'm redim a array to start 1 and to go to 600, does anyone know how i tryed using the "to", but never worked ReDim Preserve Array(1 to 600) In general using the 0 based arrays is recommended - VB (and for that matter C# afaik) doesn't support creating non 0 based arrays. If you really, really want to do so, you can use the array class to create an instance that isn't 0 based: Dim a As Array = System.Array.CreateInstance( GetType ( Integer ), New Integer () {600}, New Integer () {1}) Note that this array will not be strongly typed, so it will require several explicit conversions if option strict is on. ...Show All

  • .NET Development Unexpected behaviour of Hashtable with a class object as the Key?

    I want to use a class I made containing an array of objects (MyClass) as the key for a hash table. I override the GetHashCode() function for the class but still I am getting unexpected behaviour (ie the variable "test" is always null). Here is the code: //////////// Calling Code (in a button event or similar) Hashtable h = new Hashtable (); // Add MyClass objects to hash table h.Add( new MyClass ( "key" , 1), "value 1" ); h.Add( new MyClass ( "key" , 2), "value 2" ); h.Add( new MyClass ( "key" , 3), "value 3" ); string test = ( string )h[ new MyClass ( "key" , 2)]; if (test != null ) {   MessageBox .Show(test); } /////// MyClass //////////// public cla ...Show All

©2008 Software Development Network