Nani's Q&A profile
Silverlight (formerly WPF/E) Displaying transparent images on a canvas
Maybe this isn't allowed, but I tried to display a gif with a transparent area on a canvas and it didn't work. I converted the original image to a .png with a transparent area and it didn't work either. Am I trying to do something that isn't available, or did I do something stupid Thanks! I had someone else use my html and xaml have the same problem. He swapped in a different transparent .png file and it worked, so it sounds like I pooted the .png. Funny it looks fine in IE. I've got zero experience with .png, so I'll have to play with that and see if I can produce one that works. -Dave ...Show All
Visual C++ CScrollbar Question
I'm trying to find out where the scroll box is while it's being dragged. When I do a TRACE() using GetScrollPos() it returns the starting position. How do I get ahold of the position while I'm scrolling The problem is that nPos in OnVScroll is a 16bit value. If you scroll positions are larger than you can't rely on the argument. You need to use GetScrollbarInfo, with this function you can get the true 32bit position of the scrollbar! ...Show All
Smart Device Development stream audio file & send via serial port!!!!!
anow i can record , save as a file and play sound by Waves class (i use C#.NET) . but i don't know how to stream it and send it via serial port of bluetooth. i found that serialport class has a write method ,but i'm not sure that can i write sound via serial port . can you advice me this is my code. using System; using System.Drawing; using System.Collections; using System.Windows.Forms; using System.Data; using System.IO; namespace MWORecord { /// <summary> /// Summary description for MWORecord. /// </summary> public class MWORecord : System.Windows.Forms.Form { private System.Windows.Forms.Button btnPlay; private System.Windows.Forms.Timer timer; private System.Wind ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Templates in VS2005 Pro?
Has anyone tried using VS2005 Pro for XNA Games I know you need C# Express installed, but if you copy the templates to the VS2005 folders and reference the DLLs, will it work Today I discovered that my MSDN subscription (bought for me by the company I work for) allows me to use VS2005 Pro at home. I don't really do any development other than playing with XNA, so I was just wondering if it was worthwhile installing it or not It is possible to fiddle with the templates or create new ones that work on VS2005 Pro but in your case if you haven't got it setup then there's not a huge reason to bother. For C#, VSExpress offers most of the features you need (play around with tool/options - some things are tur ...Show All
SQL Server Cannot create linked server
I cannot create a linked to a MySql database in Enterprise Manager. Here is the relevant info: Trying to create a linked server on a SQL Server 2000 Standard Edition Service Pack 4 running on a Windows 2000 Standard Edition server. The MySQL server is running on Red Hat - not sure of the DB or OS version. However the DSN I created connects to the server correctly. I can connect using any of the MySQL tools. I am using the latest ODBC MySQL drive 3.51...Here is the Provider string I am using... DRIVER={MySQL ODBC 3.51 Driver} ;SERVER=192.168.1.99;DATABASE=bug_tracker; USER=UserID; PASSWORD=Password; OPTION=3 I have also tried using a System DSN to connect with, but that does not work either. It appears to create the linked se ...Show All
Visual Basic FlowLayoutPanel Problems
Hi I find that if buttons are added to a FlowLayoutPanel, the AutoAcroll (via mouse wheel)works. But if the added controls are pictureBox, then the autoScroll does not work. Does anyone know why The code I used is: Dim panel As New FlowLayoutPanel Dim control As New PictureBox 'Button ' panel.Width = 300 panel.Height = 500 panel.Location = New Point(10, 10) panel.FlowDirection = FlowDirection.TopDown panel.AutoScroll = True panel.BackColor = Color.AliceBlue Me .Controls.Add(panel) control.Width = 200 control.Height = 1300 control.BackColor = Color.Blue panel.Controls.Add(control) Thanks. Thanks for your reply. In your code, t ...Show All
Smart Device Development Native C++ vs C# (managed code)
Hi I want to develop a SDK for windows embedded platform which can be used to write applications that talk to my wireless driver. The wireless driver can be run for various processor architectures and for different interfaces like USB/PCI etc. Which is the better choice for writing an SDK: 1. Native C++ 2. C# Regards Simer Thanks to JR Lyon and Michael Koster. But I have another problem: The MSDN gives an example of using native code in C# using System; using System.Runtime.InteropServices; class MainClass { [DllImport("User32.dll")] public static extern int MessageBox(int h, string m, string c, int type); static int Main() { string myString; Console.Write("Enter your message: " ...Show All
SQL Server SQLEXPRESS Database Issue - Cannot open database ASPNETDB.MDF requested by the login, login failed
Hello Guys This is my connection string <add name ="ASPNETDBConnectionString1" connectionString ="Data Source= .\SQLEXPRESS; Integrated Security = True; DataBase = ASPNETDB.MDF; User ID = MyWindowsUserName; Password = MyWindowsPassword; User Instance = False; Connect Timeout = 30" providerName ="System.Data.SqlClient"/> I tried to research on the internet and i got a solution on changing the permissions for this database to enable user SystemName/ASPNET, but iam not able to access this ASPNETDB.MDF from SqlServer and if i go to server explorer in vs2005, i dint know where to chage the permissions. Can anyone help me on this. Thanks a lot Hello Ranga, Thanks a lot yar. ...Show All
SQL Server SQL Server Table DML
1) We have 2 SQL Server 2005 servers databases with disconnected architecture i.e. wireless. 2) For some tables, we need unidirectional copy of DML changes from one database to another and for others a bi-directional copy. 3) Replication is not possible. Triggers are not allowed. What about backup and recovery Any files that get generated can be copied from server to server using WAP. 4) Can we read from .ldf log file to generate DML statements to be applied on the other side 5) Can we take Trace to file/table for DML statements/events that occur on a single table 6) What we are planning is have emp and emp1 in one DB same initially and all differences will be stored in a text column i.e. inserts, deletes and updates that occured later. ...Show All
Visual Basic when i press a button i need to open a wizard
in my vb.net project i need to parse a dice job bord resume i am thinking to do it in wizard since some time i need to parse ordinary .doc resume also i am thinking to do this using a wizard can any one help me how to do this ...Show All
Visual Studio Team System How to Use FxCop1.35 in VS2005
HI,David M.Kean I wanna check if class names/method names/property names are Pascal Cased in VS2005,and I just find there are rules in the Fxcop1.35,such as CA1704(IdentifiersShouldBeSpelledCorrectly),CA1705(LongAcronymsShouldBePascalCased)... so,i add FxCopSdk.dll/Microsoft.Cci.DLL(FxCop1.35) into References(VS2005),it can be builded succeed,i copy the DLL into "Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\Rules",but it does not work. how can i do thank you~! Updating Visual Studio 2005 with FxCop 1.35 is not a supported scenario, however, that doesn't matter in your situation, because the casing rules IdentifiersShouldBeCasedCorrectly, LongAcronymsShouldBePascal ...Show All
Visual Basic Adding a sheet from a template in Excel
Hi, Lots of references on how to use Excel from VB .Net, can get most of it working but cannot get Excel to add a new sheet to a workbook from a template. Looked on MSDN and found details on the sheets.add() method but it does not give examples it just says "you can add a sheet from an existing template" but does not say how...sigh. http://msdn2.microsoft.com/en-us/library/microsoft.office.interop.excel.sheets.add.aspx Here is the example I am taking apart to attempt this: Public oexcel As Excel.Application Public obook As Excel.Workbook Public osheet As Excel.Worksheet Sub Main() Try 'create new excel application oexcel = CreateObject("Excel.Application") oexcel.Application.DisplayAlerts = False ...Show All
Microsoft ISV Community Center Forums Size Form to fit user resolution
I have several multi-user Access applications. After much time-consuming research I have not been able to find anything that works on this question: How can I get my forms to automatically fit the USER'S screen with their set resolution with the OnLoad event of a form I have already tried me.height, me.width with no success. Anyone have any other suggestions Any help would be greatly appreciated. Thanks! If I want my entire website to fit to the user's resolution - can I still use this code If so, where do I put it ...Show All
Visual Studio 2008 (Pre-release) Creating ADO.NET DataSet definition files, C#
Hello, I do reporting solutions, VS2005,C#, SQL Server 2005. I am looking for a way to set up a typed ADO.NET DataSet definition reference before actually generating a DataSet. I heard it can be done thru a C# Class, XML Schema .xsd file, etc. What options do I have Thanks, Serge Serge, That depends on what type of application it is. If it's a windows client application, you can use System.Diagnostics.Process to start xsd.exe. If you are on a system like a web server, or where you don't have access to the file system, you can directly use the Typed DataSet code generator. However, this is not a trivial task, and if you can use xsd.exe, I would highly recommend it. xsd.exe can run under ...Show All
Windows Forms How to attach a context menu during runtime
Hello everybody. Right now I am trying to create a small hotel program(similar to Room Master) What it is supposed to do is to create as many rooms(represented by buttons) as the user wishes. Also I have created a context menu with all the options on it what i want to do is to attach the context menu to every dynamically created button i've tried doing the following myButton.ContextMenu = this.contextMenu1; but it doesnt work then I've created the context menu inside the code, i mean like ContextMenu cntMenu = new ContextMenu(); cntMenu.MenuItems.Add("touch up"); and so and so I feel it is much easier if I can just attach already visually created context menu any ideas how to do this maybe if I create a reference(I dont know how ...Show All
