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

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

Adrian_Moore

Member List

Roadkill
Shearman
Sairam_1974
Jo Molnar - MSFT
anku
skg1063
Nate Smith6744
Zycl0ne
larsbg
S_R_M
Steve Hudson
Zolt
Chicho Mendelevio
ShaneCourtrilleDev
Choccie_Mark
LazyCat
Codewarrior3
BillForShort
Bob Morris
qattack
Only Title

Adrian_Moore's Q&A profile

  • Smart Device Development first chance exception of type 'System.IO.IOException'

    Surely this shouldn't be happening!  The following code creates a connection, DataAdapter & DataSet, then fills the DataSet.  the myDataAdapter.Fill creates a 'first chance exception', whatever that is Imports System.Data.SqlServerCe Public Class Form1     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load         Dim myConn As New SqlCeConnection("Data Source = \my documents\MASDB.sdf")         myConn.Open()         Dim myDataAdapter As SqlCeDataAdapter = ...Show All

  • Windows Forms async sockets

    Hi, I'm running into problems with using async sockets. I've only recently started playing with these so I'm a real novice at this. My server is pretty basic for now. It accepts a few commands and sends back appropriate response. For ex. when it receives "date" it sends back today's date etc...  Anyway, my client is able to connect to the sever.&n ...Show All

  • .NET Development How to get Physical path from a mapped drive in dot net

    I need to implement this into a web application. i kow it is possible vis console application but that doesn't give client side information. Is it possible to get Client side mapped drive's phsyical path No, that would be a big security hole.. (and secondly, webclient-spectific operations are made by client-scripting like javascript, not by .NET) ...Show All

  • Visual Studio 2008 (Pre-release) Hosting WCF in a Windows Service?? "No endpoint listening exception"

    Hello, I'm working on an ASP.NET application that i want to host using WCF using "basicHttpBiniding" . The hosting should be done in a windows service. I've did a test by hosting the service in a console application (instantiating a ServiceHost in a console application project), everything worked fine. The same project is now transferred to be a windows service, i receive an exception "There was no endpoint listening at http://localhost:8000/HelpDesk/HelpDeskService that could accept the message. This could be caused by an incorrect address or SOAP action, among other things." Debugging teh service shows no errors b ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Creating FullScreen Application without DXUT

    Hi, i am trying to create a fullscreen application but when i set the PRESENTATION_PARAMETERS.Windowed to False the Application fails. what i have to set to make it work here is a piece of my code: //WINMAIN: wc.cbSize = sizeof (WNDCLASSEX); wc.style = CS_HREDRAW | CS_VREDRAW; wc.lpfnWndProc = MsgProc; wc.cbClsExtra = 0L; wc.cbWndExtra = 0L; wc.hInstance = hInst; wc.hIcon = LoadIcon(hInst, (LPCTSTR)IDI_MAIN_ICO); wc.hIconSm = LoadIcon(hInst, (LPCTSTR)IDI_MAIN_ICO); wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = NULL; wc.lpszMenuName = NULL; wc.lpszClassName = StrWindow; RegisterCla ...Show All

  • Windows Forms use a variable to cycle through textboxes

    I have about 15 textboxes, all of which I want to save in a string array. Right now I just code: array[0] = txtbx1.text array[1] = txtbx2.text.... and so on. Is there a way that I can use a for loop and use x  instead of 1 and 2. so it would look like this:   For( x=0;x<=15;x++) { array[x]=txtbx + x.text; } instead of writing it 15 times Thanks. Use the Controls property of the form to get a collection of all controls on a form. The following code iterates through all the controls on a form. If the control is a textbox, it adds the text property of the control to the ar ...Show All

  • Visual Studio Express Editions ComboBox.ObjectCollection.IsReadOnly Property

    Hi, How do I set the combo box to read only. I have found a topic on this using the, ComboBox.ObjectCollection.IsReadOnly Property, but not sure how to code this. Ron I assume what you want to do is to force the user to pick only certain selections rather than just typing in what she thinks is appropriate. Set the DropdownStyle property to "DropDownList" and populate the Items property with the choices you'll accept. ...Show All

  • Visual C# input box

    There is a input box in vb.NET is there one in c#. If so can you give me an example No there isn't. But you can create an form with only a TextBox on it and some dialog buttons. Here is an example: using System; namespace MyNamespace { public class InputDialog : System.Windows.Forms.Form { private System.Windows.Forms.TextBox txtInput; private System.Windows.Forms.Label label1; private System.Windows.Forms.Button cmdOK; private System.Windows.Forms.Button cmdCancel; public string Value { get { return txtInput.Text; } set { txtInput ...Show All

  • Windows Forms How to make a copy of ToolStripItem

    Dear all, In order to make a copy of ToolStripItem which contains whole features of orginal ToolStripItem (events, properties ...). I look at some article which have property clone support copy object. However, i don't know how to do. Every body have done my issue before please give me your ideas. Thanks for your help. Hi TaylorMichaelL , This is the first situation so I have make a lot of problem, your idea approriate with me. Please give me example code or links. Thanks a lot. Steven. ...Show All

  • Software Development for Windows Vista Speed difference between GraphEdit and custom application

    Hi, wonder if anyone has encountered this problem. I have a custom transformation filter, which runs basic thresholding computer vision algorithms. In GraphEdit, it uses 47% of CPU capacity and runs very fast, but when loaded into my custom application, uses 99% of CPU capacity and runs very slow. I use an Acer Travelmate 8104 2GHz Centrino. The obvious culprit is the application, which I initially wrote in C# using DirectShowLib from sourceforge.net. But when I wrote a basic application in Visual C++ using native libraries to test that theory, I had the same problem. So, something else is causing a massive speed drain. A search of the we ...Show All

  • Visual Studio Team System Connecting to work items with project

    I have been un successful with either b3 or the refresh in getting project to connect to the work items database.  Every time I try it comes back immediately saying there was a problem accessing it.  I see my work items in the 'all work items' query in VS..  Is this possibly a config issue   FYI I am on a remote subnet in a site to site vpn (routed) scenario.  Thanks, Ingram Barclay This issue has bee frustrating me to the point of charring my nerve endings.  I have spent around ten hours trying different ways of connecting to the remote server, and still have no solution.  ...Show All

  • Software Development for Windows Vista Using .NET to get data from another process/window

    Sorry for asking so many questions in one day, but I'm a little bit new to programming in a Microsoft environment so you may see me around quite a bit. Essentially I want to program an application that will listen for a specific keystroke combination/hotkey regardless of the focus of the window currently, and when it hears it to look in the focused window and do something with the currently highlighted text. I really don't know how to do either, I suppose I could use DirectInput to do the first but there has to be an easier way than that. Regarding the latter, I know there has to be a way because I've seen a couple of appli ...Show All

  • Visual Studio Team System property evaluation order (beta 3)

    Why is the following not working I tried moving the Import of the M icrosoft.TeamFoundation.Build.targets from the top of the build file to the bottom, but it had no affect. Our environment has separate TFS and Build servers. I'm using TFSBuild.exe to kick off the build through a batch file. This article describes http://msdn2.microsoft.com/en-us/library/ms171464.aspx the order of evaluation but it isn't working. I also tried moving the RootProjectFolder property to a a new <PropertyGroup /> element. The affect is that only the first <PropertyGroup /> element is evaluated before the build is "kicked" off. An initial round of e ...Show All

  • Visual C++ how to use Sendmessage to an active window (ms excel,ms-word)

    How a message can be send to an active window using sendmessage on an keyboard event ex: if 'a' is pressed on the key board the i have to send ASCII character 209 to the active window ...Show All

  • Visual C# Dynamically changing the icon size based on screen size (mobile UI)

    Hi I am Shyam Manohar. In my project i have to design iconic based UI for a mobile application and i have deployed the code in various emulators available on .NET CF 2005.But as the screen size is different for different mobiles ..i have to scroll for clicking on a particular icon. My question is how can i change the size of icons dynamically according to the screen size of the mobile on which it is deployed.Is there any built in method in .NET CF to deal with this. hi First calculate the screen size or u can say pixels..... there will some API for this after calculating the size u can adjust ur icon size.. like ...Show All

©2008 Software Development Network