Software Development Network Logo
  • Windows Live
  • Windows Vista
  • Visual C++
  • Visual Studio
  • Visual Basic
  • Smart Device
  • .NET Development
  • Visual C#
  • Microsoft ISV
  • Visual J#
  • SQL Server
  • Visual FoxPro
  • Windows Forms
  • Architecture
  • VS Express Editions

Software Development Network >> danny y's Q&A profile

danny y

Member List

Hurz
x0ras
G.G.
talitore
LucasC
Oya ORER
StuartIrving
dakhili
Anders Corlin
salmanpirzada
bobespn
Olafje
Kapil Kelaiya
camtin
Niky
Panks2905
Beetlebum
Gordon7502
afields2
Alrik
Only Title

danny y's Q&A profile

  • Visual Basic Datagridview "HideSelection"

    I'm using an unbound datagridview to display information, and I need to color-code certain cells to alert the user to status events. Is there a way to not have the selected row highlighted when the control does not have focus (similar to the VB6 .HideSelection property) I would explore using the DataGridViewx.SelectionChanged method to test your condition and if not met, set the Style.Backcolor to normal - else set Style.Backcolor to the row highlight color. ...Show All

  • Windows Forms Long division and converting to double

    Hi, I have this line of code that I think should work, but it does not: double percentage = ((double) counter / value);The variables counter and value are of type long, and I want the result of the division to be of type double. The only value I can get in percentage is 0.0. I have tried to use Convert.ToDouble as well without the desir ...Show All

  • Visual Basic terminate vb.net console application

    Environment:   Running this code on my PC via VS 2005 .Net version 2.0.50727 on the server (shown in IIS) Code is in ASP.NET 2.0 and is a VB.NET console application   Problem & Info:   Application.Exit() is throwing an error in VS 2005 when I debug   Error: Name 'Application' is not declared   The code:   Imports System.IO Imports System Imports System.Configuration Imports System.Data Imports System.Data.SqlClient Imports System.Net.Mail   …some code, then      &n ...Show All

  • Visual Basic Finding the selected item in a list view control

    HELP! How do you find the selected item in a list view control Please just leave the font settings, I feel like you're shouting at me. When in doubt, intellisense can help you find things. In this case, the listview has a selecteditems property. http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformslistviewclassselecteditemstopic.asp ...Show All

  • Visual Basic print out to .pdf or calling a macro with parameter

    Hi, I created an .hta application that generates XML from Excel Sheets and the reverse, the thing is that when I do the reverse, generate Excel Sheets from XML files, i need to print that sheet to pdf. I try creating a macro that receives as a parameter the name of the final pdf file like this: Sub print2pdf(filename) ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, PrToFileName:=filename End Sub and then i call the macro in the .hta application with this command: ExcelAppA.run "print2pdf ""F:\ProjectoFCUL\OENG\PDFs\teste_disc_A.pdf""" (i tried a lot of combinations with double quotes or singl ...Show All

  • Visual C++ AFX_MSG_MAp

    Hello, in the message map often you can see //{{AFX_MSG_MAP(<the Dialog>) <something> //}}AFX_MSG_MAP Are these comments only for highlighting Can i delete these comments or they are important code for MFC Application Thanks Visual Studio 6.0 used them to find out where are the pieces of code that Class Wizard needs to change but in Visual Studio 2002 and later they aren't used anymore. ...Show All

  • Visual Studio Team System How to ensure successful compile before check-in ?

    Hi, It's looking like simple question... Any ideas Thanks, Leon Hi Leon, To ensure that u have a successful compilation before check in. Just get the lastest version of all the files {or porjects} .... rebuild your entire solution and after a succssful build check your code in. Regards, Nasha {MVP} ...Show All

  • Visual C++ error C3861: 'exit': identifier not found

    Hi, I'm trying to build an old code (main.cpp) where I'm using SDL. This is my first time using Visual Studio 2005 . I have included the following: #include <SDL/SDL.h> #include <stdio.h> #include <stdlib.h> int main( int argc, char *argv[]) { if ( SDL_Init(SDL_INIT_AUDIO|SDL_INIT_VIDEO) < 0 ) //SDL_Init will return -1 if it could not initialize { printf( "Unable to init SDL: %s\n" , SDL_GetError()); exit(1); } atexit(SDL_Quit); } I get the error : error C3861: 'exit': identifier not found. What am I doing wrong ...Show All

  • Visual C# Thread problem

    Hi.. I created a thread to watch for closing a window... i make a loop for watching the process that have a Main window..and when a windows closes to do something Anyway my problem is that my CPU goes nuts.. from 3% goes to 90 100% and i gived to someone else and sad that is working fine.. And my CPU is a INTEL Pentium 4 3.2 Ghz and i Have 1Gb Ram.. the hardware shouldn`t be a problem OK, let's say we have a Form called MyForm with a Button called button1 and a Label called label1: // First add the following to the MyForm class: private int wmShellHook; [DllImport("user32.dll", CharSet = CharSet.Auto)] pr ...Show All

  • .NET Development Running Exe from javascript

    Hi, I have a problem, I need to run an exe from javascript. I have successfully done it but had to do some modifications to IIS Services property (check "Allow interaction with desktop" ) and machine.config (change username from default Machine to System in processmodel) file of .net. The problem is this is not acceptable. I need to execute it without the user intervention. Once the web page is downloaded onto the users screen and the user does some action (clicking a button in this case) the exe should execute, without the user making any changes to the system. Any information on this would be helpful. Any sample code would be ...Show All

  • Windows Forms Why can't I change a simple name

    If I start a simple Windows application a Window called Form1 is created. I have found out that it's not possible to change this name. I get a lot of error messages telling me that the change is not reflected fully in the sourcecode and when compiling that Form1 is not found. Also if I did the namechnage in the Form1 properties Window and then tried to change the name back to Form1 it didn't work. Neither is it possible to change the name in the Solution explorer (but here I could change the name back again). What is the correct way of doing this simple namechange Hello, From my understanding of your post, you want to change the text t ...Show All

  • Visual C# SMTP mail with authentication

    Hello Experts How can i send SMTP mail using some of the popular servers like yahoo or gmail How can authentication done.. I tried the following code. But it will not worked. Any one help using System.Web.Mail; eMail = new MailMessage(); eMail.BodyFormat = MailFormat.Text; eMail.From = _SendFrom; eMail.Fields[http://schemas.microsoft.com/cdo/configuration/smtsperver] = "SMTPServerName"; eMail.Fields[ " http://schemas.microsoft.com/cdo/configuration/smtpserverport "] = 25; eMail.Fields[ " http://schemas.microsoft.com/cdo/configuration/sendusing "] = 2; if (SMTPUser != null && SM ...Show All

  • SQL Server showing list of reports in a grid

    Hi friends how can i access report server database I've C# application and i want to develop a screen with a grid that loads all reports created on report server. am using sql server 2005 standard edition and VS 2005 standard edi. can someone point me to some sample examples Thanks for your help Hi there first did you webreference to the reporting services end points if not thats where you need to start then this example should work. see creating web service proxy http://msdn2.microsoft.com/en-us/library/aa179614(SQL.80).aspx this helped me enhance my a ...Show All

  • Software Development for Windows Vista AV's cause access failures.

    Programs like Avast Av won't allow IE to access web pages. If you turn off the On Access control then you are fine. Don't know about other AV programs yet. TTFN. Yes, we are interested. You can follow the instructions in the "How to file a bug" link to report a bug. ...Show All

  • Windows Forms Egg timer when hovering over my picturebox

    I have a few picture boxes in my app. Whenever I position the mouse cursor over the top of any of the images, I get the egg timer as If it's doing something. It's not stopping my app from working or anything, I just can't work out why. Anyone else had that before Thanks ICW ...Show All

©2008 Software Development Network