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

Software Development Network >> Francis Shum's Q&A profile

Francis Shum

Member List

some1sxi
D. Omar Villarreal
Michelle A.
Dan Mikkelsen
Will Merydith
Yong Hwee
Fariba Ahvaz
Marshes
TA123
thechristopher
HitmanPL
KidVB
Yones
rogupta
sroughley
Tom v E
zingsb1
Penicillin
Gazuga
Daikoku
Only Title

Francis Shum's Q&A profile

  • Visual Studio Where can i get VS2005 for free?

    Hello, Where can i get VS2005 for free I am student of High school and i am looking for some studying program where would i can get VS2005. I found http://theSpoke.Net but that's not longer available. I was also looking for MSDN AA, but that's for University or College, but i am studying High school. Any another chance how can i get copy of VS2005 for free I was using VS Express, but that's not support addins and i haven't chance develop for Windows Mobile and these two things are what i want. Sorry for my poor english, i am still learing. Thanks for help.   ahmedilyas wrote: you can't get the full VS For free, you must purchase it either from your retailer store or the internet, ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Delay garbage collection?

    In managed code, I understand that GC is performed at times which are hard (if not impossible) to predict, which can somtimes damage framerate performance. Is it possible to postpone GC until a time where the programmer would see fit For example, when the camera is not moving. No, garbage collection fires when the GC logic decides that it needs more memory. However it will only happen at a point when new memory is allocated so if you told new any objects (value types don't count) then you will never get a GC a GC level 0 will not be noticable in your game so you should work to only have those happen. This means either having very long lifetimes and very short lifetimes. Search Tom Millers blog and R ...Show All

  • Windows Forms Datagrid in windows form

    Dear All, I have worked alot on Web application, but I am new to windows application, I have to put checkboxes in front of each row of datagrid in an windows form. how I could apply this feature in windows form. waiting for your suggestions and replies Thanks in advance Shabbir ...Show All

  • Visual Studio How do you disable the MDA tool!

    Hi all, I've been facing the same issue as everybody regarding the MDA debuging message. I just read the following post: This is a bug in the MDA. The timmer keeps running even if the debugger is stopped. The fix would have been to only run the timer when the application is running but that fix didn't make it into the product. This makes the MDA very noisy. This should have ment that the MDA should have been disabled by default in the VS exception dialog but that change also didn't make it into V2.0. The whole issue was discovered too late. So the work around is to simply open up the VS exception dialog and disable that MDA. I cannot disable the MDA in my VSTS using Debug > Exceptions, the flag is ready only. I read another pos ...Show All

  • Visual Basic EMAIL

    I am using this code in vb.net 2005 to sent an email but an error FAILURE SENDING MAIL is allways appearing. Can someone show me where I am duing wrong. Try Dim SmtpClient As New System.Net.Mail.SmtpClient SmtpClient.Host = "localhost" SmtpClient.Port = 25 SmtpClient.UseDefaultCredentials = True SmtpClient.Send("glennzarb@gmail.com", "glenn_zarb@hotmail.com", "Test", "hi") MsgBox("sent") Catch ex As Exception MsgBox("Send failure:" & ex.Message) End Try I haven't installed any other programs or smpt's the code is pretty much the same as you have done, except replacing the email add ...Show All

  • SQL Server Problems Storing Dates

    Hi, I am having problems when storing dates in Sql 2005 from vb.net, I use a SqlCommand like this: Dim xSQL As New SqlCommand(strSave, Conn) xSQL.ExecuteNonQuery() Inside the strSave string there is a DateTime value, all values are stored ok, but the saved date in the SQL server is always 1900-01-01 00:00:00.000 The SQL data type in database is datetime. Any help would be eternally appreciated. Thanks in advance. Hi Denis, I'm sorry but I'm new at SQL Server. This is my sql string modified and works ok: Insert into cl_dates ( setupdate ) Values ( '5/27/2006 11:25:23 am' ) the original date sent by vb.net is: Insert into cl_dates ( setupdate ) Values ( '27/5/2006 11:25:23 ...Show All

  • Visual Studio ReportViewer.ServerReport passing parameters as non-strings

    Winforms, C#, report created on RS2005 I am using the following code to try to load a report from reporting service 2005 to a winform reportviewer. Problem is the report takes datetime and int values as parms. The ReportParameter only allows strings. How can I pass a datetime and int parm values reportViewer1.ProcessingMode = Microsoft.Reporting.WinForms. ProcessingMode .Remote; reportViewer1.ServerReport.ReportServerUrl = new Uri ( ConfigurationSettings .AppSettings[ "ReportServerEndPoint" ]); reportViewer1.ServerReport.ReportPath = "report path" ; DateTime dtPayPeriod = Convert .ToDateTime(txtPayEndDate.Text); int fromDept = Convert .ToInt32(txtFromDept.Text); int toDept = Con ...Show All

  • .NET Development Value was either too large or too small for a Decimal

    I use the following code in an .net 2.0 class Can somebody explain me why the line CALC= with the "hardcoded" number work and why the second one fail with Value was either too large or too small for a Decimal I also got the same problem if I define calcTemp and calcTemp1 as decimal tks Thierry Public Shared Sub test() Dim calc As Decimal Dim calcTemp As Double Dim calcTemp1 As Double Try 'This line work calc = -0.13191864277502802 ^ 4.0054794520547947 calcTemp = -0.13191864277502802 calcTemp1 = 4.0054794520547947 'This line give the exception "Value was either too large or too small for a Decimal." calc = calcTemp ^ calcTemp1 Catch ex As E ...Show All

  • SQL Server SQL 2005 Setup error of 1935

    I am trying to install the client tools on an XP machine. I already had to run the .NET 2.0 repair to get past an earlier problem. 3 components fail, the first one being VS. Here are the highlights of the summary.txt file. What can I do to resolve this TIA! Microsoft SQL Server 2005 9.00.1399.06 ============================== OS Version : Microsoft Windows XP Professional Service Pack 2 (Build 2600) -------------------------------------------------------------------------------- Product : Visual Studio Integrated Development Environment 2005 Error : Error 1935.An error occurred during the installation of assembly 'Microsoft.VisualStudio.CommonIDE,Version="8.0.0.0",FileVersion="8.0.50727.42",PublicK ...Show All

  • Windows Live Developer Forums MSN and problem with bypass proxy server!

    I though that Microsoft and MSN messenger did solved problem with connection behind proxies but it is not true. MSN still try to bypass proxy and connect directly to MSN server. It is same issue with Outlook Express. Help informations say always set IE through proxy server and MSN along with Outlook Express will use same setting but it is not true. The only option to prevent MSN or OE to bypass proxy is socksification of both appz with SocksCap. I still wonder why is that so Why are both application made to bypass proxy server and connect directly to MSN server ...Show All

  • Visual C++ assigning derived class from base class declaration

    Hello; For the following code, know that Poodle is a derived class of Dog, and that aPoodle is an instanciation of Poodle. In the code below, I would expect dogObject to become a pointer to aPoodle, but it doesn't seem to work for me. Instead, dogObject seems to only maintain the attributes of dog. Any idea what I may be doing wrong ____________________________________________________________ Dog *getDogObject() { Dog *dogObject; DogTypes dogType; // an enum of dog types (poodles, hounds, etc..) dogType = getDogName(); switch (dogType) { case DogTypes::poodle: dogObject = &aPoodle; // <======= PROBLEM HERE break ; } dogObject->jump(); // <===== CALLS DOG.JUMP, NOT POODLE.J ...Show All

  • Windows Forms DataGridView row height

    Hi, I need to calculate the height of a datagridview row before it is created, but I can't figure out how to do it. I am trying to fill a datagridview with only as many rows as will fit. In order to do that I need to know how tall the rows are going to be. I guess I could create the first row and then measure it, but I figured there had to be a more elegant way to do it. Thanks in advance. Lee I'm using this code in a scroll event handler to adjust the height of rows that should be visible: int h = DataGridViewCell .MeasureTextHeight(graphics, GetCellValue(sender, i, rowNumber),mainDataGridView.DefaultCellStyle.Font, Convert .ToInt32((columns as Column ).width), MakeFromCellStyle(main ...Show All

  • SQL Server Built-in data types in SQL Express: best practices?

    Greetings, I think these should be rather simple questions, yet I spent a number of hours last night digging through the forums here and msdn and couldn't find any satisfactory answers. Basically, there tend to be types of information that are commonly saved in most databases, like names, addresses, phone numbers, email addresses, etc...and there are a variety of built in data types in SQL Server. What are the best built in datatypes for some of the common entries in a sql database. Also, there are a number of character based types and I am curious why one would be more useful in certain situations than another. Why is there char( ), nchar( ), varchar( ), nvarchar( ) and text datatypes Why so many Also, what is the "text" ...Show All

  • Visual C# "Very" Dynamic Casting

    I'd like to do some "in-line" weird dynamic casting, kinda like this: PropertyInfo AttInfo; AttInfo = ( PropertyInfo )aMember; //aMember is referencing a PropertyInfo. string myDate = "2006-05-04" ; //CMSObject is an instance that has the property referenced by "AttInfo". AttInfo.SetValue(CMSObject, (AttInfo.PropertyType) myDate, null ); In the above code, I've bolded my fantasy-like casting capability. Assuming that the type of the property (referenced by AttInfo) is a DateTime, the attempt to set the property on CMSObject will also automatically try to convert the myDate string into the type of the property (which we'll pretend is a DateTime in this example). Is there a syntax for ...Show All

  • Visual C# How to retrieve value from key

    Hi all, I had a hashtable ht and I had added ht.Add("key1","value1"); May I know how to retrieve value1 based on key1 Thanks The next step is to grab all of the values in a hashtable. This should help. foreach(DictionaryEntry _d in ht) { MessageBox.Show(_d.Key + "-" + _d.Value); } ...Show All

©2008 Software Development Network