95 Topics

Member Avatar for
Member Avatar for MARKAND911

I have developed a windows application. My development environment is win7, office2007, C#, VS2010, Winforms. My application stores data in MS Access. Is there any way with which i can create a connection string based on Oledb driver version present in PC?

Member Avatar for Fenrir()
0
213
Member Avatar for MARKAND911

Is it possible to implement theme of Microsoft Office in my windows application. I mean when anyone changes theme of Microsoft Office it should also make change the theme of my windows application. If its possible, let me know how to do that?

Member Avatar for Fenrir()
0
281
Member Avatar for mohd.nasrul.iwan.fajaruddin

I've tried the methods from http://stackoverflow.com/questions/11498308/getting-values-from-two-or-more-forms-c-sharp http://stackoverflow.com/questions/3552169/sharing-a-variable-between-two-winforms http://stackoverflow.com/questions/10675872/get-value-from-parentform?rq=1 and http://stackoverflow.com/questions/14504210/passing-username-to-form-but-username-returns-null-c-sharp?rq=1 But i couldnt get mine to work as i will get some random argument error. [the two forms](http://i.imgur.com/gTwo3dZ.png) From the picture , i just want the username on Login form to be put into label1 on User form. But also …

Member Avatar for KushMishra
0
283
Member Avatar for pritaeas

I have multiple listviews on a form (WinForms). List items can be dragged to other listviews. Is there a way to cancel a single item within the dragged items list? The target listview determines whether or not a single item can be dropped there. I'd prefer a solution that will …

Member Avatar for pritaeas
0
258
Member Avatar for priyamtheone

MSDN recommends disposing any variable of type System.Drawing.Brush before its last reference is released. Otherwise, the resources it is using will not be freed until the garbage collector calls the Brush object's Finalize method. As we know, local variables are destroyed automatically when the control flow goes out of the …

Member Avatar for Momerath
0
213
Member Avatar for priyamtheone

I have an MDI application containing an MdiParent form and few MdiChild forms. The MdiParent has a fixed MenuStrip, a fixed ToolStrip and a fixed StatusStrip. The MdiChild forms have one or more ToolStrips and a StatusStrip along with other controls in them. The ToolStrips and the StatusStrip of the …

0
244
Member Avatar for G_Waddell

Greetings People of Daniweb! I'm trying to add a 3rd party control to a form and I'm getting the following message: **Unable to cast object of type 'Microsoft.Practices.EnterpriseLibrary.Data.Configuration.SyntheticConfigSettings' to type 'Microsoft.Practices.EnterpriseLibrary.Data.Configuration.ContainerModel.ITypeRegistrationsProvider' ** Does anyone have any idea why this could happen? Any searches I tried on google brings back nothing …

Member Avatar for G_Waddell
0
206
Member Avatar for Surendrasinh

Hello Developers, I Want to disable all computer Monitoring programs like TeamViewer when my winform application runs and enable it when my application runs.I want to prevent my application tracking so i need this. e.g. Suppose i already connected with other user with Remote Desktop program for some work.so he/she …

Member Avatar for Surendrasinh
0
227
Member Avatar for DCSS

I have a winform that uses a reportviewer to show a list of records. The form load correctly shows all the records in the dataset. The form also has a ToolStrip across the top of the form that allows the user to enter four pieces of information to search by. …

0
186
Member Avatar for pardeepkhatri
Member Avatar for fuhanspujisaputra

Hi everyone, i have a problem where i cannot solve it. So, i decided to post here my problem is, probably you guys can help me out. Well, here is my case: 1. i already can make a new table based on the username that user type in the registration …

Member Avatar for gusano79
0
263
Member Avatar for fuhanspujisaputra

How do i minus data from the program to the database? I have quantity and description in my database. The quantity will be 100, and the description of it will be A. When i type in my program like this (after run the program): The quantity is 50. and the …

Member Avatar for ss125
0
488
Member Avatar for NidhiSree

I have created a custom control like below. public partial class TextBoxEx : TextBox { public TextBoxEx() { InitializeComponent(); Font = Utility.normalFont; } protected override void OnPaint(PaintEventArgs pe) { base.OnPaint(pe); } } //A utility class to initialize font. class Utility { internal static Font normalFont = new Font("Arial", 18); } …

Member Avatar for Ketsuekiame
0
1K
Member Avatar for NidhiSree

I have created a custom combo box(Text box, button and List View). While typing in the text box, cursor disappears. How can I disable "Hiding cursor while typing" in my application. I goggled and found that it is the system behavior called SPI_SETMOUSEVANISH. It can be turned off but it …

Member Avatar for NidhiSree
0
1K
Member Avatar for NidhiSree

Hi All, Can I show input cursor in a non-focused RichTextBox? In my project, I have a RichTextBox and a ListView control. The focus should be on ListView control. I could handle the KeyPress and KeyDown events of ListView and re-directed to RichTextBox to enable typing. But how can I …

Member Avatar for Ketsuekiame
0
153
Member Avatar for NidhiSree

Hi, I am trying to customize default windows scrollbar in combobox like below. public partial class ComboEx : ComboBox { internal ScrollbarEx vScrollBar; NativeListWindow listControl; public ComboEx() { InitializeComponent(); DropDownHeight = 100; vScrollBar = new ScrollbarEx(); } protected override void OnPaint(PaintEventArgs pe) { base.OnPaint(pe); } protected override void OnHandleCreated(EventArgs e) …

Member Avatar for NidhiSree
0
1K
Member Avatar for vebi1000

Hi, I hav two user control's in my windows form application. In the first user control i have one "textbox" and one "save" button. I have another "Textbox" in another user control. when i click "save" button then what ever the value in "textbox" in user control one has to …

Member Avatar for JOSheaIV
0
4K
Member Avatar for priyamtheone

I have an usercontrol that contains a toolstrip. The toolstrip is exposed through the usercontrol by a readonly property 'HostStrip' with DesignerSerializationVisibility.Content attribute. In this way we can handle the toolstrip and its contents from the usercontrol. While using the usercontrol in an application, after adding the elements of the …

Member Avatar for Reverend Jim
0
139
Member Avatar for NidhiSree

I have a custom ObjectCollection class in my custom control and a public property to access this collection. //My custom Property [Editor("System.Windows.Forms.Design.StringCollectionEditor",typeof(UITypeEditor))] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public ObjectCollection Items { get { return itemCollection; } } //My custom collection class [ListBindable(false)] public class ObjectCollection : IList, ICollection, IEnumerable { //code } However, the …

Member Avatar for TnTinMN
0
284
Member Avatar for Fame95

I am doing a syntax highlighter (which is my first c# project) and I have some performance problems. Every time I have to color a word, I stop the repaint, color the word, enable repaint and invalidate the richtextbox. This is the richtextbox class: namespace test { class rtb:RichTextBox { …

Member Avatar for Fame95
0
2K
Member Avatar for Fame95

I have the following code : using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace PentruTestari { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { richTextBox2.Text = "int int"; richTextBox2.SelectionStart = …

Member Avatar for Fame95
0
369
Member Avatar for kaizen202

I am using LIstView control in virtual mode with the property listView.VirtualMode=True and I have subscribed the event listView1_RetrieveVirtualItem(). But this event is being called many times for each item. What is the reason or How can I prevent RetrieveVirtualItem() from executing many times? Please check the below code. public …

Member Avatar for lolafuertes
0
1K
Member Avatar for Fame95

I recently started to learn rich text format and i am encountering a bizarre behavior. Here is the code: private void button2_Click_1(object sender, EventArgs e) { s = richTextBox1.Rtf; s = s.Insert(s.IndexOf("colortbl ;") + 10, @"\red0\green255\blue0;\red128\green0\blue0;\red128\green128\blue0;"); LockWindowUpdate(richTextBox1.Handle); string t = @"{\cf3 test }"; s = s.Insert(s.IndexOf("int") + 3, t); //insert …

Member Avatar for lolafuertes
0
186
Member Avatar for clusterworks

Hi everyone! I have trouble putting together a chart with the contents of a data table that is basically as sex, marital status, age, and DATE . Im working with a bar chart or column chart, but I can't make it work like I want. What im looking for is …

Member Avatar for AleMonteiro
0
285
Member Avatar for //Gonz

Hello Daniwebbers I have a 2 dimentional control array which gets added to it programatically. There's a lot to add to it but i have already stumbled at the first hurdle. I keep getting the standard "Object reference not set to an instance of an object." error when the first …

Member Avatar for nmaillet
0
213
Member Avatar for liliya.tugashkina

i have a datetimepicker with format dd.MM.yyyy.. when i have, for example, date 14.02.2011, save it and then want to enter 31.12.2011 then datetimepicker validator doesnt allow me to enter 31 because of month 02 inside, so it set automatically 29 in the datetimepicker. in this case, i have to …

Member Avatar for liliya.tugashkina
0
726
Member Avatar for priyamtheone

I created a UserControl that contains a custom ToolStrip Control. While using the UserControl throughout an application, the ToolStrip control cannot be accessed directly, as logically it's embedded in the UserControl. So, to access the items of the ToolStrip I defined a readonly property in the UserControl class that returns …

Member Avatar for priyamtheone
0
948
Member Avatar for barnum

Hi, I got a strange problem with a TextBox, which is in an Xpander in an XpanderList in a custom UserControl. (Using C#, .NET 4, Visual Studio 2010, WinForms, Windows 7.) I am making a simple "auto-complete", by starting a Timer in my TextBox TextChanged event. If this timer fires …

Member Avatar for barnum
0
1K
Member Avatar for zilonox

Okay, I know some of you are looking at that title and thinking I'm quite daft because obviously I have to have a dataadapter if I have a bindingsource. And you're right, there is a dataadapter, but it's not exposed to me. I've taken over a winforms project (attached to …

Member Avatar for zilonox
0
2K
Member Avatar for priyamtheone

Hi, I'm trying to create my own numeric textbox that will handle decimal as well as whole number values. The concept is, unlike the regular textbox, this one will accept a value of 'Double' data type and show it with proper formatting e.g. Leading Digits, Digit Grouping etc. When the …

Member Avatar for Begginnerdev
0
220

The End.