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

Software Development Network >> Peter Smith in Redmond's Q&A profile

Peter Smith in Redmond

Member List

supersonic1976
NickMcCrea
mrotoloni
Sammy Adems
Adix
l Bllizzd l
Milzit
Indigo Cowboy
reichard
Pr1nce
RCS300
alexia_net
Evgenia
Henrik Dahl
Michael.Young
DragonC#
ClemensT
DavidC#2005
Bridgeway
Doksa
Only Title

Peter Smith in Redmond's Q&A profile

  • Visual C# windows processes

    folks, I am trying to spawn some processes from my windows service ..using Process pr = new Process(); pr.StartInfo.FileName = @"C:\Projects\xxx.exe"; pr.Start(); How do i make sure that the process pr has gracefully completed or failed Is there a way to find that does the process report back to the windows service Thanks in advance Good question. Well, I guess you could raise an event in your thread when a process is complete so when the event has been raised you will know when that process is complete. Events and Delegates: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconeventsdelegates.asp http://www.devhood.com/Tutorials/tutorial_details.aspx ...Show All

  • Visual Basic bitmap to an icon. .ico file converter conversion.

    i am not positive this belongs here but i have developed a few program which i would like to place a custom icon on. is there a way or a converter i can use to create this icon and deploy it, i tried to make a bitmap of a simple icon, but see no way to make it into what ever visual basic/visual studio requires. it keeps saying it needs an 'icon' file so how do i make one meow.. Hi all, Any ideas on how to use the Tall Dude's code above then SAVE an icon file of any size I was thinking of getting the filenames into an imageList or a comboBox to start with. Unless it's possible to; 1) Get a file name from an existing file from an OpenFileDialog then 2) Change the extension to .ico 3) Then SAVE with AnIc ...Show All

  • .NET Development Fill DataSet from Txt, memory doesn't like it

    Hi all, This is my first question. Perhaps anyone can help me with what I'm doing wrong and what I can do about it. I am reading a textfile row-by-row, modelling and analyzing the data. Each row is then put in a DataSet. Afterwards, we will bind the DataSet to a DataGrid and allow the user to view/edit records before it is finally published to a SQL database. Sometimes the amount of records is substantial, so to display the status and keep the GUI responsive this process has been contained in a backgroundworker. Ofcourse not with every processed row the status is updated, but in batches. Say about every time 100 records are processed. All works perfectly fine, with the horrible exception that reading large sourcefiles (+1million rows/200mb ...Show All

  • .NET Development Server response with header attribute mustunderstand="1"

    Hi everybody, I'm stucked with a web service response... When I call a web service I must add a Header calles TransactionID with the mustunderstand attribute set to "1". The web service response it's ok but includes the same header with mustunderstand="1", and client proxy class is unable to process this response. The message I'm getting is: "Soap Header TransactionID was not understood" It seems like my client proxy class can’t understand the TransactionID header. How can I tell my client class thar TransactionID is understand Is it possible not check the mustunderstand attribute Any other idea Thanks in advance Angel ...Show All

  • Visual Studio Team System Is it possible to use the api to add a label - to a changeset

    I would like to label changesets. Is it possible to label a changeset using the api. Would it be something like this example, which does not compile because the artifactUri is not the labelItemSpec. An help/suggestions gratefully recieved. public static void LabelThisChangeset( VersionControlServer ss , Changeset c, string label) { VersionControlLabel vclab = new VersionControlLabel (ss,label ,c.Owner, "" , "test" ); LabelItemSpec [] label_item = {c.ArtifactUri}; Going wrong here as artifactUri is not a labelitemspec ss.CreateLabel(vclab, label_item, LabelChildOption .Replace); } The following example creates a label on a team project at a changeset. I ...Show All

  • .NET Development Technique for massive amount of data

    Hi, I'm working on an application, sort of like a BI (dynamic report). The user want to see a whole moth of data and the data is at the minutes, with multiple column/row and data at the munites for a whole month this equals massive amount of data. I'm looking for anything that could help me store/access/handle the data for faster result. I'm looking for .NET imbeded function/hack, and simple algorithm. I don't want to go as far as creating my own btree and balacing it myself in c and calling this function in .NET. I'm want to start with simple/moderate solution. Memory is also an issue, I cannot store multiple instance of the same data. Thanks!   (I'm using VB with .NET 1.x, vb does not support unmanage code) The ...Show All

  • Visual Studio 2008 (Pre-release) Disable/hide minimize button

    Does anyone know if you can disable or hide just the minimize button on a window What I want is a resizable window which also has a maximize but not a minimize button. Thanks This solution works for me on Server 2003 and XP with .NET 3.0 installed. Meaning that minimize button gets disabled, as requested in original post. Can somebody try suggested solution above and mark the real answer as the answer as opposed to incorrect answers (even if they are from great bloggers) above Thanks non-blogger entity that is not accumulating points ...Show All

  • Visual Studio Express Editions Game Programming

    Hello, I'm 13 years old and me and a few of my friends are going to try creating a video game. Since I knew the most about computers and are very good with them, everoyone decided that I should be in charge of programming. I know of a couple other kids in my school I could ask to help with programming, but I need to ask a few questions first, if it isn't too much trouble. 1) I know that C# and Visual Basic would be the best languages to start with. I already have some knowledge with Basic. My 1st question is is C# as good as C++ for 3-D and Direct X Game programming 2) I have a 2 year old Dell Dimension 2350 at home with a 50 Gig hard drive, 30 Gig to Windows 20 to Linux, 500 Meg ram, and an Intel pentium 4 processor. Would this b ...Show All

  • Visual Studio Tools for Office Addins no longer working

    I have an issue where I did have my addins loading correctly in Excel, however, now when I load Excel, they no longer load. This is on the same development machine. One minute they were working, the next they were not. I've tried creating new addins from scratch and these won't load either. Could it be something corrupted in the registry that isn't fixed by reinstalling the setup file of an addin I'm working in Visual Studio 2005 with VSTO 2005 SE and Office 2003.  I hadn't uninstalled anything. What I was doing when it happened was I am trying to get the Actions Pane working from an application level addin.  In another post I read this is not possible unless you buy the non SE version of VSTO, but I can find n ...Show All

  • Windows Forms Progress Bar

    HI I am a beginner at C# and found the following code on this website but when i buld it the progress bar does not fill up could someone please help using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication2 { public partial class Form1 : Form { static int count=5; //time count public Form1() { InitializeComponent(); this .timer1.Interval = 1000; // set timer to tick each 1000ms this .label1.Text = "LOADING ..." ; //"Loading ..." text } private void timer1_Tick( object sender, Even ...Show All

  • Windows Forms Why isn't CellStyle Format preventing alpha characters in Number format column?

    Hi all, I'm a bit confused here. I set the CellStyle Format for each column in my datagridview to be: 1) Number 2) Date 3) Currency 4) Just Text. So why are letters allowed to be typed into the Number column, or the date column If I'm using the wrong property, then what would be the correct one I don't want to use validation - b/c then it's too late. I want to prevent a non-legal character from ever being written into the cell. Thanks. Thank you for the response. I did get a sample application from MSDN for a masked Text Box - which is close to what I want. But the only problem is that it has a specified number of characters. What I mean is if I set the masked format to be "$999.99" then $1_0.0 ...Show All

  • SQL Server Getting Members of a hierarchy tree, but only going down so many levels?

    Take the hierarchy [Customer].[Customer Geography] from the AW cube. Country State City Postal Code Customer Is there any nifty way with a function to say that you want all members, but only want to go down 3 levels - to city Country State City Currently I'm doing DrillDownLevel 3 times to get "All", Countries, States, and Cities . select {[Measures].[Customer Count]} on 0, NON EMPTY DrillDownLevel ({ DrillDownLevel ({ DrillDownLevel ({[Customer].[Customer Geography].[All]})}, [Customer].[Customer Geography].[Country])}, [Customer].[Customer Geography].[State-Province]) on 1 FROM [Adventure Works] The biggest reason I'm looking for something else is that it looks very convoluted, and also, if ...Show All

  • SQL Server microsoft visual studio cannot shut down because a modal dialog is active

    if i get this message one more time I am going to put my fist through my monitor Thanks for the info. So far all of the rep[ros I've seen have a common element which is Windows XP operating system. Does anyone have repro on some other OS Sorry for more questions than answers, but we're stumped on how to cause this to happen in our lab so we can debug it. ...Show All

  • Visual C# webBrowser1.Font = button1.Font; NOT working :(

    Hello, I'm wondering why the following code is accepted by the compiler but there's no effect in run-time. Set browser url to about:blank at design time & make button1 font a little big then... private void button1_Click( object sender, EventArgs e) { webBrowser1.Document.Body.InnerHtml = "Test only" ; } private void button2_Click( object sender, EventArgs e) { webBrowser1.Font = button1.Font; } Why it's not working Your help would be greatly appreciated. THANKS. You cannot adjust the existing font at runtime you have to generate a new font. For example: button1.Font = new Font("Courier New", 14F ...Show All

  • SQL Server Restoring a SQL2005 backup to a SQL 8.0?

    I have a SQL backup that I created on SQL 2005 but need to restore it on a SQL 8.0 SP4 installation. I receive an error when I try to restore it. The error is : Error 3169: The backed up database has on-disk structure version 611. The server supports version 539 and cannot restore or upgrade this database. RESTORE FILELIST is terminating abnormally. Any ideas This is not possible, you probably will have to a an export of the database. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All

©2008 Software Development Network