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

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

Gunston

Member List

Rohit Tela
LarryETL
Andrea Pagliano
David Luu
mario gutierrez
Benin
Jack Hoxley
Andy Ho
Rocky79
Richie_C
bflemi3
Lightening
stryjek4
llively
Jimmm
Reza Bemanian
Mitch5713
Mark Crouse
OTNS
VladR
Only Title

Gunston's Q&A profile

  • Smart Device Development Scanning SDK in Compact Framework Issue

    Hi all, I have found an issue with the Imaging/Scanning SDK that the Compact Framework uses and would like to report this issue with Microsoft. How exactly do I go about do this Thanks Tryst The issue is that when I make use of the Symbol scanning (or imaging) API on the MC50 device in my application, and the device memory goes lower than around 7.50 MB (its got the memory slider indicating free program and storage memory on the MC50) I get a SCAN_ENABLE exception. When I get this, it means the scanner is screwed (disabled) until a soft-reset is performed on the device. I guess it doesn't free up all the resources when gets the first error. Symbol have told me that its the compact framework issue (what ever they use for the imager/s ...Show All

  • SQL Server Simple Date Formatting Questions

    Hello all, Need some help formatting a date.. Simple but I am not sure of how to do expressions in SQL report service, new to the product. So here it is.. In my expression box I have =Fields!ServiceDt.Value this returns mm/dd/yyyy HH:mm:SS I want it to return YYYYMM any help would be great. Just need to know the code for the expression box!! Help! Thanks everyone, you guys are always great help Also for anyone else here's an article on setting default dates in reporting services: http://jhermiz.googlepages.com/defaultdatemsrs ...Show All

  • Visual Basic Cannot launch .NET from VB6 using Interop Toolkit

    Hi, I am trying to investigate the Interop Forms Toolkit but I seem to have run in to a problem. I have followed the docs on how to create a .NET forms interop assembly and I created a very simple form as a test. The form was correctly marked with the InteropForm attribute. I generated the wrapper classes fine. Everything builds. I create a new VB6 exe, added a reference to the Interop Forms toolkit and my custom .NET forms assembly. I added the relevant declarations for the InteropToolbox too. Intellisense is working as I could see my library and form types when declaring them. The problem is that when I execute the code below: Dim f as New SimpleForms.InteropForm I get an error: Runtime error: 429 ActiveX compo ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Extra strip line

    Have noticed a little thing. I am drawing my background image in fullscreen mode placing it at 0,0, with backbuffer size. If at the same draw time graphics.GraphicsDevice.Clear (Color) method is using, clscolor stripline in one pixel width is seen at the top and utmost left lines. It is not sufficient in this case though, you can set Color.Black or not use this method at all. Strange thing is going on. Failed to represent this situation today - was curious to put on the presentation surface 3d object and see the result at extra lines. Unfortunately I have not saved the exactly state of my project and list of all programs running at this point yesterday. So I'll have an attempt once more today. But I have ch ...Show All

  • Visual C# input data to website

    Ok right now I have to configure routers manually by inserting the exact same data into a router's configuration panel (website on router) then swap out the configured router with one that needs the exact same setup and redo this process over and over. I would like to write an application that fills in all the needed boxes,selects values from drop down menu's and fills in any other information and presses the save & restart button for me is this possible I initially though about trying to find the file on the router that its writing to thinking making its one config file maybe if thats the case I could just write to the file but im not entirely sure. it's a tricky one really since you need to know wh ...Show All

  • Software Development for Windows Vista In July CTP, using StateMachineWorkflowInstance to obtain CurrentState freezes workflows in that State

    Dear all, I have a working StateMachineWorkflow hosted under asp.net 2.0. I have written a simple routine (shown below) to interrogate the current state of a workflowinstance: public string WfCurrentStateDescription(string WorkflowInstanceId) { // Get the workflowRuntime which was started in global.asax WorkflowRuntime wfRuntime = (WorkflowRuntime)Application[WorkflowRuntimeKey]; StateMachineWorkflowInstance wfInst = new StateMachineWorkflowInstance(wfRuntime, new Guid(WorkflowInstanceId)); return wfInst.CurrentState.Description; } I find that, once I have called this on a workflowinstance, that instance gets "stuck" in the current state and never transitions to the next state, even though code appears to get c ...Show All

  • Visual Studio Assemply info task must be installed for all developers?

    Must the assembly info task be installed for all developers (As the < Import Project = " $(APPDATA)\Microsoft\MSBuild\AssemblyInfoTask\Microsoft.VersionNumber.Targets " /> is added to the project file) Also when I start the app from debug configuration from Visual Studio it modify the assembly info file. Can I only make this happen when I start from Team Build Or will this only happen the first time (I have not run team build yet). I was thinking about modifing my proj file as described in Guatam Geoenka's blog to get the assembly info task to work with team build. Milzit wrote: Must the assembly info task be installed for all developers (As the < Import Project = " $( ...Show All

  • SharePoint Products and Technologies Worklow association to Content Type by CODE

    I am facing with a problem when I tried to associate a workflow to a Content Type through code. I want to create a Content Type that has a workflow associated to it. Later on when users can add this Content Type to their libraries, the document inside libraries can initate this workflow. I have done all the SPWorkflowAssociation bit and have done the ContentType.AddWorkflowAssociat ion(association) stuff. Everything seems to be working ok. I then added the Content Type to a newly created Document Library. And then I newed a document with that Content Type, the document item has a Workflows button (from the pull down menu)--this leads me to think that the Workflow has been successfully associated to the Content Type. But when I ...Show All

  • Visual Studio how can i use the DiagramView to develop application in out of VS Addon .

    HI all. i will build a custom workflow designer in my application for my end customer. the VS SDK 's diagram components is so cool, and can i use these components like DiagramView in my application thank in advance Hi again Matt, 1) We haven't made this decision yet although we will certainly re-examine the requirement in future. 2) I'm afraid I don't understand what you mean by this. ...Show All

  • Visual C++ Open a Form from within another Form

    Please can someone help me. I'm using VC++ Express 2005 to develop a windows GUI style application and I'm having a bit of problem. I have a form (form1.h) which has a button in it. When a user clicks on a button I want to call up another window (form2.h) in the style of a pop-up box type thing in which to have more GUI items and features. What code do I need to put between the braces (see below) to run when the button is clicked in order to achieve this Or is there a better way of achieving what I want Any advice would be appreciated - thanks in advance. private : System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) { } ...Show All

  • Smart Device Development Multiline Textbox on WM5 workaround?

    I know that multi-line textboxes have problems on WM5 w/ .NETCF 1.0. Unfortunately WM5 Smarphones all ship with 1.0 and i can find a simple way to build a cab that would do the upgrade to 2.0 (if i'm wrong on this, please point me to a resource) and without a single click install, 2.0 just isn't an option. So i've created elaborate hacks to work around the paint issue, but every hack creates a new problem. Problem 1: When the multiline textbox draws it doesn't paint its entire background Hack 1: custom control which hides the textbox, paints its background then using a timer shows the textbox (now i can control that background paint and the textbox looks fine. Problem 2: Now the background paints, but T9 pop-ups on different phones will ...Show All

  • .NET Development DataRowCollection.Add in .NET 2

    Hi, my name is Iram. I'm upgrading my winform application which was developed in .NET 1.1 to .NET 2. There is a code section that works well in .NET 1.1, but in .NET 2 raises an Exception of:{"Object reference not set to an instance of an object."} System.Exception {System.NullReferenceException} The code is: DataRowCollection rc; DataRow newSearchRow; rc = searchQuestions.Rows; newSearchRow = searchQuestions.NewRow(); newSearchRow[1] = 0; newSearchRow[4] = "Search Questions"; rc.Add(newSearchRow); <--This row execute the Exception Explanation: The 'searchQuestions' is an instance of an object that I wrote that inheritance from DataTable and has several columns. Does any one have any suggestion Iram ...Show All

  • Visual Studio 2008 (Pre-release) CollectionDataContract OnSerializing not called

    Is there a way to hook into the OnSerailizing event of a collection I've tried: [ CollectionDataContract ] public class EntityCollection : Collection < Entity > { [ OnSerializing ()] private void OnSerializing( StreamingContext context) { //never called } } This is not supported in WCF v1. A possible workaround for this scenario would be to wrap the collection in a [DataContract] class and implement the callbacks on that class. ...Show All

  • Visual Studio Express Editions Output to Textbox adds zeros

    Here is the code Private Sub Receiver(ByVal sender As Object, ByVal e As SerialDataReceivedEventArgs) Handles COMPort.DataReceived Dim RXByte, Nibble As Byte Dim RXArray(2047) As Char Dim I As Integer = 0 Dim J As Integer = 0 While COMPort.BytesToRead > 0 RXByte = COMPort.ReadByte Nibble = (RXByte >> 4) + 48 ' Convert received byte to Hex If Nibble > 57 Then Nibble = Nibble + 7 End If RXArray(I) = Chr(Nibble) I = I + 1 Nibble = (RXByte And 15) + 48 If Nibble > 57 Then Nibble = Nibble + 7 End If RXArray(I) = Chr(Nibble) I = I + 1 End While Dim RxString2 As New String(RXArray, 13, 7) TextBox1.AppendTe ...Show All

  • Visual Basic how do i use a veriable as a textbox name

    i am tring to pass a veriable to a other sub and then that sub uses that veriable as a textbox name Public Sub Casess( ByVal nu) Dim n1, n2, n3 As String Select Case (nu) Case 0 n1 = Form1.S631.Name n2 = Form1.S632.Name n3 = "" Cal(n1, n2, n3) Case 1 n1 = Form1.S501.Name n2 = Form1.S502.Name n3 = Form1.S631.Name Cal(n1, n2, n3) This code set the virables as the name of the textbox Public Sub Cal( ByVal n1, ByVal n2, ByVal n3) If Form1.n1.text >= "0" Or Form1.n2.text >= "0" Then If Form1.n1.Text = "" Then Form1.n2.Text = "0" ElseIf Form1.S92.Text = "" Then For ...Show All

©2008 Software Development Network