Pascal Bourque's Q&A profile
Windows Forms How can I line up labels with textboxes in a FlowLayoutPanel?
You know how in the VS2005 you have those grid snap lines, which let you align labels with textboxes in the middle (the pink line) Well flow panel still dumps everything aligned at the topmost corner for each component, and all the labels looks wierd. I could adjust the top padding on each control, but it's a pain, is there an easier way This question is better suited for the Windows Forms forum. Please reserve the C# forum for questions specifically related to C# itself. I'm moving this post to the Windows Forms forum. Michael Taylor - 6/9/06 ...Show All
.NET Development How to retrieve an image from Access DB and display in a pictureBox of Windows Form?
In a table of Microsoft Access DB, images are stored in an object-type column. Now I want to retrieve them out and display in a pictureBox of Windows Form, how to implement that with C# Using Graphics.DrawImage If so, how to construct such an image object Had better give me some sample codes if possible. http://www.eggheadcafe.com/PrintSearchContent.asp LINKID=799 The code sample available for download includes a snippet of how to do this: ADO.NET Code Generator for Microsoft Access: http://www.eggheadcafe.com/articles/microsoftaccess_source_code_generator.asp ...Show All
Visual C++ basic input
hi everyone! i try to open a common text file. #include <iostream.h> #include <fstream.h> void main() { double sigRec[50]; ifstream dataIn("13_1.txt"); dataIn.read(sigRec,50); cout << sigRec << endl; } here's my stupid questions; 1. everytime i try to run a program , they wil tell me that the Debug file does not exist. it seems that they will not build the Debug file automatically, so how do i build a Debug file 2. the codes above is one of samples that i learnt from a book. i had changed some of the criteria to my needs. in the above codes, i declare the sigRec a ...Show All
Windows Forms Scroll problem .HorizontalScroll.Value = 0;
Hey Guys, I am linking to scroll bars together by monitoring if one changes and then simply making the value of the other one the same as the one that changed. Why does this line not work Blah.HorizontalScroll.Value = 0; Setting it to 1, works but setting the value to 0 does nothing! NOTHING! Kris Problem 1/2 solved.... i was using this: private void dgvQueryResult_Scroll( object sender, ScrollEventArgs e) { this .flpFilters.HorizontalScroll.Value = this .dgvQueryResult.HorizontalScrollingOffset } Where the HorizontalScrollOffest is different to the current horizontal value. So i have created a ch ...Show All
SQL Server Using Sql Express databases with Windows Forms applications
Hello all, I would like my newly converted to .NET 2.0 Windows Forms application to use an Sql Express database instead of MSDE. Previously, development was done on the default SQL Server instance using the full SQL Server 7.0. When deployed, MSDE was used with a named instance. The connection string in the application settings needed to be modified as part of the deployment. Now I've converted to .NET 2.0 and to Sql Server 2005, and/or Sql Express. What I'd really like to do now is have a project within my solution that, when built, creates the database by running scripts, and deploys that database to the output directory of the exec ...Show All
Windows Forms passing variables to form
I made my textboxes on form1 public. I was able to access them through my form2, after I made a statement like form1 form2 = new form1(); Problem is, the text boxes are all empty on form2. Is this because I initiated a new form1 and therefore the textboxes are set back to their default as empty How can I access variables stored in form1 from form2 thanks. To have one form talk to another, pass the Form as an argument In class Form2, write a method like Public Method(Form myForm1) { myForm1.TextB ...Show All
.NET Development 407 Proxy Authentication Required
Hi All, We currently have an old Win32 (unmanaged) app out there written in VB 6.0 . This is a shareware app that has been around for a couple of years and has been downloaded by a number of users all over the world. This application talks to a managed DLL (a proxy of sorts), which communicates with a Web service . In other words, the managed DLL is really a proxy for the VB client to communicate with the Web service. The Web service is running on our central server and requires SSL in order to communicate. The VB client talks to the .NET proxy, which in turn sends all the information to our server. Any response received from the s ...Show All
Windows Forms treeview control
Hi can anyone direct me to sites with a good tutorial on using the treeview control. |I wnat to be able to change this code to vb.net With tvwMediaCategory .Nodes.Add , , "ROOT", "My Media", "CDMUSIC", "CDMUSIC" .Nodes.Add "ROOT", tvwChild, "ALL_MEDIA", "All Media", "CLOSEDFOLDER&q ...Show All
SQL Server Bitwise operation in SELECT killing performance, *sometimes*?
Hi there, We have a high volume SQL Server which gets into trouble at times, with one query blocking out others for 10-15 minutes. The query looks something like this: SELECT * FROM MyTable WHERE MyQueryColumn & 128 = 128 ORDER BY MySortColumn There is an index that exists containing MyQueryColumn. MyTable has somewhere around 550,000 rows, around 50 of which might match this query at any particular time. Almost every time this query executes in under 1 second, and everybody is happy. However, once every few weeks (or months, even), this thing takes a dogs age, blocking loads of other queries trying to hit MyTable. We did a s ...Show All
Visual Studio 2008 (Pre-release) H Updating textboxes by background threads?
Hello! A small hint please! What should I do in order to have a background thread to be able to set the text of a textbox Earlier the Invoke() method was the solution, but what now Best regards, Henrik Dahl You should be able to use textBox.getDispatcher().Invoke to cause code to execute on the UI thread. Is there some reason that is not adequate There are certainly issues with this solution, but that is what the WPF framework requires. ...Show All
.NET Development Can I Use XSL Fo With IE?
if i can use XSL FO with IE, Give Me a source Code , Please Internet Explorer does not support XSL-FO, however there is a number of commercial and open source XSL-FO Tools on the market, including free XSL-FO to HTML Converter . ...Show All
Visual Basic list(of).contains and comparing generic class
My problem is this (albeita bit of a noob question) I have a custom class which is held in a list class But when I try to search the list for the instance of the class with a property of x=1 then the compare never matches . Help When am I going wrong Example -- Public Class ConnectionClass Private _ConnectionName As String Private _Product As String Public Sub New ( ByVal ConnectionName As String , ByVal Product As String , ByVal Servername As String , ByVal Databasename As String , ByVal Username As String , ByVal Password As String ) _ConnectionName = Con ...Show All
Windows Forms Can´t logon using TaskVision for PPC2002
Hi, When i try to logon in the Taskvision app from the PPC emulator, I get this exception: Error message: The remote server returned an error: (403) Forbidden. I tried to update the web references, but it says it is unable to download the .wsdl file. How can I run it Thanks, Ken. ...Show All
Visual Studio Express Editions Users in SQL Express server
This is my connection routine for an SQL Express database I'm using with ASP.NET and C# connectionString = "server=.\\SQLExpress;uid=sa;pwd=;database=cartridge;" + "Integrated Security=True;"; connection = new SqlConnection(connectionString); connection.Open(); When I run the database in "debug" mode through the VWD IDE the connection is made and I get query data etc, but when I try to access the database from IIS I get a login failed message, I assume this means I mus ...Show All
Windows Forms FormView (Edit and Insert data)
Hi, I wolud like to manage my data using a formview... Is there a method to use the same control (formview + sqldatasource) to editing and inserting my data in the same page I must duplicate my objects only 'couse DafaultMode can be set only to "edit" or "insert" Is there a method to switch (using code) from a mode to another This is the incorrect place. You need to post to the http://asp.net forums. -mark Program Manager Microsoft This post is provided "as-is" ...Show All
