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

Software Development Network >> Don Cameron's Q&A profile

Don Cameron

Member List

Tomasz24311
KimberlyL
hazz
Elaine.Wong
schobmich
DJacobson
abhishek_6023
PolkaDance
Janta
ClaudiaHelpOnVSTO
Cactus77
vtortola
JUANCARLOSR
Vinod Sa
DHJr
BluePain
Zach Longren
preps
Serdalis
Coc Patrick
Only Title

Don Cameron's Q&A profile

  • Commerce Server Variant Chooser

    Hi, When the user sees the product detail screen with variants on the site, I would like to automatically choose the first variant in the list. How and where would I make this change. I have the Single Chooser, List Box currently set for parameters. Please Advise. The Sample site comes with a helper class called SelectOptions.cs which has a public boolean property called "Selected". If I were going to do what you mention, I would add a public property to the ProductVariantChooser.cs class called "AutoSelectFirstVariant" and then modify the RenderSingleChooser method so that after the options list is populated I would do something to the effect of: if(AutoSelectFirstVari ...Show All

  • Windows Live Developer Forums The return value problem of map.FindLocation(place,onFoundResults)

    When I use map.FindLocation(place,onFoundResults) to find a place in the Virtual Earth Map, I want to know if the given place is found or not. i use the following code to do that, but it can not get the return value, please tell me how to get a return value from this function. var num; function FindLoc(place) { map.FindLocation(place,onFoundResults); return num; } function onFoundResults(e) { if(e.length==0) num=0; else num=1; } I appreciate your help. Check out the new features (in v3 and v4). In the iSDK, try "Use custom disambiguation", and you'll see that we've finally addressed the location disambiguation problem. The main idea: map.Dis ...Show All

  • Visual Basic Changing screen resolution with VB 2005

    I'm having a difficult time converting a Windows API call that works fine in VB6 to run in VB 2005 (Windows XP with SP2 in both cases). I reduced the problem code down to its core which is below. I'm trying to change the screen resolution with the ChangeDisplaySettingsEx call; the idea is that on entering the program it shifts to high resolution and at the end it restores the original settings. I left the restore part out because I get the same error. Which is "An invalid parameter was passed in. This can include an invalid flag or combination of flags." I'm trying to use exactly the same parameters, but somewhere in the conversion process from VB6 a fatal change crept in. My guess is that it's either in the ByRef/ByVal or Short/ ...Show All

  • Visual Studio 2008 (Pre-release) "Trust not granted" message for Everything permission set

    Hello, My WPF web browser application needs some additional permissions for execution (some of security and reflection permissions). I added them on the Security page of project in Visual Studio. I published my application on IIS web server on my computer. I had to modify Runtime Security Policy in order to execute my application. I created a custom permission set on basis of the LocalIntranet permission set and added required additional permissions there. I set my custom permission set for the LocalIntranet zone and my application began to work after that. But when I set the Everything permission set, "Trust not granted" message is shown. Could you explain me why it happens Everything permission set includes more p ...Show All

  • Visual Studio Team System Why is the "Compare" item disabled?

    I am trying to get a specific version of a file by label. After I key in the lable and select OK, TFS starts the "flying files" dialog (a.k.a. "coffee time dialog") telling me it is getting a list of files to update. Eventually I get a "Reslove conflicts" dialog telling me the local file on my machine is writable and I need to resolve the conflict. So I click the "Resolve" button and a "Resolve writable file conflict" dialog appears. At this point, I only have two options. "Overwrite the local file/folder" and "Ignore conflict". There is a "Compare" dropdown on the dialog but the dang thing is always disabled. It sure would be nice to be able to compar ...Show All

  • Visual Studio Express Editions Referencing instances?

    I've made a few instances of a panel, and I want to make them invisible when I click a certain button. Is there a way to references instances of objects you have made Your problem is that you only want to create one set of panels when the engineer button is pressed. You can do two things one is to display the Engineer button after its been pressed - so it cant be pressed again. The second would be to validate if a control of that name already exists and if it doesnt create it. So you would only create one set of panels. Just some ideas. Which one you choose is down to you. ...Show All

  • Visual C++ Napster Visual C++ Runtime Error

    When starting Napster I now get an Error that says Microsoft Visual C++ Runtime Library Runtime Error Program E:\Program Files\Napster.exe The application has requester Napster to terminate in an unusual way. I have contacted Napster and re-installed it along with updating Media Player 10 and in line with other mentions on these forums I have deleted Google toolbar and Mozilla Firefox. I have AVG free and Zone Alarm as firewall and antivirus and i am running XP student with SP2. I have also deleted DivX video software and Itunes and run spyware tools, MS update and Ccleaner. I still get the above error. Can anybody suggest what has happened or what I may do to get Napster working again. Thanks Tony ...Show All

  • .NET Development Validating xml file with schema.

    Shraddha Gurav wrote : My requirement is somewhat like this: Suppose this is my xml file, which I want to validate using schema. <myroot>      <married>yes</married>      <dateofwedding>1973-10-12</dateofwedding>  </myroot> I would love to have the possibility of having something like this in XML schema: (look at the condition attributes in the dateofwedding element)   <xsd:element name="myroot">  <xsd:complexType>    <xsd:element name="married">      <xsd:simpleType>        <xsd:restriction base="xsd:string">       &nbs ...Show All

  • .NET Development Avoid serializing base class members

    Hi, I have extended System.Windows.Form.Label control and I also implement one additional interface containing some properties. public class MyLabel: System.Windows.Form.Label, IMyInterface { //... } What will be the simplest way to serialize an instance of MyLabel class to include only IMyInterface members. I do not need to serialize any of base class (Label) members. Thank you. Hello, The XmlSerializer will treat the public members of the interface as if they are members of the derived type. In your derived type you will need to put the XmlIgnoreAttribute on all of the public members that you don't want serialized. Daniel Roth ...Show All

  • Visual Studio 2008 (Pre-release) Virtualizing

    I'd like to use the VirtualizedStackPanel to display almost 3000 rows of data. Please see code below. My hope was that since the only controls created were the first few rows that show on the screen the virtualizing panel would return quickly after the 3000 rows were bound to it. In the code below, it does not seem to matter if I set my ListView's VirtualizingStackPanel.IsVirtualizing to True or False, it still takes about 15 seconds to bind the data. This is actually blazing fast compared to WinForms which could never even do this, but I wonder if vitualizing is really working, because it does not seem to be affecting the time it takes to display the control after binding the data. Are my assumptions about the effects of virtualizing i ...Show All

  • SQL Server Truncate or clear the indexes in variable table

    i have a variable table Declare @tbl1 TABLE( RowID INT IDENTITY(1, 1), SerialNoFrom nvarchar(50), SerialNoTo nvarchar(50)) After i delete From @tbl1 the indexes still remail unchange...how can i clear the indexes in variable table. Please advice The index would still exist because it doesnt know you are finished with the table all together. I found an interesting link for you here; http://www.odetocode.com/Articles/365.aspx Also another; http://support.microsoft.com/default.aspx/kb/305977 ...Show All

  • Visual Studio 2008 (Pre-release) TextBlock Style in a Grid

    Hello, I have a rather simple question. I have a grid with a bunch of textblocks. I want those textblocks to use the same style. So I have to go through and copy paste the Style={StaticResource ABC} for each TextBlock element. I have noticed that Grid has some hooks for styling text such as TextBlock.FontSize. Is there a way I can assign my TextBlock Style to the entier grid Thanks Houman It's not that Grid has any kind of "hooks", it's just that TextBlock's FontSize property uses inheritance so that if you apply it to a panel like the Grid, it will be inherited by all the descendants that aren't defining it explicitly. To answer your question though, yes you can apply a ...Show All

  • SQL Server DTS to VB

    Can someone help me please. I am having issues with the following code. This is the first time I am doing this, so it is Brand new to me. Sorry if I look and sound like an idiot. I am having issues with 'DTS.OleDBProperties' cannot be indexed because it has no default property at the following line :oConnection.ConnectionProperties I used DTS wizard to create my vb code and I am following this page: http://msdn2.microsoft.com/en-us/library/aa176248(SQL.80).aspx Can someone please guide me in the right direction. Option Explicit Public goPackageOld As New DTS.Package Public goPackage As DTS.Package2 Private Sub Main() set goPackage = goPackageOld goPackage.Name = "Test" goPackage.Description = "Casier" ...Show All

  • Smart Device Development Using wceload utility in Windows CE

    I used wceload.exe for extract the cab files programmatically. I used /noui parameter for disable the user inputs. But in the case of re installation it shows the message boxes and input boxes. How can I get rid of this problem Detect if CAB is already installed and uninstall it programmatically if detected. That can be done using unload.exe, there’s a description on MSDN. ...Show All

  • SQL Server How to Show Last Admit Date

    I have a report that shows patient information, such as patient number, name, and admit date. It also has a date parameter. I enter in the date and it shows all the patients admitted that day. I would like to show the last date the patient was admitted before the date I ran the report for. For example, if I run the report for 12/20/06, I want to see the patients that were admitted that day and their info like name, and patient number. I would also like to see the last date they were admitted. Could you just do a subquery to get the max date for each patient from before the date parameter Something like this: select ... (select max(admit_date) from patient_admittances pa where p.patient_id = pa.patient_id and admit_date < ...Show All

©2008 Software Development Network