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

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

Keithyboy1

Member List

MHenke
GNLuver
Keith Hill
qwv
Madiba
Cedric509
Travis75
moondaddy
Deallen
jdonahue1971
K. Murli Krishna
penninha
JDELUNA
Brad Corbett
ekkapop
Zamorano400
RJMPhD
Cesar Francisco
Mafti
Dz0001
Only Title

Keithyboy1's Q&A profile

  • Visual Studio Express Editions Capture a picturebox

    I am trying to capture the contents of a picturebox. The picturebox's location property is 0, 0 Only the upper left corner of the picturebox and part of whatever is in the background, is captured. Dim b As Bitmap Private Sub CapturePictureBox1() Dim myGraphics As Graphics = PictureBox1.CreateGraphics() Dim s As Size = PictureBox1.Size b = New Bitmap(s.Width, s.Height, myGraphics) Dim capturedGraphics As Graphics = Graphics.FromImage(b) capturedGraphics.CopyFromScreen(PictureBox1.Location.X, PictureBox1.Location.Y, 0, 0, s) End Sub Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click CapturePictureBox1() End Sub ...Show All

  • Visual Studio 2008 (Pre-release) New Orcas CTP releases?

    Is this the site we should keep checking for new Orcas releases http://msdn2.microsoft.com/en-us/vstudio/aa700831.aspx ...Show All

  • Microsoft ISV Community Center Forums Excel: Email Macro help

    Hey All, I have the following macro code Sub Button1_Click() Dim EMail As Object Dim Link As String Link = " <web/file link " 'Filepath Set EMail = CreateObject("Outlook.Application") 'Assign Outlook application to variable With EMail.CreateItem(olMailItem) .To = " <email address> " 'email address .subject = "Update" 'Something for the subject Field .Body = Link .Send End With Set EMail = Nothing ' release memory End Sub As you can see from the code, you click the button and will send the link via email. In the code above what do i need to remove/add to stop the email from sending automatically and actually open instead of sending straight away Please ...Show All

  • Visual C# How to access a generic method argument in the following example:

    The calling code looks as follow: Session[KeyName] I need to know the value of the KeyName inside the Session property below. private static Dictionary < string , object > m_Session = new Dictionary < string , object >(); public static Dictionary < string , object > Session {       get        {             //need to check here whether a requested dictionary KeyName             //exists before attempting to return its value.             return ...Show All

  • Visual Studio How-to: create a custom tool that runs directly against a model file

    The T4 engine that ships with the DSL tools gives you a flexible way to generate text output based on the contents of a model by running a custom tool against a template.   However, in a production environment, you may not want a user of your designer to have access to the template. You might prefer the user experience to be more like that provided by the Microsoft dataset generator, where the custom tool runs directly against the model file, rather than against a template.   This is very easy to do using the May release of the DSL tools.   1) Create and test your template as normal, but then put in a placeholder in the directive where the name of the model would usually go e.g. “%MODELFILENAME%”.   2) ...Show All

  • Smart Device Development Problem-Connecting to sql server using pocket pc 2003 emulator..

    Hi Folks, I am trying to connect my remote sql database using the pocket pc emu. 2003. I am getting the error "SQL Server does not exist or access denied.". The thing is I have ASP. net projects and I connect without any hassle. I have also tried connecting to an online database using the pocket pc '03 emu. and it works....I just don't understand why it isn't working remotely.... Can someone kindly help I apologise for the late reply. I do have the loopback adapter already added. Should i delete it and another another ...Show All

  • Visual C# DllImport from C#

    Hi All, I have finished my hard job of porting a VC6 project to VC8 but now I have a problem in using functions from C#. This is the declaration: [ DllImport ( "Test.dll" , CallingConvention = CallingConvention .Cdecl)] public static extern int MyFunction(........... ); but when I use MyFunction I have following error: System.DllNotFoundException : Unable to load DLL Test.dll': Routine di inizializzazione della libreria di collegamento dinamico (DLL) non riuscita. (Exception from HRESULT: 0x8007045A) Thanx in advance for your time! Marcello I think it has to do with the DLL. It is somehow corrupt or the methods are not exported properly. If you google for the HRESULT ...Show All

  • Visual Studio Express Editions drawing

    how do i draw on a form or picturebox with the point of the cursor i tried: Private Sub PictureBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown Dim brush As Color = Color.Blue e.X = brush e.Y = brush End Sub but vb complains: Propety "X" is read only and the same for "Y" what code do i need (if i havent started in the right direction!) Check this thread for sample code... ...Show All

  • Visual J# Passing variable to datetime field from java app

    I'm having a problem sending a string variable that is formatted for the datetime field in sql server 2005 express. If I send a prepared statement as a hard coded value in the form 2006-12-13 07:34:20 it updates the database no problem. When I send it as a String value using SimpleDateFormat I get the error com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near '07'. Yet when I write it to the console I get the same as above. Is this a bug, I'm very frustated at this point This seems to be an issue with the SQL Server. You may want to try the SQL Express forum here - http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=385&SiteID=1 - Gaurav ...Show All

  • Visual Studio Team System Option box style creation

    Are there any plans to use option boxes (similar to those used in SQL Server to create new indexes, tables, foreign keys, etc.) to do things like creating indexes, tables and foreign keys I personally do not know the exact code to write to create the index I want. So, what I would like to see (and maybe it is there and I just am using the product incorrectly) is a box that allows me to choose the options I want then the application will create the code for the new object. At least give the user an option to manually write the code or some type of user options... Just a thought. Travis, Thank you for your suggestion. We are also thinking about visualization and "wizard-like" object creation, but in the ...Show All

  • Smart Device Development Typed Datasets and Commands...

    Hello. I have make a Typed Dataset in my Project, it have created the update, insert and delete commands, but in some point some tables have "lost" this data, i dont know if is something i touch, or something else... is there any way easy of regenerate this commands thanks! 1. Delete typed dataset from the project. 2. Create typed dataset one more time. After you do that all commands would be restored. ...Show All

  • Software Development for Windows Vista Normative Schema for WF XAML?

    Hi, I don't think this question has been asked since last November. Is there a schema for XAML I'm working on some bits to generate workflow types and would to do less reverse-engineering of what Dev Studio produces. Thanks. - Erik I don't agree. I understand that XAML itself is an outer wrapper for WPF or WF, but that doesn't mean that "xs:any" is the best Microsoft can do to document XML formats for those subsystems. From the stuff I've seen in XAML so far, I haven't found anything that couldn't be represented in a proper XML Schema document. I don't really need a proper XML Schema for XAML/WF -- I just want documentation about the format. I can build my own schema if needed with whatever constraints ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Performace: can't this thing draw any faster?

    I'm certain that I my code must have some critical inefficiency somewhere; I can run my favorite 3D video games at maximum settings, but my little DX app slows down to < 90 frames per second when it tries to draw 100 little boxes. Here's the code in a nutshell: protected D3D.Texture _texture; protected static D3D.Sprite _sprite; _texture = MakeTexture(); // ends up producing a 1x1 white texture _sprite = new D3D.Sprite(graphics); dx_graphics.BeginScene(); for (int i = 0; i < 100; ++i) { _sprite.Begin(D3D.SpriteFlags.AlphaBlend); _sprite.Draw(_texture, new Rectangle(0, 0, (int)500, (int)500), new Vector3(0.0f, 0.0f, 0.0f), new Vector3((int)300, (int)200, 0.0f), Color.FromArgb(255, 255, 255, 255)); _sprite.End(); } dx_graph ...Show All

  • Windows Forms Need DataGridView Read/Write Example ComboBox

    VB2005, SQL Server 2000 The MS supplied 101 sample DataGridView ComboBoxColumn example is read only which is kinda dumb since I'm not sure when one would ever need a read only dropdown. Has anyone seen a KISS example of connecting to a SQL Server 2000 table (spmething like the PUBS DB, authors table) using a DataGridView with a combo, say on the State field Need to see something that does not use the DataSource wizard objects. In general: Is it possible to bind to a dataset using the auto generated columns and then change a column type to Combo Or does one have to construct all columns manually if any are other than the auto generated type TIA Thanks Mark! The step 1 to 10 above was ...Show All

  • Windows Live Developer Forums Playing back wma files in Activity Window

    Hi I've seen some posts about this but in general is embedding the window media player controls in the activity window, and getting the bot to play back a sound file, all ok I'm having problems getting the file to play. Thanks Riaan I tried this last night and at this time your activity application needs to be provisioned for ActiveX to successfully use the Media Player control. For security reasons only activity apps for companies that Microsoft has business agreements in place with have access to the ActiveX control capabilities. A business can contact bizdesk@microsoft.com for informaiton on what the agreements look like. Todd Biggs, Windows Live http://www.robotinvaders.com ...Show All

©2008 Software Development Network