Software Development Network Logo
  • Windows Live
  • Visual Basic
  • SQL Server
  • VS Team System
  • Windows Vista
  • Smart Device
  • Windows Forms
  • Architecture
  • Visual J#
  • Game Technologies
  • Microsoft ISV
  • Visual C#
  • .NET Development
  • Visual Studio
  • VS Express Editions

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

dollmaker

Member List

LZF
queenrose
nick0033
AlanMusicMan
Arkman5
marrik
TomFromBern
dipple
Shaleen Rana
njahamaca
mgomon
Vipul
Rafael Gómez
Prasa
joejavacavalier2001
Cim Ryan
Bill Guenthner
Gseese2
Souri
Anthony D. Green
Only Title

dollmaker's Q&A profile

  • Windows Forms List<ListRow> + ICustomTypeDescriptor + Data Grid View Problem

    Ok, so I've been working on a problem that I think every developer faces when using business objects. You often need to create grid data of a specific set of fields (i.e. in the case of a combo box, the ID and the Name field) and bind controls to it.  In a pure 3 tier achetecture, you don't want to have any database code at all in the GUI tier.  And of course you don't want to have to make a special business object for every permutation and combination of fields that you might need in your software. So I did a ton of reading and finally came up with ICustomTypeDescriptor and List<> So I created a List<> implimentation ...Show All

  • .NET Development video embedding

    hi i want to show my video in the browser , whats best way to show the video in the browser securely the dem only can view in the browser , not to download by the User. thank you Paranthaman R The best way to do it is by showing video in flash 8 as it has property through which a user can only view video but can't download it. ...Show All

  • .NET Development filesystemwatcher and backgroundworker

    hello i have a WinForms application (VS2005 & C#) which monitors file creation in a folder. when a new file is created, OnCreation event of the FileSystemWatcher, I use a backgroundworker to process the file. As the files (Compressed zip archives) vary much in size (from 100 K to 1 Gb), I have a loop which checks if the file transfer is complete (I have exclusive access), before passing the file to the background worker. private void fileWatcher_Created( object sender, System.IO. FileSystemEventArgs e) { txtLog.Text += e.ChangeType + ": " + e.FullPath + "\r\n" ; txtLog.Focus(); txtLog.Sel ...Show All

  • Windows Forms GUID and Datagridview

    I have a primary key column in my database that is set as a GUID column. Is there any way when adding new rows to a datagridview, or the dataset for that matter, that the GUID is automatically filled in, with out having to specify to create a GUID and set the rows ID to it I'm also interested in this exact scenario. Will post more if/when I come across anything of interest. ...Show All

  • .NET Development how to set the dataset's namespace

    hi, I'm use the Dataset Desinger of Visual Studio 2005 to design a dataset. Then, I compile the project. The desinger generate a typed dataset class. But the dataset class is inside the global namespace. How to set to generate the typed dataset class in a customed namespace. The namespace above is C# namespace. Not the XML namespace. thanks. Hi, When you create a typed dataset, the generated dataset class inherits the DataSet Class object. That is why it is inside the global namespace. You cannot customize the namespace of the generated dataset class. Hth, Michael Castillones ...Show All

  • Windows Forms Custom Control, how to make custom EventArg?

    Anyone know how to make a custom EventArg setup for a Custom Control ie. make: public event EventHander SomeoneClickedMe; call: cntrlWhatever_SomeoneClickedMe(object sender, CustomEventArg e) instead of calling the default: cntrlWhatever_SomeoneClickedMe(object sender, EventArg e) Yes you are correct you don't have to inherit EventArgs, nor do you have this signature for your delegate: delegate void CustomEventHandler( object sender, EventArgs e);   You could instead have this: delegate bool CustomEventHandler(Whatever e);   However it makes it easier on consumers of your classe ...Show All

  • Visual C# DateTime Subtract

    hi guys i just wanted to find out how to, for example remove 45 day to a date I have... found ways to compare or add, but i just can find how to remove day to a certain date...~ Thx Hi there, To subtract a number of days, simply pass a negative value to the AddDays() function of the DateTime class. For example, to subtract 12 days you pass -12 to the function. A little code example: DateTime x = new DateTime(2006, 5, 13); MessageBox.Show(x.ToString()); MessageBox.Show(x.AddDays(-12).ToString()); The message boxes are there to demonstrate the act of subtraction. Remember that AddDays() function actually returns a new DateT ...Show All

  • Visual Basic loading image into button

    hi, i have a button and i want my button to have a image when in runtime, but my image is located in my project Resources folder, what is the syntax to load the image from the Resources folder to my button button1.Image = image.FromFile(...) Assuming VB'05 here. Make sure your image is loaded as a resource in the project's properties under resources. It's possible to have it in the folder on the explorer view, but not have it attached to the project. Then set it to embedded under it's properties.  Then your reference goes something like this. button1.Image = My.Resources.ImageName ...Show All

  • Microsoft ISV Community Center Forums Need recommendation on Office/VBA/.NET/C# solution (cross-posting from the VSTO Forum)

    ****** The reason that I am cross-posting this from the VSTO froum is to reach the widest expert base. Thanks. ****** We want to move logic currently in Word XP VBA to C# component(s). What the VBA code basically does is calling Web Services that are implemented in Java, and display the returned data in Word documents. Our requirements are: improved performance easiness to install the components on end-user's PC's ability to be shared the components across all the products in the Office suite After doing some reading, there seem to be 2 solutions to me: Register the C# components as plain-vanilla COM objects using COM interop and call ...Show All

  • Smart Device Development Adding a new target device to the VS2005 IDE?

    How can I add a new target device (a custom WinCE Emulator OS) that I built with Platform Builder to the target device dropdown in visual studio In short, I built a Win CE OS using Platform Builder. Now I want to debug an application on this device (it's an emulator build) using the VS 2005 IDE in which I built the program. I can't figure out how to do this 1. Build SDK in PB. 2. Install SDK. 3. Follow this to debug on the emulator (note that would be PB emulator). http://blogs.msdn.com/vsdteam/archive/2005/01/05/347332.aspx ...Show All

  • Windows Forms VB2005 - Listview Column Sort

    I'm having a problem that is cited fairly commonly on the net. I've tried various solutions and all of them have the same problem. I'm trying to do a column sort. String variables sort nicely. However variables that are integer variables don't sort at all. The order is very messed up. There is some sorting but not based in the full magnitude of the sorted integers. Can anyone help me with this. I've tried several ways of doing this, beginning with MSDN examples and they all have the same failing. Hello, plz could you tell me how can i get the selected item in a listview (multiselect disabled) i wanna use it on an other form (form2)... ...Show All

  • .NET Development table variables, SQL Server 2000 and VS 2005 (ASP.net 2.0)

    Hi guys i am having problem using stored proc that contain table variables while developing in VS2005. I use a table variable in one of the stored procedure: Declare @TempTable Table (RowNumber int IDENTITY PRIMARY KEY, Name varchar(50)) In VS 2005 when creating a table adapter it given an error saying invalid object @TempTable I some how tricked the VS2005 and created the table adapter, but when running the application and making the call to that stored proc throws following execption: System.Data.SqlClient.SqlException: Invalid object name '@TempTable' . at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boole ...Show All

  • Software Development for Windows Vista UNC Path from Local Path

    I have seen a lot of (old) documentation suggesting that WNetGetUniversalName is the way to get to the unc of a mapped drive, however I don't know how to use this to help me with C# uing Visual Studio .Net 2005. I can't seem to locate any similar function calls within the.Net 2.0 Framework - What is the best way to proceed Regards Craig We don't support WNetUniversal name through managed code yet. You can of course P/Invoke yourself Try asking this in the Vista Networking Forum http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=120&SiteID=1 ...Show All

  • Smart Device Development missing OLDNAMES.lib in vs8

    Hi all, I create a win32 application for pocket pc with visual studio 8 like below: 1) Open vs8, create new project for win32 smart 2) In window: Application Settings     I choose Windows application      and choose Empty project. 3) In solution explorer     I add a new code cpp page, next i add very simple code like that:    #include "windows.h"        int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,                     LPWSTR lpCmdLine, ...Show All

  • Visual Basic Countdown timer help

    I am trying to create a countdown time in which a user can enter a time in hours minutes and seconds. The countdown will then begin. I want something like the TV show 24 timer that counts down. Here is the main code I have:  Sub Timer2_Tick(ByVal sender As System.Object, _        ByVal e As System.EventArgs) Handles Timer2.Tick     Dim time As Date     time = lblTimeRemaining.Text      'performs DateAdd function that subtracts 1 second _      'from value of lblTimeRemaining.     lblTimeRemaining.Te ...Show All

©2008 Software Development Network