Answer Questions
Kevin McElhiney datagridview with dateedit column
Hi, how to specify a column as dateedit like combo,textbox thanks venp-- Hi,venp Make sure: the column which uses DateTimePicker control is bound to a database field of datetime type or other type alike. And how about post some code to let me help you find out the problem Best Regards. Ye An alternative method without developing your own DataGridView column: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; namespace WindowsApplication1 { public partial class Form27 : Form { public Form27() ...Show All
Sweed How to create a custom events in User control ?
I have question about defining events and raising event in another custom control. Now let me explain you about my problem. I am working on wizard type application. which has a several steps. I have created one user control, which contains next and previous button. It behaves as a container to other controls. These controls have a next and previous button on it. It has all functionality about next and previous. I have created another user control, which has functionality about the specific user interface. Now I have added this user control (user interface1) to the container user control. Same way I have created another user control with different user interface and added to the container. so on... My question is I would li ...Show All
enric vives IsMdiContainer
Is it possible to define the size of the MdiContainer Sorry the bad english. Thank you. I have it like this: #region ToolBar1 private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e) { if (c1 == false ) { Form2 tobogan = new Form2(); tobogan.MdiParent = this; MdiParent.Size = new System.Drawing.Size (100,100); tobogan.Show(); c1 = true; } } #endregion I want to restrain the MdiContainer Area on a Form but i just cant size it like another object :| MdiParent.Size = new System.Drawing.Size (100,100); i get this error: An unhandled exception of type 'System.NullReferen ...Show All
&#59;lkj&#59;lk Is this legal for me to do this?
If not, i will happily stop, but right now, i am having a blast with Terrarium in .Net 2.0. http://tanderson.cbs-posi.com/MyTerrarium/checkmeout.jpg I am real, and still alive, although i have given up on the project due to me just wanting to see if i could do it and i succeeded in making the exe work as i wanted it to. Plus the peer2peer stuff was quite interesting to reverse. http://tanderson.cbs-posi.com/MyTerrarium/terrarium.jpg As you can see, thats just the executable running in .Net 2.0 from the Visual Studio Environment, and yes, the version number is wrong, but i can still introduce local bugs to the system, just they don't propogate throughout the system due to the vers ...Show All
aaks access control given its name as a String
I have a text file containing in every line the name of a control and the values of some of its properties. I want to create a method which reads the file gets the name of the control and the value of the property and sets it. How can I do this nobugz wrote: The Designer.cs file for a form. Sorry for being so vague. No, it's not your fault. I didn't specify that I use Visual C++ 2005 Express Edition. Probably in this environment doesn't exist an equivalent to Designer.cs. Some day, one of the significant discoveries you'll make when working with Visual Studio is to find the "Show All Files" icon in the Solution Explorer window. Click it today. You ...Show All
djshades2004 Publish ClickOnce project with Team Build?
Does anyone have any examples of how to create a Team Build BuildType that publishes the project similiar to the way you manually do it in visual studio I already have the BuildType created and working (it gets kicked off on a schedule). I've also created a BeforeDropBuild task that does GenerateApplicationManifest and GenerateDeploymentManifest that also works. This was a bit confusing -- when the BuildType is run not through the GUI many of the properties don't exist and most of the examples appear to assume they would. Anyway, these steps work in that the build does not fail. Somehow I need to publish the manifest I suppose, but I can't find any examples of how to do it. I'm not even sure I know the right questions to ask. Any help w ...Show All
Jakein2006 COM registration fails in VS2005
In my setup project for a COM wrapper project the COM registration is not occurring. During the build and installation process no errors are listed or occur, everything appears to go successfully. When I run Excel, which creates an instance of the wrapper object, I get the "can't create object" error at the point where the code creates a new instance of the object - Set x = New MyComWrapperObject. I've tried all of the tricks/tips that I could find - removing the project output and manually adding the files, making sure that both the .tlb and .dll have the proper COM registration settings (vsdrfCOM and vsdraCOM respectively), making sure that "Register for COM Interop" is checked, the COM wrapper class has a valid As ...Show All
Raja Pratap Do i understand Beginedit()?
Hi, I am trying to edit a row in my database, but the value doesn't want to stay. When I close the program and reopen it the row just reverts back to it's original value. I'm not sure if I am using begin and end edit correctly. Are they meant to save the new edited row Here's my code: Step.Email.FindByID(0).BeginEdit(); Step.Email.FindByID(0).Text = SuccessString; Step.Email.FindByID(0).EndEdit(); Step.Email.FindByID(1).BeginEdit(); Step.Email.FindByID(1).Text = FailureString; Step.Email.FindByID(1).EndEdit(); Step.Email.AcceptChanges(); (Step is my Dataset) Ah things are starting to come together now. The problem is that you have a constraint violation. You are ...Show All
eric_from_nj Scrollable Datagrids & Freeze Panes
I have created a datagrid using C#.NET and was looking to make the datagrid scrollable and have the header frozen when u scroll, like excel. I have got sample code from various sources and it keeps mentioning apply to a CSS file. Do I create a css containing all the necessary code and call it in, if so how and where If there's a different / correct way of doing it place let me know. Thanks for looking Paul. Help needed urgently, thanks thanks for the reply, saw that sort of idea on msdn info. Although, just stuck at it and managed to get the actually table header to freeze. Now though I am trying to get a couple of columns to freeze when you scrol ...Show All
Ravishesh Can't bind txtBox.AutoCompleteCustomSource to My.Settings.MyCustomSource
It appears that I am not able to bind the AutoCompleteCustomSource of a Windows TextBox to a User settings property that I establish with a Type of System.Windows.Forms.AutoCompleteStringCollection. For example, under the (Application Settings) property of a text box in the IDE designer, when I click on the (Property Binding) option, the AutoCompleteCustomSource does not show up as a property that I can bind to an application setting. Why is this Yet, I am able to put the following in my form load and closing events to preserve the values in the AutoCompleteStringCollection: Private Sub XXXXX_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load txtCommand.AutoCompleteCustomSource = My .Sett ...Show All
1nsane Creating Button Controls at runtime and capturing each of their click events
Hello, I am trying to create multiple buttons at runtime and capture the click event for them (for all of them). However, when I try to capture the click event, I can always only capture the click event for the last button. Anyone know of a way to work around this problem Here is the code I am using: Imports System Imports System.ComponentModel Imports System.Windows.Forms Imports System.Drawing Public Class Form1 Public WithEvents btn As Button Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load For looper As Integer = 1 To 20 'Dim btn As New Button btn = New Button btn.Height = 25 ' Set Size. btn.Width = 150 btn.Left = 20 ' Set Location b ...Show All
dyowee Visual Studio 2005 View Form Designer
Let me explain the whole schenario-- I am using Win XP on my machine. I am developing one windows based appliction in Visual Studio 2005 with the third party controls used on my forms.I can run and open the designer on my machine easily. But when I try to open (especially, the form designer) the same application on my other machine it shows me the following error. However, I am able to run the application too but not able to view the form designer in the design mode. "An error occurred while parsing EntityName. Line 2, position 93." and then all XML lines.....as below------ at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderIm ...Show All
Tewks Autocomplete ComboBox
Is there a way to set the size of the autocomplete dropdown You know when you type in a text in the combobox it will suggest come values in a dropdownlist. Can the size of the thing be set Thanks, VS2005 supports the DropDownWidth and DropDownHeight properties for a ComboBox to set the size. The height is new for .NET 2.0, in previous versions in might be set by the size of rectangle you draw when you drop the control on the form. AndrewVos wrote: You can't change the width of the actual comboBox rather It's a bit small for an autocomplete combobox IMO... the thing is that .. its only numbers .. between 0 and 59. So it won't make much sense .. to make it bigger as it can only hold a ...Show All
santhony7 Access Data Export to Excel spreadsheet
Hello everybody, ---------------------------------------------------------------------------------- Development Tool: Visual Studio .NET 2005 Programming Language: Visual Basic .NET Application Type: Windows Form based Issue: Take Access data (maybe even data from forms controls) and export to an Excel file ---------------------------------------------------------------------------------- I have created a windows forms application that interacts with a Microsoft Access database. This database collects tons of statistical information on trainees and what we call solutions. It also tracks user login and logout times and dates, as well as other information. I presented the alpha version of the software to a large group ...Show All
GeoffNin Trying to access another process from my Win Form
Hi, I am trying to access another process from my application. The problem is I am not able to activate this process and give tab sequences in it. This is the code I have written. What to do after this Please give suggestions. private void Form1_Load( object sender, System. EventArgs e) { Process myProc = Process .Start( "IExplore.exe" , "http://kshop/kshop/default.asp" ); int id = myProc.Id; Process .LeaveDebugMode(); Process p = Process .GetProcessById(id); // After this, how do I activate this process //SendKeys.SendWait("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}"); //this command is not working } I was exactly going to suggest that AndrewVos, goo ...Show All
