SQL Server Compact - using OleDB vs SqlServerCe
Looking for performance vs. ease of use comparisons between the two Hopefully some real world examples too ? This is for a desktop Winforms/C# app using SQL Server Compact 3.5 and .net 2.0 ...
Looking for performance vs. ease of use comparisons between the two Hopefully some real world examples too ? This is for a desktop Winforms/C# app using SQL Server Compact 3.5 and .net 2.0 ...
Is there a way to invoke a method on a background thread ? I am aware of BackgroundWorker/Creating a thread or use ThreadPool.QueueUserWorkItem etc but that's not the answer i am looking for for e.g. the SCSF has attributes to ensure the method is invoked on a background or a UI thread I'd like to do something similar for a small app ...
I'm doing some manipulation of the mouse cursor regarding clipping areas, and to this end I need to show a "fake" cursor on the screen. My real cursor will eventually be hidden, and just slightly off from the user's fake cursor to give me a buffer to preform clipping operations. But that's not really important. This is so weird. It seem...
We have an application with multiple subsystems running in different threads (ie one thread monitors the GPS, another monitors a RFID reader etc). The threads are started and monitored by a service registry which is seperate from the win forms part. The initial release of the App just had a single form which would run on an update tim...
hopefully there are some working samples else any place where to start looking Ideally should be able to able to execute methods on Background/Foreground method as marked/attributed ...
I have a created a custom keyboard shortcut for my application, when the user press combination keys of CTRL + ALT + Q, i show a messagebox "Are you sure you want to log out ?" Then if clicked YES, i log out of the application. Problem : I want to make sure that, only once instance of message box shows. No matter how many times the user...
Hi how can we get word wrap functionality to a label in winforms? I place a label in a panel and added some text to label dyanamically. But it exceeds the panel length. How can i solve this? Thanks in advance ...
I've written an app that needs a database. I've been using a local copy of SQL Server on my machine but would like to build a setup for this application that installed it's own database to support the application. I'd rather not have to have the user install SQL on their own and then configure the application. Can anyone point me in...
Hi how can i set image source to an image in winforms? my images are in Resources folder in the application only I tried like this PictureBox pb = new PictureBox(); pb.Image = Image.FromFile("Resources/a.gif"); But it is showing file not found exception. Thanks in advance ...
I have a winforms application.Winforms start with Program.cs where we have main() defined.I have put this code in try-catch block. [STAThread] static void Main() { try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new...
Hi I'm not sure if it's possible. I wrote a code like this: listBox1.Items.Add("There are " + countu.ToString().Trim() + " u's"); listBox1.Font = new Font("Arial", 12, FontStyle.Bold); listBox1.ForeColor = Color.Violet; listBox1.Items.Add("There are " + j.ToString().Trim() + " vowels"); listBox1.ForeColor = Color.Blue; When I execut...
Hi, We have a number of multiline, scrollable winforms texbox controls in .net 2.0 that need to implement pagination in order to allow the user to navigate their contents only by moving a single page (a full control's worth of text) at a time. As part of this I need to get the number of full lines of text that can be visible on screen ...
Hello, This is my scenario... I have a winForm tabControl that has a variety of fields on each tab (each tab has different fields). When the user clicks the 'Generate' button it is then supposed to pass controls from the tabControl's tab so that the called function can create an e-mail based off of the passed control's information. Each...
I have created a textbox in a Windows Forms application that starts out at a height for entering text in a single line. But I would like the textbox to automatically increase its height if the user enters text that is wrapped within the control. Currently, for this textbox, I have the properties multiline and wordwrap set to true. I'v...
hiii I am developing a window application in which I am showing a web page using c# .net browser. since my web page is quite heavy and its taking time to load . so i want to show loading image while navigating a web page .so tell me how should i do . ...
Hello everybody, I implemented a custom DateTimePicker. On the DateTimePicker there is a button. In the examples I've found it's width is set to 16. This is working but I would like to have a dynamic approach. So, is there a way to get the size of this button or is there a general way to get information about .Net-Control sub elements ...
I've got a situation (a key-based search) where I'm going to have multiple inputs of varying, but constrained, length. So I'm building a common control to use for each input, and this control has a TextBox for use when the input type is free-form text. In that case I'd like the length of the TextBox to reflect the constraint placed on th...
WinForms / C# My application allows the user to specify 1) additional information for 2) a given file, both of which are uploaded to the server. There are two isolated uploads: first the file, and (maybe much) later the metadata. Please assume the file to be always unchanged and available (to the code). When the metadata is uploaded,...
Hi there. I am starting a new Winforms application, and I've always used traditional ADO.NET methods in my DAL (...yes, hardcoding!) I have used Linq on many ocassions previously, but more for adhoc queries, so I have some experience with it and I loved how easy it was to write querying code. What I would like to perhaps do is replace ...
We have recently upgraded our windows forms C# project from NHibernate 2.0 to 2.1. We updated our app.config to include the "proxyfactory.factory_class" to point to the chosen proxy ("NHibernate.ByteCode.Castle" in our case). After the upgrade the program builds and runs as expected, with no issues. Our problem is when attempting to open...