bstoker's Q&A profile
Windows Forms Why is panel width max 32676 pixel???
I created a Table Layout Panel control including several panels in each cell. Now I detected that the max length for each of these panels is something like 32 676 (panel.width-Value) pixel. How can this be The property should be a Int32-Value! How can I now create a panel which is about 60 000 pixel long (I need this for a diagramm with scroll bar...) Thanks for any help!!! The highest resolution current monitors support is approximately 1600 pixels across. Given that you could use several monitors you'd still need 20 monitors spanned end-to-end to get to 32K pixels of width. I don't see this as an issue. If I were to wager a guess I'd say it is a limit of Windows itself. Michael Tayl ...Show All
Windows Forms Web browser help
Im new to c# and I like it a lot , but I'm having some trouble making my program work . Okay so here 's what I wanna do . I would like to have my form on load go to a url . This I have already done. Then I need my form to hit a button which will bring it to another page . Then It should enter text in an appropriate text box then hit another button . I tried to find material on the webbrowser class and searched google on diff search terms and didn't really find anything helpful . So if someone could point me in the write direction with a website or 2 that has this on . Or tell me something to research I would be greatfull . Hi! Can you explain better your problem And, are you using .NET version 1.x or ...Show All
.NET Development library linking
I have a windows form application in c++ and a dynamic library "mylib.dll".The library has a function myFuntion(char* ,char*). Where i must put the library How can i link the library and use the function I have Visual Studio 2005 Ahh, OK I thought that it were in Managed C++, Yes that's true that Refrence can be added to .net Dlls, COM dlls and ActiveX controls only. You cannot add unmanaged ddl in your references, however if you want to use functions from your dll into your application: Put dll file in with the exe file of your application. Use P/Involke to call its functions. I assume you have knowleged about P/Invoke and [DllImport()] Attribute, if not; please check MSDN f ...Show All
Visual C# installer project error :This installation package could not be opened.
Hi every one.... I am having a problem in install the .msi file created by VS2005 using C#. I created a setup project for windows application by VS2005 using C#. When i click the mySetup.msi its installed successfully in the computer. i copied the mySetup.msi into another computer and try install it,its successfully installed. My problem is: I uploaded mySetup.msi into the application1 folder in my webserver. Then i download the mySetup.msi using following url: http://www.mysite.com/application1/mySetup.msi Its downloaded successfully then i try to install it it produce the following pop error : "This installation package could not be opened.Contact the application vendor to verify that this is a valid Windows Ins ...Show All
Visual Studio Express Editions MsgBox with multiple lines
Like This MsgBox( "Some text." & Chr(10) & "some new line " & Chr(10) & "and other some new line " , 16, "titleofmsgbox" ) ...Show All
Visual Studio Team System Add Related Work Item to different Project?
So I'm considering setting my TFS up so that we have a Project for each of several products, and also a project for each of several common assemblies. Normally, a bug would be logged against one of the Products, since the person logging the bug wouldn't (in theory) be aware of the underlying modular structure. Somebody would review the new bugs and decide which module(s) they actually belong to. So I'd like to be able to open a bug and choose Add Related Work Item to make a related bug, but in a *different project*. I get the distinct impression I can't get there from here. Perhaps others have pondered this and have other options. One that I can think of is to have one project for "everything" and use the "Area" to set ...Show All
Visual Studio Express Editions Need Help having ComboBox2 Pull Information Based on the selection from ComboBox1
Hi, I have 2 combo boxes (ComboBox1 and ComboBox2). ComboBox1 contains the following items: > Balance > Centrifuge > Electrophoresis > Fermenter > Freezer > Heat Block > Miscellaneous > Mixer > PH > Pipette > Pump > Water Bath Each of tese items is a worksheet within a workbook from an Access 2000 database. When one of these items is clicked, I want ComboBox2 to pull the column called "Manufacturers" from the selected worksheet (ComboBox1 item) and list them within ComboBox2. How do I go about populating ComboBox2 with ComboBox1 Thanks Hi, So you have all the Pumps in one table etc and you just want a list of the manufacturers If this were an SQL query you coul ...Show All
Software Development for Windows Vista Type Intialization Error for Custom State Activity
Hi, We have Created our own custom State Activity called " WorkflowState" by deriving it from System.Workflow.Activities. StateActivity. We have succesfully created the workflows using visual studio. The Designer shows the custom state and we could add the event driven activities. But when we come back later and open the Workflows using the Visual Studio Designer, we get the following error. Error Loading Workflow The type initializer for UTProduct.Web.Workflow.Activities.WorkflowState threw an exception. This behaviour is different on different machines. Sometimes after cleaning the solution and re-opening visual studio helps me in opening the workflows. But sometimes it never opens. Please find the co ...Show All
SQL Server Manually changing flat file source has no effect
I have a data flow that reads from a flat file source, goes through one data transformation component to change from unicode to normal text and writes the data to a SQL Server table. This has been working fine throughout development using a specific source file as input. I have now manually changed the path and name of the input source file in the connection manager to point to a new file and the task continues to process the old text file. I open the connection manager and check its properties and preview the data and it all looks fine - it is finding the new file. I also edit the flat file source component and preview the data and it shows the data from the new file. I run the data flow by right-clicking and se ...Show All
SQL Server SQL Execute Task
Hi how would you use a package variable in inline sql, is there a format utilized Are there any steps I need to take to do that I currently have the SQL Execute task inside a ForEach Loop container, which has the variable mapping for the ID that i need for the SQL Execute task. I just need to know the syntax to use parameters in my query in my task. here is the current code which doesnt work: INSERT INTO LAFProcess.ProcessList (WorkListID, CreatedOn, ProcessStartedOn, Status) SELECT WorkListID, GetDate(), NULL, 2 FROM LAFProcess.WorkList WHERE Status = 2 AND LoanApplicationID = " + @[User::LoanApplicationID] +" UPDATE LAFProcess.WorkList SET Status = 1 WHERE LoanApplicationID = " + @[User::LoanApplicationID] +& ...Show All
Windows Forms how to just show the help button?
I have a form and I just want to show the help button on the with out showing the max, min buttons and system menu.. Set the MinimizeBox and MaximizeBox properties to False, HelpButton to True. To disable the system menu, you need to add this code to your form: private const int WM_SYSCOMMAND = 0x0112; private const int SC_MOUSEMENU = 0xF090; private const int SC_WONDERWHAT = 0xF093; private const int SC_KEYMENU = 0xF100; protected override void WndProc(ref Message m) { if (m.Msg == WM_SYSCOMMAND && (m.WParam.ToInt32() == SC_MOUSEMENU || m.WParam.ToInt32() == SC_KEYMENU || m.WParam.ToInt32() == SC_WONDERWHAT)) return; base.WndProc(ref m); } SC_WONDERWHAT: it didn't behave the way the SDK docs sa ...Show All
Visual Basic DateTimePicker and language
Hi everybody first: thank for your help second: i have a DateTimePicker with a custom format like dd MMM yyyy. it display 13 dec. 2006. it's right my regional settings is fr, for all of my application, it' right too but for date, i want an english format: "dec" instead of "dec" how can i do it is there a method or value for define them thank's everybody for your help Regional/CUltural formats are taken care of in the System.Globalization Namespace for date and time see: Public Overridable Property DateTimeFormat () As System . Globalization . DateTimeFormatInfo Member of: System . Globalization . CultureInfo Summary: Gets or sets a System.Globalization. ...Show All
.NET Development synchronization
Hello, is there any difference between locking an object to manipulate a resource, and locking the resource directly For example: // class members private object _lock_queue = new object(); private Queue _queue = new Queue(); // access to _queue by locking the _queue directly lock (_queue) { // do something with _queue } // access to _queue via _lock_queue lock (_lock_queue) { // do something with _queue } ... any side effects by choosing one or the other solution It is used by the collection classes that implement the Synchronized() method. While that returns a thread-safe wrapper for the collection object, it isn't thread safe for enumeration. The SyncRoot property allows locking while enumerating the ...Show All
.NET Development CustomCulture Problem?
Update on the problem. If I change my custom culture info to use "en-Tgl", or "fr-Tgl" instead of "en-US-tgl", it will fix the crash. It seems if I create a custom culture that is using the current cultureInfo (for example "en-US") as it is parent, the run time will use the custom culture to load user controls even if the current culture and current ui culture is set to "en-US". thanks/ chong -- previous post ----- Hi, I am got the following error when tring to load a custom control in my WPF application from a host window. (two differrent assemblies). mscorlib Culture name 'en-us-tgl' is not supported My customculture is defined as public class CustomCultureInfo : C ...Show All
SQL Server Lookup transformation using effective dates
Hi, I need to perform a lookup based on a business key and a date in the source that must be between an effective from and effective to date in the reference table. I've been able to achieve this by updating the SQL caching command on the advanced tab but the performance is very slow. I have 6 lookups of this type in the data flow with a source SQL statement that returns approx 1 million rows and this package takes over 90 minutes to run. The caching SQL command now looks like this select * from (select * from [ReferenceTable]) as refTable where [refTable].[Key] = and BETWEEN [refTable].[StartDate] AND [refTable].[EndDate] and I've set up the parameters so that the business key is the first parameter and the source date is the ...Show All
