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

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

RobD

Member List

Chris R Jones
Grayson Peddie
Martin Mason
RayB1
Abandah
Sean A.
Charlie Cronin
Amethyste
Cunyue
MarkCooper
James Hunter
Leo De Candia
phpbutcher
MarcBoisson
SilverwingsTXN
Dan.B
Googlesyrop
dhurwitz
Oskar Gotte
George Kondiles
Only Title

RobD's Q&A profile

  • .NET Development How does the CLR get loaded?

    Hello everyone, I have a general question in the context of .NET frame work. In Java, you invoke the Java runtime by specifying c:> Java XXX.class on the command line. This basically gets the java virtual machine running and it executes the XXX.class by converting it to native machine code. Isn't the CLR in .NET frame work same as the Java virtial machine. If that is the case how does the CLR get invoked, meaning when I run a Assembly(.exe) generated from lets say Visual basic .NET, I only run the Assembly on the command line. so on  the command line I would say c:>MyProgram.exe How does the CLR get invoked, so th ...Show All

  • Audio and Video Development Resources on Media Foundation?

    Are there any good resources or articles to help someone get up to speed on Media Foundation There is some preliminary Media Foundation documentation in the February CTP for Vista: http://windowssdk.msdn.microsoft.com/library/default.asp url=/library/en-us/MedFound/html/0d355ad1-d674-432e-809a-9fb27ac5f610.asp Some of this is out of date. Look for updates in Beta 2. ...Show All

  • Visual C# Elements in one Array (or Collection) But not in another

    I apologize again for bringing up perl in context of C# but... In perl if I have two arrays and want to know what elements are in one but not the other I could do the following (assume @a & @b are already populated): my %seen // lookup table (hash) my @aonly //answer //Build lookup table @seen{@b} = (); foreach $item (@a) {    push (@aonly, $item) unless exists $seen{$item}; } Another way that might make more sense: %seen //Lookup table to test membership of B @aonly //answer //Build lookup table foreach $item (@b) {$seen{$item} = 1} //Find only elements in @a and not in @b foreach $item (@a) {    unless ($s ...Show All

  • .NET Development hwo to set to avoid the SecurityException ...?

    ************** Exception Text ************** System.Security.SecurityException: Request for the permission of type System.Windows.Forms.SafeNativeMethods.IFont.GetHFont()    at System.Windows.Forms.Control.ActiveXImpl.get_AmbientFont()    at System.Windows.Forms.Control.get_Font()    at System.Windows.Forms.Control.GetParentFont()    at System.Windows.Forms.Control.get_Font()    at System.Windows.Forms.ButtonInternal.ButtonBaseAdapter.CommonLayout() ******************************** I'v used ".NET Framework 2.0 Configuration" tool, new a Permission set and set permisson "User Interface" "Grant ...Show All

  • Visual Basic Toolbar buttons fail to recieve buttonclick event.

    I just discovered a nasty quirk that can mysteriously kill toolbar buttons. If you raise a MessageBox while processing the Load event while launching a form, the toolbar buttons on the form no longer receive the buttonclick event after it appears on screen. They depress and display tooltips, but don't produce any action. I am using Visual Basic .NET in Visual Studio 2003.   This actually makes sense, since a dialogue box is system modal and disables other controls. You can emulate a dialogue box by implimenting a small form, and doing a .show on it. This won't disable the other controls. ...Show All

  • Windows Forms August Winform designer blows up

    I installed the August CTP, and tried opening an existing project (last built in July CTP). When I try to open any of my forms, I get the following error,  One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.   A reference to the component 'System' already exists in the project.     After that, I get a stack trace, which might be useful for the people at MS, but doesn't show me how to fix the problem. Anybody else see this, and know how to fix it Thanks, Mike Hmm. Exiting and restarting Vis ...Show All

  • Visual FoxPro Image in a Grid

    Hello, I would like to show 3 different images in a gird. My data source is a table, the data type is character "E" for an error image, "O" for an OK image,"N" for a new image The picture property in the image control is "path\" + table.status +".bmp" It works, but all images are the same, like the first record number. (eg. N) Can somebody help me` Thank, Manuel Hi Manuel. "E" for an error image, "O" for an OK image,"N" for a new image I assume that you have added 3 separate imag ...Show All

  • Smart Device Development stop reading the record

    Hi i have the folling code to read the data from database, Inside my while loop (myReader.Read()) How can i stop it once the first record was read, and the user can decide to continue or terminate the while loop. connLocal.Open() mySqlCommand = New SqlCeCommand mySqlCommand = connLocal.CreateCommand mySqlCommand.CommandText = "SELECT * FROM Product WHERE Brand = '" & cboBrand.SelectedItem & "'AND ProductName = '" & cboItem.SelectedItem & "' " myCommandBehavior = CommandBehavior.CloseConnection myReader = mySqlCommand.ExecuteReader(myCommandBehavior) Wh ...Show All

  • .NET Development Problem Read form the serialport

    Hi, iam trying 2 read data from the serialport but everytime i run my program it freezes. is this the right way 2 read data from the serialport or is there anything els i have done worng iam trying to view the recived data in the Listbox Imports System.IO.Ports Public Class Form1 Dim inString As String = "" Dim Ports As New Collection   Private Sub Form1_Load( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles MyBase .Load End Sub Private Sub TextBox1_TextChanged( ByVal sender As System. Object , ByVal e As System.EventArgs) End Sub ...Show All

  • Visual C# Can I convert an array to an actual arglist ?

    I have a varibale arguments unmanaged function in C++ which I can call with variable number of arguments from C#. however if I don't know the number of arguments I need to pass, how can I add them dynamically to the list of varargs e.g. void function( object[] objects) { String format; // build up the format string based on the object types ... printf(format, objects ) } I don't clearly understand your question, but if you want to build-up an string array and then pass this as an argument use: ArrayList buffer = new ArrayList(); // TODO: Add string's to buffer; buffer.Add( &quo ...Show All

  • Visual Basic Reading INI files

    I tried using search and the help feature in vb 8 but could not find any matches on this subject. I want to read info from an ini file. Is there an API I could use to get this done Or is there an easy way to do it with vb 8 Thank you. See this link- http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=418711&SiteID=1 ...Show All

  • SQL Server reporting services document doesn't load

    when i try to view a reporting services document from the client pc to server's report website, the report attempts to load and just returns an empty screen the report works when i access it through http://reportservername/reportserver it does not work when i use http://reportservername/reports it also works both ways when i'm on the server's desktop but it does not work from my laptop am i missing a security setting the logs show nothing and i get no errors ...Show All

  • Visual C# Nullable type testing against null

    I need to test if a Nullable<T> instance is null after it's been converted to an object. My current code fails using this: using System; using System.Collections.Generic; using System.Text; namespace TestNullable {   class Program   {     static void Main( string [] args )     {       System.Nullable< int > n = null ;       object o = n;       if ( o == null )       {         Console.WriteLine( "IsNull" );     &nb ...Show All

  • Visual Studio 2008 (Pre-release) Line Cross

    Hi there, what's easiest way to detect a line cross (without calculating it 'manually') I have 2 lines, need to detec whether they are crossing. Thanks Maybe this sample could help you… http://www.windojitsu.com/blog/tictactoefx.html http://www.windojitsu.com/tictactoefx/tictactoefx.xbap That’s a really great InkCanvas sample! This sample finds out if two lines in the InkCanvas is a X or a O via this methods TicTacToe.Recognizer.IsX() and TicTacToe.Recognizer.IsO(). And the IsX method checks if the two lines cross each other. (intersection) ...Show All

  • SQL Server 32-bit UDA fails on 64-bit with large dataset (worked before)

    Hi. Could someone please help me I have a 32-bit UDA that concatenates strings with a delimiter. My platform is WS 2003/64, 1G RAM, SCSI, SQL 9.0.1399. When running the uda on a small dataset, say: select dbo.UDA(name) from sys.objects it works fine. But on larger datasets it says: The statement has been terminated. Msg 0, Level 11, State 0, Line 0 A severe error occurred on the current command. The results, if any, should be discarded.   DROP AGGREGATE UDA go DROP ASSEMBLY StringSumAggregateAsm go CREATE ASSEMBLY StringSumAggregateAsm FROM 'D:\Aggregates.dll' go CREATE AGGREGATE UDA(@input nvarchar(max)) RET ...Show All

©2008 Software Development Network