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

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

ErwinTsai

Member List

barbbayne
Oirad
trianta99
Hoguey
Sean.Stagner
Adam Smith
FlatBread
DeanT
JerPC
Alberto Ferreira
W_F
Peter Torr - MSFT
SpawnProduction
Ravi Kumar p
wakeup
Kent42
Pharos
SomeshChandra
Mohit Goel
Miriyala
Only Title

ErwinTsai's Q&A profile

  • Visual Studio Express Editions Question about errors in Swimsuit Calculator project

    I just converted a second project to VB 2005 EE format from VB 6 called "Ami Mizuno's Swimsuit Calculator!" and there were 2 errors in it which are the following: ================================================================== Error 1 'Public Event Load(sender As Object, e As System.EventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event. C:\Visual Basic Projects\Ami Swimsuit Calculator\Ami_Swimsuit_Calculator.NET\Form1.vb 9 3 Ami_Swimsuit_Calculator This is found in Form1.vb, Line 9, Column 3. I managed to fix this error by adding a RaiseEvent statement thanks to the corre ...Show All

  • Smart Device Development Get Device ID from Desktop

    Hi All, First of all, I would like to apologize if this is not the right forum to post this type of question. I have tried to post it in .NET Networking & Compact Framework section, but there were no replies. I would like to create an application that reside in desktop side, that is capable to get the device id from the PDA through ActiveSync. I have been able to retrieve the id through P/Invoke (KernelIoControl) if the process is executed inside the PDA. However, it has been a lot of difficulties once I try to do it through desktop. I read about RAPI, and found that there is an unmanaged call from ceutil.dll (CeGetDeviceId) ...Show All

  • Windows Forms adding a control to a derived control

    hello everybody i want a datetimepicker that has one field for handling a date and one for handling the time. so i created a datetimepicker derived from the original datetimepicker.  now ic want another datetimepicker to be drawn right besides the other one. to do so i create a new datetimepicker (the one to display the time) and add it to the controls-coll ...Show All

  • Visual Basic global variables

    Is there a way to declare a variable inside a function or sub and make it usable within other functions or subs. I dont think so. If you declare a variable within a function its private scoped. And can be seen within this only. You need to create Class level variables to make then accessible to other methods in the form or from other forms. Class Level variable are established within the bounds of a class/module but not within a method Class Foo Private m_foo as integer Sub FooProc dim l_foo as integer End Sub End Class So m_foo is class level and l_foo is local. ...Show All

  • Visual FoxPro table buffering mode

    On a statement like this: IF NOT initTableEmpty TABLEUPDATE () ENDIF I get an error: This operation requires table to be opened in buffering mode . SQLBUFFERING is set to ON before the table is opened. It does not help. Actually the error happens once in a while for no reason. I cannot understand what triggers it. Most of the time the statement works. The USE command does seem to have no option for buffering either. Is any help forthcoming I am sure it is. Thanks. You set buffering on a table with CURSORSETPROP() and you can check the buffer mode with CURSORGETPROP() so really defensive code wou ...Show All

  • Visual Studio 2008 (Pre-release) svcutil always generates code that uses XmlSerializer

    I'm using svcutil.exe from the Windows SDK Feb CTP to generate ServiceModel code for a web service created in VS2005. When one of the web service's methods has a parameter which inherits from an abstract base class, svcutil generates code that always uses XmlSerializer. Effectivly the result is always like when I set /uxs option. Is this a bug or a feature Below is the example of code which is going to force svcutil.exe to use XmlSerializer: [WebMethod] public string HelloWorld(ParamClass param) { return "Hello World"; } public class ParamClass : AbstractBase { string prop; public string Prop { get { return ...Show All

  • SQL Server Registry to store configuration values ?

    I try to store a SSIS-configuration value in the registry. But it's failed. I get a warning, that the registry-key is not found. What is the syntax I have searched in BO,MSDN and  Google/Internet ==> nothing. There is no example.     In the registry you have this entry: HKEY_LOCAL_MACHINE\SOFTWARE\ProjectName\Connections\ConnectionString1\value In Value you store your connection string In the SSIS-Configuration the reference is: SOFTWARE\ProjectName\Connections\ConnectionString1 Loom ...Show All

  • Visual Studio Add a folder to the Look In bar of Open File dialog

    i have looked at the VS documentation on the Open File dialog and it says that there should be a "Add to Places Bar" item in the Tools menu item in the dialog.  I only have Delete and Map Network Place in my drop down.  In VS.Net, there was a History button in the Look In bar.  I put shortcuts in that to quickly get where i wanted to go.  Thank you for your help.  Chuck. Hi, The documentation is wrong regarding the "Add to Places bar" in the Tools menu item. This exists in the MSO command bar so you can see it in Word, Excel but it was disabled for VS. You need to implem ...Show All

  • Visual Studio Changing parameters in ASP.NET reportviewer

    I'm utilizing the ReportViewer in an ASP.NET (RTM) application.  I dropped a ReportViewer control on to the ASP.NET page and configured the report for Remote processing.  The report loads and runs successfully with the default parameter values.  My problem occurs when I attempt to change parameter values in the parameters toolbar.  The page just refreshes with the default values in the parameter toolbar and the rendered report is based on the default values, not the ones I just entered. I'm specifying the ReportServerUrl and the ReportPath during Page_Load, along with setting parameter va ...Show All

  • Windows Forms BindingSource.ResetBindings()

    I am developing an app with one function being tracking student attendance to classes my company teaches. I want to be able to add new students in a child-form, and then select the student in a combo-box column of the datagridview on the parent-form. On save of the child form I am using: ActivityForm.AttendeeBindingSource.ResetBindings() But it is not successfully updating the parent form with new attendees added. Any advice on how I can refresh the control on the parent-form would be much appreciated. If anybody could help me with this, I'd really appreciate it. If my description is unclear p ...Show All

  • Smart Device Development Visual Studio not working with Compact framework projects

    I have previously been able to develop Compact Framework exe's using Visual Studio 2004 Enterprise architect version but after installing 2005 and subsequently uninstalling both then reinstalling 2003 I can no longer open/edit/compile compact projects. The designer wont work, references arent found and compiling comes up with errors like error CS0518: The predefined type 'System.Byte' is not defined or imported. Standard .net projects are fine. I have uninstalled/reinstalled everything including the frameworks. Any clues as to what might be wrong or better yet a solution I am thinking its reinstall windows XP time possibly.. ...Show All

  • SQL Server How to truncate the log file

    How do I truncate the log file using TSQL   My client's log file is 44 gig and there isn't enough HD space.  Thanks I have found that the following will work in the "out of disk space" scenario: BACKUP LOG database_name WITH TRUNCATE_ONLY Then, after you run that command, shrink the database using: DBCC SHRINKDATABASE ( database_name ) Hope that helps. Darren ...Show All

  • Visual C++ fatal error C1001: An internal error has occurred in the compiler. (Release Mode Only)

    Hi Folks, I got some code that works fine in Debug-Mode but causes a compiler error in Release-Mode: const float fx = pfx<0 0:(pfx>width-1 width-1:pfx), fy = pfy<0 0:(pfy>height-1 height-1:pfy); const unsigned int x = ( unsigned int )fx; const unsigned int px = ( int )x-1>=0 x-1:0, nx = x+1<width x+1:width-1, ax = nx+1<width nx+1:width-1; const unsigned int y = ( unsigned int )fy, py = ( int )y-1>=0 y-1:0, ny = y+1<height y+1:height-1, ay = ny+1<height ny+1:height-1; const float dx = fx-x; const float dy = fy-y; const T& a = (* this )(px,py,z); const T& b = ...Show All

  • .NET Development Typed DataSets and Locale

    My application uses a strongly-typed DataSet, which I created using the visual designer. The DataSet itself and the DataTables therein all use my PC's locale - "English (Australia)". When someone whose machine is not running with en-au regional settings tries to run my program, they receive this error: Cannot add a DataRelation or Constraint that has different locale or CaseSensitive settings between its parent and child tables. I have done some poking around and found this feedback entry . The workaround says to change the other PC's regional setting to match the original development box, but that's not really an option for me. I don't wa ...Show All

  • SQL Server SSIS will not start after SQL Server 2005 SP1 upgrade

    Hi guys, I have experienced a problem with a SQL Server 2005 SP1 upgrade, where hotfix.exe reported an error during the SSIS component upgrade, and then the SSIS service would not start back up. I have since attempted an additional SP1 upgrade on the server, which completed successfully, however the SSIS service still will not start. The server is running Windows Server 2003 Standard Edition SP1 with SQL Server 2005 Standard Edition (x86), which had been a clean RTM install prior to the SP1 upgrade attempt. The following information was located in the C:\Windows\Hotfix\DTS9\Logs\DTS9_Hotfix_KB913090_0.log file (the servers name has bee ...Show All

©2008 Software Development Network