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

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

gavjohn

Member List

ZergaKilla
macyp
ReLoad
Armela
Mr.Bean
khawaja
renyx
ttme
rs12345
ONeill
eyeseesharp
Florian Storck
Andy Johnson
utterlyconfused
INTPnerd
aKzenT
LankyNibbs
dummies
ktto
Virtual Reality
Only Title

gavjohn's Q&A profile

  • Visual Basic Printing the whole form, and not just the visible part

    Im sorry if this has been posted before, but im desperate for an answer. The problem I have is that I want to print the whole contents of an mdi children form, but im just getting the visible part. What I need is a method to print even the part that you need to scroll down to see. As it is now, im using this subroutine to generate a bitmap of the form. Private Function GetFormImage() As Bitmap ' Get this form's Graphics object. Dim me_gr As Graphics = ChildForm.CreateGraphics Dim s As Size = ChildForm.MaximumSize 'ChildForm.ClientSize.Width ChildForm.ClientSize.Height ' Make a Bitmap to hold the image. Dim bm As New Bitmap(s.Width, _ s.Height, me_gr) Dim bm_gr As Graphics = me_gr.FromImage(bm) Dim bm_ ...Show All

  • .NET Development Executing Oracle function using ADO.Net

    hi, i want to execute an oracle function that inserts some records using ADO.Net. The function is declared as below CREATE OR REPLACE function SAVE_INCREMENT_DATA ( P_EMPCODE IN NUMBER , P_INCRDATE IN DATE , P_EFFDATE DATE := '01-JAN-1900' , P_BASICPAY NUMBER := 0 ) RETURN NUMBER IS .... I found a sample code (shown at the end), which throws runtime exception - Invalid number/value Hope someone wil turn up with a solution soon Regrads Raju Sreenivasan OracleCommand cmd = new OracleCommand(); cmd.CommandText = "begin :p_retval := ftest; end;"; cmd.Connection = oraConn; // setup the OracleParameter object OracleParameter p_retval = new OracleParameter(); p_retval.OracleDbType = Orac ...Show All

  • Windows Forms Visual Studio 2005 > Setup Project > Upgrade Questions

    I have a vb.net solution with a windows application project and the application's setup project. I've built my solution and have msi file. Install my first version and I have my application working. (After while) There is a new version of my application, I've downloaded it and run the new Setup: How can I stop current application, uninstall it and continue with new setup intallation Thanks for any suggestions Hi, Hopefully this will help you out. In your deployment project, you need to change the Version property(try incrementing it), its located in the Project Properties and Version Property. After that build it, and deploy the SETUP/MSI in the target machine. It will just overwrite the old application i ...Show All

  • SQL Server MDX help

    Hi All, I have a calculated measure in my OLAP cube which is a distinct count of one of the keys in the Fact table. This is a semi-additive measure so I need Distinct count of the last child of this measure. How can I do this Is there a built-in function to handle this. I am using AS 2005. Any help would be greatly appreciated. Rohit Hi Rohit. More detail here is helpful. You ask for LastChild of a measure. Unfortunately, measures don't have a hierarchy so they don't have children. This means you're probably asking for one of the following: (1) The LastChild within a hierarchy (such as Product), and the corresponding value of your semi-additive measure (what's the name of the measur ...Show All

  • Visual Basic MIDI send/receive through MIDI interface, from VB2005

    I'm using a laptop connected to a Mark of the Unicorn 2-in/2-out MIDI interface, through a USB port. I'd like to write an application that can send and receive MIDI messages through this interface. I've done this before a long time ago in Visual Basic 6 (with an older parallel port MOTU MIDI interface). At that time I downloaded a Mabry control and added it to the controls list. I wrote code that could respond to MIDI input events and other code that could transmit MIDI events out. But I suspect VB2005 would prefer a component tray entry of some type, rather than a control. I asked MOTU about this and they replied: "We do not have any knowledge of how to do this. The Fastlane uses a standard Windows MIDI compatible driver so an ...Show All

  • SQL Server Login failed for user ''. Reason: Not associated with a trusted SQL Server connection.

    Hello, I have some problem here. I have a sql server installed on one machine and I have another development machine for my asp application. How could I actually access the asp application and sql server at the same time from another machine within the network. I kept on getting the error message above. Thank you for your help :) Are you using exactly the same credentials to connect in both cases I am guessing that the one using IIS is probably using SQL authentication and the other machine is either using SQL authentication with an incorrect password or using Windows authentication under and the Windows principal doesn't have access to SQL Server. I would strongly recommend using SQL Server Profiler and enable "Audit ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Scaling down a sprite seems to crop?

    Here's what I've got: One sprite sheet texture (512x512) with an assortment of sprites on it. My sprites are generally 64x64 pixels wide and padded between to prevent filtering artifacts. So, the first sprite starts at (4, 4) and is 64x64 in size. ...Show All

  • Windows Forms One or more errors encountered while loading the designer

    Hi, I was working on a simple Winforms C# project. I created a few of TableAdapters using the designer and attached them to datagridviews on my form. After realizing that i did not want one of the tables I went to the XSD designer and deleted it. After that the project still excutes ok but the form designer is unable to display the form in design view 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. Clicking on each error will take you to the line of code that caused it.   I am not looking for a response to this problem (creating prototype, kicking the ti ...Show All

  • Windows Live Developer Forums VEMap.GetRoute in Europe

    Hi Everyone, I have been trying to get a GetRoute for an address in the Netherlands, but I'm having problems with it -- it keeps asking me if I want to choose a city in America. I looked through a bunch of stuff, but I couldn't find if there was a restriction on GetRoute for places other than America. Is this possible Thanks! scott You can also use the countrycode instead of a countryname, like this: "Sesamstraat 1, 1234 Amsterdam, NL" Checkout searchresults on local.live.com. Maarten ...Show All

  • SQL Server Nofications assemblies not found with .net 2.0

    Hi guys, I was trying to develop a non hosted event provider and decided to use NS event object api to submit events to NS. My development system has VS 2005 and my plan is to connect to a NS instance running on a machine on the local network. But it is weird that I could not find "Microsoft.SqlServer.NotificationServices.dll" in my dev system. Does it mean to develop NS applications we need to have VS 2005 and Sql Server 2005 on same box. Also note that I have sql server express edition on my development machine and I am aware that express editions doesn't support notification services. Thanks, Shamir Hi Ahmed - You need to install the SQL Server 2005 Notification Services ...Show All

  • SQL Server SQL 2005 auto-attach vs. traditional databases

    This is my first post on Microsoft forums so please be gentle. I am not a developer, just trying to write some documentation and having a little trouble finding information. Is "traditional" an appropriate term for registering databases the old-fashioned way (not using auto-attach), or is there a better term What are the benefits and drawbacks of using auto-attach vs. traditional database representation It would seem to simplify deployment but present possible administration challenges. Is it possible to control the name of the database when using auto-attach, or must it always be the full path to the file Thanks, I think I will stick with the term traditional. Is it possible to ...Show All

  • SQL Server What is wrong with my code relating to the marker of the line chart?

    Hi Guys, In my line chart report, I want to display the markers of the line chart dynamically. I wrote the below RDL script and VB script in the report, but the report designer gave me the following error message: The 'http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition:Type' element has an invalid value according to its data type Does this mean that I can only use string like"Circle" here, and cannot use a function to return the string Thanks in advance. Danny   Code snippet in the RDL file: <Marker>      <Type>=Code.GetMarkerType(Fields!TimeStamp.Value)</Type>      <Size>6pt</Size> </Marker> ...Show All

  • .NET Development how to generate a request Query string

    I am new to XML and I am creating a webDav program which requires a query XML to search through the directory listings but I don't know how to build it. I found an example that looks like this sQuery += "< xml version='1.0' ><D:propfind xmlns:D='DAV:' " ; sQuery += "xmlns:h='http://schemas.microsoft.com/hotmail/' " ; sQuery += "xmlns:hm='urn:schemas:httpmail:'><D:prop><h:adbar/>" ; sQuery += "<hm:contacts/><hm:inbox/><hm:outbox/><hm:sendmsg/>" ; sQuery += "<hm:sentitems/><hm:deleteditems/><hm:drafts/>" ; sQuery += "<hm:msgfolderroot/><h:maxpoll/><h:sig/></D:prop></D:propfind>" ; This is to traverse a Exchange server ...Show All

  • Visual Basic Safe threading

    I am threading a section of my application and i get this error Cross-thread operation not valid: Control 'main' accessed from a thread other than the thread it was created on. how can i thread this saftly Public Class Home Dim contthread As New Threading.Thread( AddressOf fillControl) Private Sub Home_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load curUser.Text = Login.UserLabel.Text Call acctsCall() contthread.Start() End Sub Public Sub fillControl() dep = New DepositControl main.Controls.Add(dep) wid = New wdrawd widCont.Controls.Add(wid) mng = New Managecontrol mgnCont.Controls.Add(mng) End Sub ...Show All

  • Architecture Hosting Long Running Batch Processes In IIS 6

    I am currently architecting a framework that will depend on IIS to host batch oriented code. The design will use a disconnected model with a controller (that lives remotely) and checks back periodically via an ASMX layer. When invoking the actual batch execution code the ASMX call will spawn as many threads as it is configured to run and immediately respond (hence avoiding any long running HTTP connection). I like the idea for a number of reasons, obviously I get to use a standard communication protocol to invoke the batch code across tiers and I can even incorporate standard load balancing routines. I'm also able to use the same communication end points to check back in on the threads as they are executing. There are also a number of o ...Show All

©2008 Software Development Network