Jeff Williams's Q&A profile
Smart Device Development Null null lovely null
Newbie question ;) Iget a nullrefernce in: private void lvProduct_SelectedIndexChanged(object sender, EventArgs e) { if (lvCurrentProducts.FocusedItem.Equals(null)) { MessageBox.Show("Null null ja sa nuull"); if (lvCurrentProducts.FocusedItem.Text != " ") { CurrentProductID = int.Parse(lvCurrentProducts.FocusedItem.Text); } else { CurrentProductID = 99999; } } Please Help :) I think I couldn't understand your question ..Any way try this : lvCurrentProducts.FullRowSelect = true ; Are u looking for this one Thanks Ratheesh ...Show All
Windows Forms RichTextBox question
I am using odbc driver to manipulate records to and from a Paradox database. In the Database I have two columns that are Paradox 5.0 memo fields, they have been formatted with a Rich Edit field in Delphi7 . I can view the data in the fields in my C# app in MSVS 2005 with a RichTextBox control except that the formatting shows in the text box as well as the data. Like this: {\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}{\f1\fnil MS Sans Serif;}} \viewkind4\uc1\pard\lang1033\b\f0\fs16 3/4x3/8--63/4x4/78--One X Leather--One 1/2" wedge. Hook heels around instead of cutting off.\f1\par } Is there a way to get the richtextbox to process the formatting Thanks Jon (Moderator: Thread moved to thi ...Show All
Visual Studio Express Editions Text editor unusable
I realize this is an older issue, but Service Pack 1 was supposed to correct it. I'm using VB.net 2005 Express. Or at least I'm attempting to. The text editor is simply unuseable. Every 5 to 10 seconds, it completely locks up my system. I can't type, I can't do much of anything. I have been told on another forum that my project is "too large".. and yes, it's big, as one example, I have a single class with 8800 lines of code. One of the 10 modules has about 3100 lines.. I don't think that's too big. VB6 handled exactly the same project (I only did the upgrade two days ago) wonderfully. So I don't think Microsofts going to tell me that a project that was small enough for VB6 is too big for their new flagship product... Any ...Show All
Visual Studio Team System Can Team System be used for testing windows applications?
Hello Is Team System and testing functionality mainly written to test Web pages or can I use it to test Window application made with Visual Studio 2005. It seems that all information I can find is related to testing Web pages. I wish to use Team System for testing the software, GUI tests mainly. If it's possible where can I find informatin on this in order to learn how to do this the best way Thanks Kitzo VSTS for software testers has features to test web as well as win apps. You could write unit tests against your winapp and run them using the unit testing functionality in VSTS. You can find more on this at http://msdn2.microsoft.com/en-us/library/ms182514(VS.80).aspx However, if you are loo ...Show All
SQL Server cross table
Sir, My query is select convert(datetime,task_date) as date, sum(Case status_id when 1000 Then 7 else 0 end) as Programming, sum(Case status_id when 1016 Then 5 else 0 end) as Design, sum(Case status_id when 1752 Then 4 else 0 end) as Upload, sum(Case status_id when 1032 Then 2 else 0 end) as Testing, sum(Case status_id when 1128 Then 1 else 0 end) as Meeting, sum(Case status_id when 1272 Then 1 else 0 end) as Others from task_table where user_id='EMP10028' and task_date='9/11/2006' group by task_date union select convert(datetime,task_date) as date, sum(Case status_id when 1000 Then 7 else 0 end) as Programming, sum(Case status_id when 1016 Then 5 else 0 end) as Design, sum(Case status_id when 1 ...Show All
Visual Studio Express Editions VB 2005 to Send Email
I regularly have to send on a daily basis approximately 20-30 emails which are processed by an email-based SQL server that then returns the results (via email) to my Inbox. And before you ask what kind of messed up approach this is - hey, I didn't make it, I've just got to live with it. Here's the deal - all the email I send has the same TO; SUBJECT; and nearly the same BODY (body is the same except for two items that are changed each time). Also, my evironment uses an Exchange server, so while I've seen some of the code for using SMTP, all of it references authentication - since I'm local to the Exchange server and use Outlook, I wouldn't think I would need to authenticate - but perhaps I'm wrong. What I'm trying to accomplish is tw ...Show All
SQL Server Restore SQL Server Express Databases after a Disaster Recovery
Hello, I would like to restore SQL Server Express and its databases from a tape backup to the same server. This is a disaster recovery senario. I backed up the Master, Model, MSDB and my own test database using SQLCMD scripts. I have no problem restoring these using task manager on the server before the disaster recovery. However, in my real disaster recovery testing, When the server is restored by tape drive (HP one button disaster recovery), I try to run my SQLCMD restore scripts in task manager and I cannot connect to the sql server. Also I cannot connect with Management studio. I have recieved the following error in event viewer. ---------------------------------------------------------------- Event Type: Error Event Sou ...Show All
Smart Device Development API Call To Ignore an Incoming Call?
Does anybody know what function may I use to Ignore an incoming call, this is bacause I would like to develop a black list to block incoming calls. Thanks In Advance This forum is intended to deal with issues directly related to the .NET Compact Framework. It appears that this question can better be answered by someone on one of the newsgroups for Windows Mobile or Windows CE. In order to get a quicker and more accurate response, please consider reposting this question to one of the following newsgroups: Windows Mobile API : microsoft.public.pocketpc.developer microsoft.public.smartphone.developer Windows CE API : microsoft.public.windowsce.embedded General programming ...Show All
Windows Forms Task Vision Documentation and Problem
Hi all, Currently wrtting an app for our bussiness which will look after our customers, it's kinda of a mini-crm application. I've not done much development, but feel I can get this working to a good level and learn more as I go. Is there any documentation which walks you through task vision on how it's designed Also In VB Express 2005, when I try and view a form 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. The name PriorityText is already in use by another component. Hide at System.ComponentModel.ReflectPropertyDescriptor.Se ...Show All
Windows Forms Using StreamWriter To Write HTML File
hiii can any body tell me how can i use streamwiter to *create an HTML file *write on the that file *using HTML tags in wrting in case i need to write in a formated Way (bold,italic,color,write data in HTML table) ...... if its not available using StreamWriter where could it be thanx in advance ......... Hope it help, if (! File .Exists("Test.htm " )) { StreamWriter stream = new StreamWriter ("Test.htm " , true , System.Text. Encoding .UTF8); stream.Write( @"<html>" + stream.NewLine+ @"<body>" +stream.NewLine ); stream.Write( @"<table width='100%' cellpadding=' ...Show All
Visual FoxPro MSCHART AND VISUAL FOXPRO 9
I am trying to use MSCHART with VFP9 and have some success until I want to set or change Legions, Titles, Colors etc. or to enter data into the second Y axis. Using any of the property / constant names only produces the message "Name Unknown". Any suggestions. I advise to read getting started sections first. I gave you everything you need. I don't understand what steps else you want. Create your report and run the code (just be sure testdata.dbc is in your search path). There is nothing to understand about graphing. Code does that for you. ...Show All
SharePoint Products and Technologies Migration to server farm and upgrade to V3 failing prescan
I'm moving our SharePoint services sites from a MSDE single server solution to a server farm. We want to have the ability to search and the new features available in V3. The migration has worked so far. Config and content databases were attached to a SQL2005 server. SharePoint front end installed on a new server. Everything came up ok. Still no search though. All the sites are working properly! I'm trying to decide to fix search first then upgrade, or upgrade and hope search is enabled. Prescan failed on the existing single server setup and when doing a prescan on the newly setup V2 sites, I get the following error: Z:\>prescan /all System.Security.SecurityException: Request for the permission of type System.Security.Perm ...Show All
Visual Studio Express Editions Link
For a link label, on click what's the code to make it launch the link I have a linklabel.text set but when I click it, it doesn't launch. I tried this, but got some errors: AddHandler - Syntax Error. Me.spawnBrowserBackgroundWorker - Syntax Error. If (Not url Is Nothing) Then - Variable 'url' has been used before being assigned a value. A null exception could occur at runtime. Not sure if I declared everything right, try it to see if it works. ...Show All
Audio and Video Development handling event other than nodeSet
<timing clock="page"> <seq> <cue select="//body" dur="5s"> <event name="doTest"/> </cue> </seq> </timing> <body > ...Show All
.NET Development Getting processes by window caption
I just want to know how to find instances of programs with a certain window caption, something similar to the system.diagnostics.process.getprocessesbyname command except to find processes by their window caption instead of process name. How would this be done GetActiveWindow() returns the active window for your process. Since the user is probably working in a window of another process, GetActiveWindow() will return NULL. GetForegroundWindow() might work better... ...Show All
