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

Software Development Network >> Peter Barnum's Q&A profile

Peter Barnum

Member List

Kmartin
Huzefa
YdN
PRIDE
nomad98736
StrickatTREEV
DChap
JohnCronin
SteveRyder88
Daniel Rodriguez
Myime
mojo_jojo
Vikas Bindra
CarlosHere
sql_2k_newbie
ArchanaG
ort11
carbar
bigblueapple
sancai
Only Title

Peter Barnum's Q&A profile

  • Visual Studio Express Editions Manually move VC++ 2k5 Express installation files

    Good evening... Admiittedly I'm being somewhat anal, but I'd like to move a few of the directories around that VC++ 2005 Express created when I installed it. Generally, I'd like to split the IDE & Help files from the library and compiler. I previously installed the VC2k3 Toolkit in my C:\Cpp\VCToolkit2003 directory.  So I wanted to move the bin, lib, and include sub directories of the VC directory that VC++2k5 Express installed in C:\Program Files\Microsoft Visual Studio 8\VC into C:\Cpp\VCToolkit2005. Can I do this and just change the directories under Tools | Options | Projects and Solutions | VC++ Directoreis On a related note, ...Show All

  • SQL Server Problem connecting to SSAS

    I have installed the September CTP and am having problems connecting to Analysis Services.  The error message I'm getting is "No connection could be made because the target machine actively refused it (System)".  The log-in is set identically to what's set in Reporting Services, SQL Server 2005, etc.  Has anybody else come across this error only i try to connect to RTM version of the Reporting Services. anybody found a solution yet i see a lot of posts with this problem. ...Show All

  • Windows Forms Change the image of a DatagridviewImagecolumn for a specified cell

    First, I don't speak english. Sorry. I want to change the image of a DatagridviewImagecolumn column. First I check all the cells of DATA column and depend of this value I want to put an image into the current cell in the IMAGE column. IMAGE      DATA(DatagridviewdataTextBoxColumn) image1         1 image2         2 image1         1 image3         3 image1         1 I have read that this its control with CellFormatting event, but I don't know how. I try it with this into the ...Show All

  • Windows Forms Frustration With DLL Project

    I have only been working with .NET for a few months now, but I am quickly learning to love most of it.  Some parts however, I still think need some work. In my latest project I created a DLL file so it can be used by other applications down the road.  It is my first DLL project and right from the start I noticed some quirk ...Show All

  • Windows Forms How to find is a form already open in a Multiple form application

    hi, Please tell me how to find if a form is already open so I won't open multiple copies of the same form in the application. many thanks. -VJ You can iterate through Application.OpenForms, but there's a fundamental flaw in your approach. You shouldn't be creating forms willy nilly and not maintaining some sort of access to them from your main form. In any case, if your UI contains that many popup windows, the UI design is proably too busy anyhow. ...Show All

  • Visual Studio Express Editions Drag an image from one PictureBox to another PictureBox

    Visual Basic 2005: I would like to drag an image from within one picturebox to another picturebox and position it at a variety of positions within that picturebox. Is this possible using Visual Basic 2005 You might want to use drag and drop. Here is an excellent article with lots of example code. ...Show All

  • Visual C# opening a .txt document

    How can I open a .txt document (with notepad or wordpad) from within Visual C# program What reference(s) do I add to do this And what code Thanx using this code: Process newProcess = new Process(); newProcess.StartInfo.FileName = "notepad.exe"; newProcess.StartInfo.Arguments = @"c:\test.txt"; newProcess.Start(); How would you go about setting it so that the program that starts the process doesnt continue executing the remaining code until the user closes the notepad window Similar to this VB code: Shell( "notepad.exe " & datafilepath, AppWinStyle.MaximizedFocus, True ) W ...Show All

  • Visual C++ .Net 2005 Error during registration...

    Hi I am trying to register dll using regsvr32 and I get the error in function Lock, atlcore.h line 182. The line 182 contents are  ATLASSUME(m_bInitialized);. This function is called from statreg.h, inline HRESULT STDMETHODCALLTYPE CRegObject::AddReplacement(LPCOLESTR lpszKey, LPCOLESTR lpszItem) This dll registers fine with .Net 2002 version. Can someone suggest solution for this problem. HRESULT Lock() { // CComSafeDeleteCriticalSection::Init or CComAutoDeleteCriticalSection::Init // not called or failed. // m_critsec member of CComObjectRootEx is now of type // CComAutoDeleteCriticalSection. It has to be initializ ...Show All

  • Windows Forms My class in the property grid

    How can I make my struct or class appear in the property window the same way as classes or structs defined in .net framework, e.g. Rectangle (a plus appears on the right side and when U click on it the property extends and exposes all public properties of the class or struct in question)  I think I found a solution for  ...Show All

  • Visual Basic Need Help: Specifying toolbox icon for a web custom control?

    In VB.NET 2005, how can you specify which icon to display in the toolbox for a Web Custom Control I'm not looking for the project icon. I'm building a web custom control library (DLL). This library contains components that are added to the VS toolbox for ASP.NET projects. By default, the icon that shows in the tool box is a gear. I'm looking for a way to change that default icon to display something more meaningfull. In the 1.x framework, all you had to do was to include a bitmap file that had the same name as your class and set its Build Action to Embed Resource. ...Show All

  • SQL Server Snapshot replication - Primary key not transferred

    Hi There After using snapshot replication from Server 1 to Server 2 i found that the primary key contraint was not transferred to server 2. I used the option to truncate tables for snapshot. The indexes are there as nonclustered unique but the primary key constraint for the tables no longer exists at the subscribers. I ahve done this on 2 other servers and the primary key constraints were not lost on the subscribers. I am very confused, please help Hi Mahesh I definately did not drop the PK's. But you are right i had alot of issues with this publication it constantly failed. The 2 otehr questions you are helping me with are all relat ...Show All

  • Visual C# TCP send formatted messages

    hi,,, while i was making some tcp server client applications i found my messages sometimes wree bunching up,, and i have some snsitive data that causes errors if my data is corrupted,, so i have read in some places that is good when u sedn a tcp message to di it this way: [type][lenght][data] but,,,, how can i do it ... and then how to read it when i receive it ....... thx mig16 I don't know what exactly is happening with your code .. but if you want to do something simple let the first byte or two bytes be length and the read byte until you get to length and the that will be your message. --Yath ...Show All

  • Visual C++ Converting Project to Use msvcprt.lib instead of msvcirt.lib

    I am attempting to convert a project to use msvcprt.lib rather than msvcirt.lib.   When I run nmake on the .mak file I am getting an error 'unable to open msvcirt.lib'.   I have removed all references to msvcirt.lib in the .mak file. The error is actually occuring at the linking stage, so it looks like the reference is inside an embedded library. As far as I know I have successfully rebuilt all libraries used by the application with msvcprt.lib in place of msvcirt.lib. I am probably picking up the reference to msvcirt.lib through an include file, which includes an include file, which ....    Any ...Show All

  • Visual Studio 2008 (Pre-release) CheckBox bug when databound and IsEnabled="False", IsChecked="True"

    Here's the code the replecates the bug I'm seeing... < Window x:Class = " checkboxbug.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Title = " CheckBox Bug " Height = " 300 " Width = " 400 " > < Grid > < Grid.ColumnDefinitions > < ColumnDefinition Width = " 150 " /> < ColumnDefinition Width = " 250 " /> </ Grid.ColumnDefinitions > < ListBox ItemsSource = " {Binding Path=Items} " Dis ...Show All

  • Windows Forms DataBinding to a SQL Field of type money

    Has anyone ever had a problem DataBinding to this field type   I have a method that sets up all my DataBindings for my controls on the form and when I run it I get this error: "DataBinding could not find a row in the list that is suitable for all bindings" When I comment out the DataBindings for the fields that are pulling from ...Show All

©2008 Software Development Network