riley.'s Q&A profile
Visual Basic Culture info failure
I am building an application for a French client. We originally had a problem with spurious characters being added at the beginning of the text output files created with WriteAllText, but managed to overcome this by Imports System.Globalization Imports System.Threading Dim myCIintl As New CultureInfo( "fr-FR" ) Application.CurrentCulture = myCIintl Now that has stopped working. When I publish t ...Show All
Visual Basic HOW TO: Prevent Image Degradation while using the ImageList Component
Problem: I’m using an ImageList object to maintain an array of predefined images. I’ve tried utilizing the ImageList property for both the Label control and the PictureBox control. However, the images Bitmap or Icon files lose their image quality. Question I ImageList Configuration: imgIcons.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit imgIcons.ImageSize = New System.Drawing.Size(48, 48) imgIcons.Tran ...Show All
Visual Studio ProjectReference
I'm generating a 3tier solution (business facade, business rule, data component). The name of the 3 assemblies is asked through the wizard. The reference between the assemblies should automaticaly be created. This is done with the code here under : <ItemGroup> <Reference Include="System"/> <Reference Include="System.Data"/> <Reference Include="System.Xml"/> <ProjectRefere ...Show All
Visual Studio Tools for Office Selection.PasteExcelTable not working correctly the first time it is called
Hi, There are specific circumstances under which Selection.PasteExcelTable does not behave as expected the first time it is called. The following are the steps to reproduce it. In a Word Template project, add the following code private void ThisDocument_Startup(object sender, System.EventArgs e) { UserControl1 userControl = new UserControl1(); userControl.button1.Click += new EventHandler(userControl_Click); this.ActionsPane.Contr ...Show All
Visual Basic please help!
EDITED: Sorry about the post I'm hesitant to write the code, because most of the time, you'll come back asking to write more code... The forums are used for help on specific things, not making the entire app. Instead, i am going to give the link to 101 VB samples. you'll find examples for pretty much all you've requested in your post there. Read them, use them, learn them. 101 VB 2005 Samples Dustin. ...Show All
Visual Basic Filter datetimepicker (Start Date end Date)
Hello I've got a database in access and i'm trying to do my first steps in VB Express 2005. I had made a datagridview from one table of my database which contens many columns, one of that column is the field DATE. 1. I want to filter the datagridview by date ( lets say 1/1/2005 to 31/06/2005 - i had made to DateTimePicker fields with value of date). 2. How can i set default value "*" or "ALL" to a Combobox and then use it to filter the dat ...Show All
Windows Forms tabcontrol and event handler problem
Hello, hopefully someone could help me with the following problem: I have a windows form with a tabcontrol, several tab pages. Each of the tab pages has textboxes and combo-boxes on it. The form is quite large and the user must fill in certain ...Show All
Visual C# SQL lookup
I am a new user to Visual Studio and SQL Server. This is probably a question that has been asked before but I can't seem to find it anywhere. I have an SQL database with two tables. One has a primary key and the second has a primary key with a foreign key referring back to the first table. I display the fields that are of interest in about 9 text boxes. My question is how do I use the text box containing the key for the second table and derive t ...Show All
Visual C# Why does Visual Studio 2005 starts to consume 100% of my CPU?
Hello, Sometimes Visual Studio 2005 starts to consume 100% of my CPU. I've tried see if it is when I'm doing something specific, but I cannot put my finger on what it is that might trigger it. It is my first solution in VS 2005, so I have no clue if it's specific to this C# solution. I have a Windows Forms project and a Webservice project in my solution, all connected to a SourceSafe 6 database. This far I've always been editing ...Show All
Visual Basic Application.ThreadException event troubles
Could someone explain why this code will not trap unhandled exceptions. This is in VS2005 and is a simple winforms app with a single form: Public Class Form1 Private Sub Form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load AddHandler System.Windows.Forms.Application.ThreadException, AddressOf ErrorHandler End Sub &nb ...Show All
Visual Studio 2008 (Pre-release) Is peerchannel enough for one-one chat application?
The peer-to-peer chat sample in SDK is fit for multiparty chat. So, how implement a chat application like msn which provide one-one chat Thanks. Thanks for your kindly reponse. I have no ideas on how to restrict the conversation in two persons since the peerchannel is used. Any suggestions anyother question, can peerchannel be used in a multipart video conference application as the performance is concerned ...Show All
SQL Server Problem with Totals with calculated cells
Hello I have a problem with totals I have the following dimension -Turnover 700 ----Software 100 ----Hardware 150 ----Other 200 ----Other total 250 The other total is a calculated cell where I make a sum of Software and Hardware, This works fine in the cube But the total of turn ...Show All
.NET Development Batch INSERTS into MDB
I have a string array containing sql INSERT statements that I want to run. Here is the code: For i = 0 To UBound(sqlArray) sSQL = sqlArray(i) command.CommandText = sSQL command.ExecuteNonQuery() Next This works fine IN DEBUG MODE but not in runtime. In Runtime, only the last insert works. The solution - I think - to ensure running the next quer ...Show All
.NET Development UI Guidelines
Hi, does anyone know where the User Interface guidelines can be found for Longhorn (Vista) Regard Graham Hi Graham, Take a look here: http://msdn.microsoft.com/windowsvista/building/aero/default.aspx Also this(mentioned below) would be better newsgroup for questions on Vista... microsoft.public.windows.developer.winfx.aero Regards, Vikram ...Show All
Windows Forms Changing component size on windows resize
I can't remember this one from my old days of Windows programming. I want to change the width of an object when the form size is changed. How do you do this No wonder you're an MVP Ken! That worked like a charm! I'm ...Show All
