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

Software Development Network >> Albert Yen's Q&A profile

Albert Yen

Member List

coolash
Watch Pick n Poke Action
ngunawar
Mick Seymour
Alias
spb622
Subrajit
JamesChapman44
Mosquito
Clark Snowden
Jasim Iqbal
Pieter van der Berg
urir
William_fr
Dalaware
James-MSDN
RadekP
GMann
Peter1979
Joe D. Sullivan III
Only Title

Albert Yen's Q&A profile

  • Visual Basic Can some one help me to convert following function to vb, please

    '// write data stream into 'void WriteBits(BYTE* p_buff, int pos, int len, unsigned long value) '{ '    int start_byte, end_byte; '    int start_bit, end_bit; '    int byte_pos; '    BYTE width_mask, or_mask, and_mask; '    BYTE byte_value; ' '    start_byte = pos / 8; '    start_bit = pos % 8; '    start_bit = 7 - start_bit; '    end_byte = (pos + len - 1) / 8; '    end_bit = (pos + len - 1) % 8; '    end_bit = 7 - end_bit; ' '    if (start_byte == end_byte) '&nbs ...Show All

  • Windows Forms A new way of drawing the forms and controls on screen.

    The existing releases of Microsoft Windows, and the .net controls are designed to use GDI and GDI+ for drawing them self on the computer screen. As you may know, every control or form is responsible of redrawing itself when necessary, using the existing GDI libraries. Of course there are a lot of technologies involved in the process, but I will skip th ...Show All

  • Windows Forms UserControl Data binding & BindingSource.EndEdit() Effect

    I have written a simple user control with just a TextBox control on it and bound Its MyText Property to a DataTable Column. Using 2005 UI facilities I dragged this control from dataSources window on the form.In the form_load I fill my DataTable and by clicking a button I Call the associated BindingSource.EndEdit() whitout any change.But my underlying DataSet HasChanges() method returns true! how can I Fix this problem. here is my controls source: I am having the same damn problem. I entered the following code to further test the current record in my databinding function: foreach ( DataRow r in this .myDataSet.myTable.Rows ...Show All

  • SQL Server Supporting Current RDL Spec

    Does Reporting Service have the concept of supporting 2003 level RDL and 2005 level RDL separately (like Excel or Word does with their various formats ) or since most changes are merely additions does the latest version of Reporting Services just consume old RDL 2003 spec files and output only the new version of the Spec RS 2005 works with the 2005/01 RDL spec. Report Designer 2005 will load old RDL files and ask you if you want to upgrade. The upgrade will convert 2003/10 elements if necessary (e.g. Custom element). Report Server 2005 will upgrade old RDL files on-the-fly when you publish them. I.e. if ...Show All

  • Visual Studio Team System Missing VCOverrides.vsprops

    I've migrated to RC from B3R - no problems. In B3R, when I created a build type, the following files would get created under source control in the TeamBuildTypes folder: TFSBuild.proj, TFSBuild.rsp, VCOverrides.vsprops, and WorkspaceMapping.xml. However when I try to create a new build type (after migrating to RC), I only get the following files: TFSBuild.proj, TFSBuild.rsp, and WorkspaceMapping.xml. VCOverrides.vsprops is missing. Is this a bug in RC or in a new change that I don't know about Another thing, I can no longer run my build types (created in B3R) because I use the VCOverrides.vsprops for those builds. When those build ...Show All

  • Windows Forms Display a user control

    Hello, I have a windows form and four user controls. In the windows form I have 3 buttons and a panel. When the form loads I wish to display a user control. When a button is clicked the user control should change to one of the other three. How do I show a user control in a form How do I load a different user control Do windows forms have an equivalent to Frames in ASP.Net Hello In WinForms, every Control has a collection of Controls. If you want to show a UserControl in a form you shoud add the UserControl into the form's Controls collection: UserControl userControl = new YourUserControl(); userControl.Locat ...Show All

  • .NET Development NullReferenceException when disposing MessageQueue

    Hi all, I get the following exception, when disposing MessageQueue in .NET 2.0 System.NullReferenceException was unhandled Message="Object reference not set to an instance of an object." Source="System.Messaging" StackTrace: at System.Messaging.MessageQueue.MQCacheableInfo.Dispose(Boolean disposing) at System.Messaging.MessageQueue.MQCacheableInfo.Finalize() I never had problems while using .NET 1.1. Does anybody know, what can cause such a problem Best Regards Bernd Ritter Do you check if the object is not null before trying to dispose If this is not t ...Show All

  • SQL Server Cannot open database

    My mdf file was deleted. I was able to restore the said file but unfortunately I can no longer open it. I have also noticed that the recovered mdf file was smaller than the file before it was deleted. What can I do to open the database file I have tried the following lines using osql utility. 1> use db1sql1 2> go Msg 946, Level 14, State 1, Server JDI11-31, Line 1 Cannot open database 'db1sql1' version 525. Upgrade the database to the latest version. Hi Paul! I got the following message upon execution of sp_attach_db. Msg 5180, Level 22, State 1, Server JDI11-31, Line 1 Could not open FCB for invalid ...Show All

  • SQL Server Introduce Domain functionality to UDDT

    As so rightly stated in http://www.microsoft.com/technet/prodtechnol/sql/70/books/inside6.mspx "Currently, UDDTs don't support the notion of subtyping or inheritance, nor do they allow a DEFAULT value or CHECK constraint to be declared as part of the UDDT itself. These powerful object-oriented concepts will likely make their way into future versions of SQL Server. These limitations not withstanding, UDDT functionality is a dynamic and often underused feature of SQL Server." There's no point bothering with using a UDDT in T-SQL if you can't apply constraints to the UDDT! 1 vote for the introduction of the mentioned features int ...Show All

  • Visual Studio Mass renaming files in Visual SourceSafe 6.0

    Is there a command to change all file names to lower case in Visual SorceSafe 6.0 I have looked in multiple places but have not come up with anything. Thanks, Reid Hochstedler Hi Reid, You can be logged in as anyone who can rename files. The VSS credentials are passed in when the database is opened    myDB.Open("C:\SSDB\srcsafe.ini", "guest", "") (in this case, guest account is used with no password) Alin ...Show All

  • Windows Forms Combo boxquestion

    hi .. how can i fill the items of the combobox from the data base 4 exapmle : table students include a name lets say jim & bill so the combo box should display jim and bill if i add new student peter then the combo box should display the all three students thx You can request the data from the database, and set the datatable to be the datasource. Then there's a displaymember property you can set to tell the combobox what column to read the data from. There's also a valuemember property, or similar, which sets the value, such as an ID, to associate with each display value. ...Show All

  • SQL Server List of data mining techniques not populated - BI Studio hangs

    From within the Business Intelligence Studio, I've created a data source and a data source view. Next, when I try to build a mining structure from a relational database, the studio hangs when it goes to the screen which lists the data mining techniques. Has anybody come across this issue What needs to be done to get further I'm using the June CTP of SQL Server 2005. Thanks, -GB. This might be the result of a configuration/install bug. I would suggest uninstalling your June CTP version and moving to the RTM build. ...Show All

  • .NET Development "Could not create type..." error deploying webservice

    I know this question has been asked a billion times already because I've found several instances on the net, but none of the proposed solutions seems to solve my problem, so I'd appreciate any help. I've created a C# webservice on my local machine that runs fine. Now I'm trying to deploy it to a webserver. The server is Windows 2003 with IIS 6. I created a new virtual directory in IIS, set it to be an application, and gave it "scripts only" execute permissions. I've manually copied all the files from my local webservice directoy to the virtual directory on the server. When I try to access the page, I get the dreaded "Could ...Show All

  • Visual Basic Visual Tools with VB.NET question

    Hi, I'm using the Visual Tools so that my software can create some reports as Word Documents. However I would like to know what happens if the user doesn't have Word 2003 And is there some way I can test for this Because I want to offer a HTML option if the user doesn't have Word 2003. Thanks This is being talked about in another thread. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=172154&SiteID=1 You could also just query the user. They should know if they have word installed or not. Randy ...Show All

  • Visual C++ How can a window in a dialog receive keyboard message?

    How can a window in a dialog receive keyboard message I create a window in a dialog.This window can show 3D drawing including rotation and can receive mouse message,but it can not receive keyboard message. Please tell me why,Thank you for your answer.My code for create window is as follow.Maybe it need more parameter. My program for create window is as follow: R2=CRect(200, 600, 1000, 800); // TODO: Add extra initialization here m_pDisplay1->Create( NULL, //CWnd default NULL, //has no name WS_CHILD|WS_CLIPSIBLINGS|WS_CLIPCHILDREN|WS_VISIBLE, R2, this, //this is the parent u1); A window can get keyboard messages, when it has the ...Show All

©2008 Software Development Network