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

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

redcode

Member List

yvz
davros51
CalinMac
rvaas
Liebethal
DrJim
testqh
GILLT
Shrek.NET
Reindeer
davidjmsdn
LastHope
Bill_Henning
Amir Steta
Don 216
DW Developer
Cris001
donkaiser
Heathermack
paddyO
Only Title

redcode's Q&A profile

  • Visual Basic SMTP Authentication Windows Application

    I have a VB.Net application that I wrote that is NOT web based. This application is used to send our customers monthly updates and other information. We recently changed our T1 and our server requires Authentication. I have been able to get a web based version to authenticate, but am unable to do so with Windows. Any help would be appreciated. I need to get this working within the next few days. Dim SMTPMail As New SmtpClient Dim MailMsg As New MailMessage, I As Integer MailMsg.From = New MailAddress( Me .txtFrom.Text) MailMsg.Subject = Me .txtSubject.Text MailMsg.IsBodyHtml = False MailMsg.Priority = MailPriority.Normal MailMsg.Body = Me .txtMessage.Text SMTPMail.Host = Me .txtServer.Text SMTPMail.Port = 587 ...Show All

  • SQL Server Using Variables for file locations

    Hi, I am trying to write a procedure to create a certificate and back it up to a file location that is passed in as a variable but i keep getting syntax errors. My TSQL is the following: ALTER PROCEDURE [dbo].[LoadCertificate] ( @certLocation nvarchar(MAX) ) AS SET NOCOUNT OFF; PRINT @certLocation CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'password' CREATE CERTIFICATE Cert01 FROM FILE = @certLocation Any ideas on how to do this would be appreciated. Thanks, Ewen Try using dynamic sql like this: ALTER PROCEDURE [dbo] . [LoadCertificate] ( @certLocation nvarchar ( MAX ) ) AS BEGIN SET NOCOUNT OFF ; PRINT @certLocation DECLARE @certStmt nvarchar ( 1000 ) SELEC ...Show All

  • Visual Studio 2008 (Pre-release) Invalidate Layout

    I'm applying a layout transformation(scale transformation) on a grid. In the grid I've some gridsplitters which i don't want to scale. How do invalidate the transformation on the gridsplitter Any ideeas LayoutTransform (if that's what you are using) affects the whole subtree under it. I guess you can set LayoutTransform on a grid splitter since it is a separate element - with inverse scale... ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. draw() method is called two times....

    Hi to all, At first place, i'm totally n00b in c# & XNA, and in my effort to learn I have been debuging some tutorials from XNATUTORIALS. I've noticed that the program has a strange behavior, strange for me, because I know that this behavior is normal but I don't understand it. When I debug the game, I've noticed that the draw() method is called two times consecutively. Can anyone explain it Thanks in advanced. PD: Sorry for my english, I'm from Spain. :-) And also, the Update() method is done 30 times !!!! 30 times update - 2 times Draw...... there is a location to put how many times is each method retry by each game loop I suspect than this can be managed by a game timer or some similar ...... but I ...Show All

  • Visual C# why does the console appear ?

    I use Visual C# 2005 Express to build a project following the tutorial01 of the DXSDK tutorials , when I debug it,the console displays first,then the D3D basic window .But I do the same with the sample,it only displays a D3D window.So what is the matter ...Show All

  • Visual Studio Express Editions Obtaining a pixel (grayscale) value from the display

    Hi all, I just got into the world of C# programming and decided to use this to make a little graphical user interface which applies a filter to an image. Basically what I am trying to do is display an image (ie, load an image onto a picturebox) and then sample pixel (grayscale) values at various points. After obtaining these values, I wish to paint a circle per sample point, using Fillellipse() function, on a separate picturebox, where the color of the brush will match that of the grayscale value obtained. The problem that I am faced with is obtaining the pixel values from the displayed image. Most of the questions posted here seems to be focused on accessing the pixel values directy from the bitmap file via bitmapdata construct. ...Show All

  • SQL Server Trying to get daily totals from cumulative totals in a pivot

    I have been providing sales data for a few months now from a table that is set up like this: Date WorkDay GasSales EquipmentSales 9/1/2006 1 100.00 200.00 9/4/2006 2 50.00 45.00 etc. As can be seen, the data is daily, i.e., on the first workday of September we sold one hundred dollars in gas and two hundred dollars in equipment. On the second workday of September we sold fifty dollars in gas and forty-five dollars in equipment. Now, however, the data I have to pull from is cumulative. So, using the last table as an example it would look like this: Date_WorkDay_GasSales_EquipmentSales 9/1/2006 1 100.00 200.00 9/4/2006 2 150.00 245.00 etc. To make things more complicated, the powers that be wanted this data p ...Show All

  • .NET Development How to insert null values into the database

    Hi I have windows forms with a textbox(this box only for numbers) I have a field in int the table and datatype is set to "Number" The Question is If I enter the number in the textbox its works fine.BUT If I leave the text box blank its give me the error : application going to debugging and Datatype mismatch. Please Help Thanks in advance Copied from another post (mine). Also note you will need to either set the Integer parameter to zero when the text is empty or allow nulls in your db column and set the parameter to allow nulls. Assinging a string.empty value to a parameter of type integer will throw an exception. ' view in context with data below. Dim numberParam As New OleDb.OleDbParameter( "@Para ...Show All

  • Visual Studio Debugger Locks Up When Stepping Through Code

    If I pause for very long while stepping through my code in the debugger, the debugger locks up, and I need to kill the process by hitting cntrl alt delete, and closing the debugger down. Why is this happening and what can I do to prevent it from happening It is very frustrating. I am using VS2005. Thank you. Hmm, sounds like a bug. Can you give us some more information Like: - What process were you attached to - If it's your process, what type of process is it (Managed, native, mixed) - Do you have any sample code that repros the issue - How long did you wait (to see how long I should wait when trying to repro this) Thanks - Rich Chiodo MSFT ...Show All

  • Visual C++ console application and tray icon

    I'm writing a console application and one of the features is tray icon But I have a problem. Here is my code. #define ICON WM_USER+201 #define ICON_CLICK WM_USER+301 NOTIFYICONDATA notifyicon; notifyicon.cbSize = sizeof(NOTIFYICONDATA); notifyicon.hWnd = console_hwnd; notifyicon.uID = ICON; notifyicon.uFlags = NIF_MESSAGE | NIF_ICON | NIF_TIP; notifyicon.uCallbackMessage = ICON_CLICK; notifyicon.hIcon = ExtractIcon(NULL, "icon.ico",0); lstrcpyn(notifyicon.szTip, "test app", sizeof(notifyicon.szTip)); Shell_NotifyIcon(NIM_ADD, &notifyicon); The problem is that I never get ICON_CLICK event in my GetMessage loop. What's wrong If you used the default template for creating a Console Appl ...Show All

  • Windows Forms Temporary Behavior, Need Help

    I am creating a control with a custom designer that should allow a data object to be dropped onto it, setting some properties. This object will be coming from another application. I've already been able to implement this by overriding the OnDrag events of the control's designer, but I'd like to do it "more correctly" by attaching a behavior to the control's body glyph and overriding those drag events. The idea being I could just add another behavior if I needed to support another drop source, as well as reuse them for other objects. This behavior/glyph should only be active during a drag operation, and more specifically during a drag from outside the process. Is there a clean way to do this Thanks ...Show All

  • Windows Forms Label within a label? C# and .NET

    Hi guys. I have an interesting issue. I have labels created dynamically at runtime in my app, and placed in a flow panel. What I need is for some of those labels to have an extra label with a single digit placed in one corner. What I have so far done is created a class which derives from a label AND has a label in it. i.e. class Slide : Label { public Label l_IndexLabel; public Slide() { l_IndexLabel = new Label(); } public void SetUpSlide() { l_IndexLabel.Text = this.Tag.ToString(); l_IndexLabel.Size = new System.Drawing.Size(10, 20); l_IndexLabel.BorderStyle = BorderStyle.FixedSingle; l_IndexLabel.Location = new System.Drawing.Point(this.Right - 10, this.Top + 20); l_IndexLabel.Show(); l_IndexLabel. ...Show All

  • Gadgets Weird things with persistentSettings.js

    I'm having some difficulties with the persistentSettings Bruce made. I'm trying to load persistentSettings as my Settings dialog loads, but for some reason nothing gets returned. HOWEVER, if I right afterwards press a button that triggers the same thing (loading value from persistentSettings), it comes up fine! Here is my code for Settings.js: //gets called when the Settings windows gets opened or loaded document.onreadystatechange = function() { if(document.readyState == "complete") { //fetch current location settings for user loadStates('US'); getGadgetLocation(); <-- here is the function that gets the saved setting alertme(g_location); <-- debug stuff, shows me what comes up, i'm using div for this. i ...Show All

  • Windows Forms how can i run a windows form control without a web server

    If I have a webbrowser control hosted in an MFC application, how can I load a web page that embeds a windows form control and run the control without IIS or any other web server I have a very similar situation. We have a .net control loaded using the <object> html tag in a MFC web browser control. Recently the controls have not been loading about 20% of the time. We see a red x in the control (the same as when a resource cannot be located in IE) upon loading the page, and refreshing the page doesn't seem to help. We are loading 3-5 separate .net controls in the same MFC app and about 20% of the time one of the controls shows the red x. All of the .net controls seem to be equally suscept ...Show All

  • Visual Studio Service pack 1 vs vista SDK

    Does service pack 1 includes Windows SDK for Windows Vista Do you know if such a service pack is planned You can download the latest versions from the Microsoft downloads: MicrosoftR WindowsR Software Development Kit for Windows Vista and .NET Framework 3.0 Runtime Components WindowsR Server 2003 R2 Platform SDK Full Download WindowsR Server 2003 R2 Platform SDK ISO Download Microsoft R Windows ServerR 2003 R2 Platform SDK Web Install ...Show All

©2008 Software Development Network