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

Software Development Network >> Fred h's Q&A profile

Fred h

Member List

Diane D
pst_grant
calmal20
danych
Yuhang
Christian Sparre
Skanda
RobinSpicer
tackett
anjang
xRuntime
sachhha
Andreas Jaeger
Gert-Jan van der Kamp
Ron -N
David Smit
druidly
ronnniea
Brian Gullo
Bendas
Only Title

Fred h's Q&A profile

  • Windows Forms Combobox - set value from recordset

    I have been writing apps in Access for years but .Net is driving me crazy. I have a form to edit an existing record in an Access back end. I like to use combo boxes to display the current value and allow the user to change the data within the list of the combo box source. I've managed to get the comboboxes to have a record source based on an access table having the integer value hidden and the understandable-by-humans value as the display column. Having pulled the record to be edited into the form I cannot set the combo boxes to the current value of the record in the recordset. I'm trying to use the code like: Me.MyCombo.ValueMember = MySet.Fields("MyValue").Value The compiler tells me that Option Strict On w ...Show All

  • .NET Development Creating new threads in static constructor

    I have the following test program: static void Main( string [] args) { new TestThreadPool (); Console .WriteLine( "Done" ); Console .Read(); } In the "TestThreadPool" class I create a new thread which outputs a message, sleep, then return: class TestThreadPool { public TestThreadPool() { WaitCallback callback = new WaitCallback (MyCallback); ThreadPool .QueueUserWorkItem(callback); Thread .Sleep(10000); } private static void MyCallback( object state) { Console .WriteLine( "in callback" ); } } This of course works as expected: I immediately get the message "in callback" written to the console; then, ten seconds ...Show All

  • Visual Studio 2008 (Pre-release) Add Formatted text to TextBlock?

    hi there, i want RichTextBox to edit  text  and display that formatted  text in the TextBlock. how to add richtextbox content to textblock richtextbox contains blocks and textblock accepts inlines how to convert blocks to inlines and vice-versa  or is there any other way thanx advance, srissh lester, that was really useful ..it's working and no need of any convertions hell....u made so easy & simple and thanx to Lee too and thanx to pmarreddy thanx alot srissh ...Show All

  • Smart Device Development Picturebox resize scrollbars

    Hi. if I have an image showing in a picturebox, of course depending on the image size itself, if the image is larger than the screen, I have told it to resize the picturebox to the size of the image. This is all cool, and shows me the vertical and horizontal scroll bars. problem is, I am unable to scroll through the picturebox. How can I scroll through the picture box so I can view the image didnt really think it would matter but I guess it does! But thought it still wouldve had the same functionality - scrollbars appear therefore you should be able to scroll. :-) ...Show All

  • Visual Studio 2008 (Pre-release) Native PODs in C++/CLI as MC++?

    Hi, It seems with a refocus of C++/CLI, that Orcas may improve C++/CLI for the interop scenario (i.e. the bridging between native and managed code); as mention in this thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=970938&SiteID=1 ... So, have you guys taken a fresh look at feedback # 114649: Feature regression from MC++ to C++\CLI (unmanaged PODs are not supported in ref/value classes); http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=114649 This is such a blocking issue for us, as we desperately want to migrate our MC++ code over to C++\CLI. I know that Brandon Bray and/or Herb Sutter talked about this grandiose dual memory class layout to allow mixed types, but I don't need this to work ...Show All

  • Smart Device Development problem in accessing the data

    hi all, coming rite to the question.. well i'm passing  arrays of string from my managed code to my native code .. TCHAR* a[20]; //globally declared int i=0; //global extern "C" _declspec(dllexport) int passstring(TCHAR* f) {       a = f;  / / other codes to process the data       i++; } extern "C" _declspec(dllexport) void shownum() {      for(int q=0;q<i;q++)     {         MessageBox(NULL,a[q],TEXT("prnting_num"),MB_OK);      }      }              i'm ...Show All

  • SQL Server LDAP vs ADSI parameter problem Part III

    Dear friends, In LDAP query inside SQL Server, How can I return more than 1000 rows It's a limitation in this type of queries... Someone know to return more than 1000 rows Thanks! ...Show All

  • .NET Development Validate an Image from part of a bitmap

      I am working on cropping a part of the existing Bitmap image and test whether the cropped part is present  in another image or not. I have no problems cropping a part of the bitmap, but its getting hard on me to test its presence in another bitmap image. Can anyone help me out of this Thanks I am working on mobile Phones applications. VSTO doesn't really come into picture here. But my concern is, Is there any method (or command) in Visual Studio.NET which helps me to check whether a cropped part of a bitmap is present in another bitmap ...Show All

  • SQL Server Problem - cannot connect; but I know this should work ! AHA!

    Hello - I've setup SQL Server 2005 from scratch over half a dozen times now. I have remote connection down cold. Install the SQL Server. Run Surface config. Enable remote connection over TCP/IP and named pipes. Set up client alias. Restart SQL Server. (I install for mixed mode every time.) Every time this has worked up till now. Start up SQL Server Mgmt Studio, select the server to login to, enter the sa user name and password, boom, you're in. This time I cannot get in. Connection is denied both for sa and windows authenticated login as Administrator. This is the two line dump from event viewer - the first is an audit problem, the second is the error. Event Type: Failure Audit Event Source: MSSQLSERVER Event Category: (4) E ...Show All

  • Visual C# DataGridView and media files

    Hi I want to have a column in a datagridview, which contains various mediafiles such as text, audio, video (it can be any). Now if a user clicks on such a cell - let's say it's an audio file - I want the standard media player to open and play this file. The datagridview gets its data from a database. It should work similiar to Explorer (or any other file manager), where I click on a file and the corresponding application is opened to view the file. Is this possible How Thanks! you need to get the cell value they clicked on and pass the contents of that cell to the Process.Start() method as suggested but of course, it must be a valid path to the file as well as being a valid registered file type for ...Show All

  • Visual Studio Feature request: Referencing Code Samples

    I often add example-code to the code comments showing how to use a certain function. The problem is that if I refactor the code, the example will be incorrect and there is no way of checking the example code with the compiler. Usually what I do is creating a bunch of methods that uses the functionalities and copy/paste that over into the summaries. This is a pretty stupid way of doing it though (because of the human factor involved). So this is what I propose: 1. Create a code sample file that compiles, and has parts of the code marked by regions: public void Example1() { #region Example1 myObject = new myObject (); myObject.Invoke(); #endregion } 2. Reference the region in the code summary: /// <example>Create a ...Show All

  • .NET Development Enterprise Library for .NET Framework 2.0 - January 2006

    Enterprise Library for .NET Framework 2.0 - January 2006 i find it annoying i cannot find a vb version of that. how come The Enterprise Library is not yet available as Visual Basic source code. Tom Hollander asked about what people what like to see most in the next version of the Enterprise Library and Visual Basic source code was one of the topics that he mentioned. The best way to express your opinion at this time would be to take the Enterprise Library 2.0 exit poll . ...Show All

  • Visual Basic How to ref. form in VS2005 ?

    Hi, In VB6 I can pass the form reference as following to display tip msg on any form which has txtTips.text 1. Call Display_Tip(Me, "Show this message") 2. Sub Display_Tip( f as form, sMsg as string) f!txtTips.text = sMsg End Sub 3. How can I do this in VS2005 Thank you very much for your help. KN Hi Ahmedilyas and Spotty, First of all thank you very much for your quick reply. Unfortunately, both methods are not working and the same error message when build project as follow: txtTip is not a member of 'Systems.Windows.Forms.Form' Any advices are appreciated. KN ...Show All

  • Visual Studio Express Editions How To Open Window In Internet Explorer When we click on link on any website

    I am developing application which downloads file from internet. I want to know that how to open a window in internet explorer in any website when user clicks on any link. Thanks in advance Regards Ketan Hi, Figo Fei I am devloping winform application. Its main objective is download files from internet ( such as .exe or .zip ). Its purpose is to faster the download process. To do this the first step is how to open my Form ( Download Window ). when user clicks on any link which downloads files from internet ( such as .exe or .zip ). I hope the idea will be clear Thanks in advance Regards Ketan ...Show All

  • Visual Studio Express Editions Browser waiting

    I'm trying to put together a relatively simple script for a webbrowser game that provides a service in-game by interacting with the site and doing some stuff with the material within it. I have gotten around most of the problems of how to make it work, but there's one thing that I don't know how to do properly: making the script wait for the browser. In short: I'd need some way of making the script check that the browser has finished downloading the page before attempting to do anything else. Here's a snippet of what I currently have: Public Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles MyBase .Load WebBrowser1.Navigate( "http://www.WEBSITE.com" ) End Sub ...Show All

©2008 Software Development Network