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

Software Development Network >> C. Charpentier's Q&A profile

C. Charpentier

Member List

Don Higgins
lib_team
Phonics3k
kenlefeb
Ron L
venp
Shawn Wildermuth - MVP (C#)
AshleyC-UK
John_Enters
jchau
Walter30140
Sabrecat
c# interface
Simranjeev
Trevor E Hilder
Shruti00
mrotoloni
Rich Wood
doener
SnowJim
Only Title

C. Charpentier's Q&A profile

  • Windows Forms Vertical scrollbars on multi-column listbox.

    I am developing an application with Visual Studio 2005, C# and SQL which will replace an ageing application we use in our office. My application requires a listbox with multiple columns which has a vertical scrollbar only. However, when working with the form designer, the moment the listbox is switched to multi-column mode, the form designer automatically switches to a listbox with horizontal scroll bars only. I am hoping to make my application so that horizontal scrollbars are not required by fixing the width of the columns I want. The listbox will show a list of SQL databases which the user can select. The additional columns are only to show various dates when the databases were extracted/updated. The reason for a listbox is be ...Show All

  • SQL Server Error: Attribute key cannot be found

    Helo, I have the following problem I have one fact-table in my cube And I have one dimension table When I process the cube I get the following error: "Errors in the OLAP storage engine: The attribute key cannot be found: Table: dbo_fbi_analytic_journals, Column: journals_key, Value: 306." I understand the error, and I know why I get the error, but how can I solve the error In the fact-table there is a record with key 306, but this key is not found in the dimension table. What I want is that in the cube are all the record that are in the fact-table with a reference in the dimension table, so the record with key 306 must not be in the cube Anyone an idea Thx right-click on the cube in the solution explor ...Show All

  • Visual C# Copy file to folder

    string cpath = listBox2.SelectedIndex.ToString(); string cpath2 = cpath + "temp"; if (cpath.Substring(cpath.Length-3,3).ToLower() == "xml") { File.Copy(cpath, cpath2); } I have a listbox of folders and when i click a folder the files appear in my listbox2...i want to select one the files click by button and that file is copied to my c:\\temp folder.....I am getting the exception that my start index must be less than zero....any help...thanks! Tryin2Bgood wrote: string cpath = listBox2.SelectedIndex.ToString(); that should really be if (listBox2.SelectedIndex==-1) { return; } String cpath = listBox2. SelectedValue ; You SHOULD use my code from above however als ...Show All

  • Visual Studio Team System Installing Web Deployment Project on TFS Build Server??

    Hi All, I installed the Web Deployment Project add-in to my VS.NET2005 IDE and created a project, added it to the Source Control, and can build the entire soln and ewb deployment proj fine via IDE. I set all the correct Configuration Manager settings per ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnaspp/html/web_deployment_projects.asp ) I created a new Build Type and added a line to the TFSBuild.proj file which is required b/c those targets are needed in the MSBuILD file < Import Project = " $(MSBuildExtensionsPath)\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets " /> How can I properly install this MSBuild file on our TFS Build Server Do I run the Web Deployme ...Show All

  • Windows Forms Arraylist is populated using a custom class. Listbox Datasource set to the ArrayList. Error: Object must implement IConvertible

    I have an custom class that I use for populating an ArrayList that I then use as the DataSource for a listbox in ASP.Net. Problem is it was written in VB but needs to be C#. I have completed the conversion except for one statement that does not work as it did in VB. Problem statement is when trying to pull the SelectedItem. VB: ( Works Great !) strCode = CType(cboLocation.SelectedItem,clsListElements).LocType C#: (Fails with an error) strCode = ((clsListElements)System.Convert.ChangeType(cboLocation.SelectedItem, typeof(clsListElements))).LocType; ERROR: 'System.InvalidCastException' {"Object must implement IConvertible."} My custom class C# (Partial Code): public class clsListElements { private string strDes ...Show All

  • Windows Forms RichTextbox bold

    hey, I am having trubble amkign the text in the richtextbox bold..I used this code: thisrichtextbox.SelectionFont.Bold = true ; but it gives me this error: Property or indexer 'System.Drawing.Font.Bold' cannot be assigned to -- it is read only Thanks:) use the control's font instance instead i.e: this.Font........ would use the current font being applied on the form this.theRTBControl.Font.......would use the current font being used in the RTB Control ...Show All

  • Visual Studio Express Editions How do I set the fontsize and color of body text using mailto:?

    -Visual Basic 2005 Express- I've searched the internet and forums for 2 hours looking for a way to 'programmatically' change an emails font and color in the body. I haven't found anything on either of these. The following code is what I have so far. It works fine but I'd like to change the font size and color. There must be a way... Process.Start( "mailto:" & clemail.Trim & " SUBJECT=Notification%20of%20payment%20recieved&BODY=Payment%20recieved%20" & temp2 & "%0D%0ADate:%20" & Date .Today & "%0D%0A%0D%0AThank%20you%20for%20your%20payment.%0D%0A%0D%0APlease%20retain%20this%20receipt%20for%20your%20records." ) clemail is the customers email address. Any ...Show All

  • Visual Studio 2008 (Pre-release) Problem of creating xaml projects in .net framework 3.0

    I m unable to create xaml new project in .net framework 3.0. there are 19 files in xaml brower application project in vs 2005. but in my system 18 files are created only in new project folder. in my system i m unable to create XAMLBrowserApplication1_TemporaryKey (*.pfx personal information Exchange) file.and bcoz of these i m not able to create the xaml browser application.can any one tell me the possible reason. error i got while creating the project is "System cannot find specified file". I think it'd be a better idea to keep the discussion on this Forum thread. Others from the community have a chance of contributing their suggestions and solutions. Also anyone else who hits this probl ...Show All

  • Architecture use of snk file

    Hello everybody, This is somewhat layman's query. i have read about snk files to be included in the assembly to sign it and protect it from unknown people for which it is not meant for. I don't understand that how can we protect an assembly from an snk when we pack that in the assembly itself. Can somebody please t ake out some time and explain what exactly is the purpose of snk file and how exactly it serves that purpose. Also why do we need a Assemblydelaysign property in assemblyinfo.cs file. Thanks for your help rajiv Hi Diego, You have given the best possible elaboration on why to use snk files. Thanks a lot regards rajiv ...Show All

  • Software Development for Windows Vista Developing RTP Renderer & Source Filters in DirectShow

    Hello Fellow Developers, I have been trying to find a way out to write RTP Source and Renderer filters for streaming H.264 video over the network, but so far no one (even resources on net) have given me idea how to go about it. Some links are suggesting use of JRTP Lib but there also its just words rather than some indicative code. I request all of you to help me with resources or links. Thanks in Advance Menghraj P. Menghraj wrote: Hello Fellow Developers, I have been trying to find a way out to write RTP Source and Renderer filters for streaming H.264 video over the network, but so far no one (even resources on net) have given me idea how to go about it. Some links are suggesting use of JRTP Lib ...Show All

  • SQL Server Using output from a Stored Procedure as an Output Column in the OLE DB Command Transformation

    I am working on an OLAP modeled database. I have a Lookup Transformation that matches the natural key of a dimension member and returns the dimension key for that member (surrogate key pipeline stuff). I am using an OLE DB Command as the Error flow of the Lookup Transformation to insert an "Inferred Member" (new row) into a dimension table if the Lookup fails. The OLE DB Command calls a stored procedure (dbo.InsertNewDimensionMember) that inserts the new member and returns the key of the new member (using scope_identity) as an output. What is the syntax in the SQL Command line of the OLE DB Command Transformation to set the output of the stored procedure as an Output Column I know that I can 1) add a second Lookup ...Show All

  • SQL Server Pivot Task Error - Duplicate pivot key

    I am using the pivot task to to a pivot of YTD-Values and after that I use derived columns to calculate month values and do a unpivot then. All worked fine, but now I get this error message: [ytd_pivot [123]] Error: Duplicate pivot key value "6". The settings in the advanced editor seem to be correct (no duplicate pivot key value) and I am extracting the data from the source sorted by month. Could it be a problem that I use all pivot columns (month 1 to 12) in the derived colum transformation and they aren’t available at this moment while data extracting is still going on any hints Cheers Markus The pivot transform takes values like: cust# Product Qty ----- ------- --- ...Show All

  • SQL Server SQLexpress command line error

    I have SQLEXPR (SP1) and expanded it with the /x switch. Next, I tried the following from the command line and the installation generates an error message about my test password not being strong enough. setup.exe /qn ADDLOCAL=ALL SECURITY MODE=SQL SQLACCOUNT="NT AUTHORITY\NETWORK SERVICE" SQLPASSWORD=elinor&2JACOB2#zinno SQLBROWSER="NT AUTHORITY\NETWORK SERVICE" SQLBROWSERPASSWORD=elinor&2JACOB2#zinno DISABLENETWORKPROTOCOLS=0 SQLBROWSERAUTOSTART=1 I'm trying to create a customized SQLexpr. Is this the correct way to do it What am I doing wrong Thanks, jerry hi Jerry, provide a SAPWD=<StrongPassword> as well, as indicated in http://msdn2.microsoft.com/en ...Show All

  • Visual Studio Express Editions DataGridView.CellFormatting Mysteries

    Hi, I’m taking my first trial run with the DataGridView(DGV). I created the columns and filled the rows programmatically with test data in the form Load event. I then attempted to change the format of one of the cells with the following code: Private Sub DGV_CellFormatting( ByVal sender As Object , ByVal e As _ System.Windows.Forms.DataGridViewCellFormattingEventArgs) _ Handles DGV.CellFormatting Dim MyCellStyle As New DataGridViewCellStyle MyCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight MyCellStyle.ForeColor = Color.Red If e.ColumnIndex = 0 And e.RowIndex = 1 Then e.CellStyle = MyCellStyle End If End Sub The text in Column(0) and Row(1) was red and aligned right, b ...Show All

  • Visual Basic Help i have Exception from HRESULT: 0x8007007E

      Hi My friend im use System.Runtime.InteropServices <DllImport( "inpout.dll" , EntryPoint:= "Out32" )> <ComVisibleAttribute( True )> _ Friend Sub Output( ByVal valueint As Integer , ByVal Adress As Integer )   End Sub and when Call Output Sub like that Output(0,800) (((((Get This Erorr Exception from HRESULT: 0x8007007E )))) Coz i wanna talk to LPT1 Port USE inpout.dll and i have  import inpout32.dll to My  debug or release directory Help Me Please About my OS Vista Ultimate(Bulid 6000) Visual Studio2005 Team Suite thanx   Hi, See these results too.>> http://search.microsoft.com/results.aspx mkt=en-US& ...Show All

©2008 Software Development Network