Answer Questions
hansduncan Datagrid
Hi everyone, May i know how to read all the values in a datagrid one by one. I want to add all the values in each row in a particular column in the datagrid. Is it possible to do so LynnOoi wrote: Hi everyone, May i know how to read all the values in a datagrid one by one. I want to add all the values in each row in a particular column in the datagrid. Is it possible to do so Are these values that you want to read stored some where, the datagrid can be assigned to the datasource to retrieve data you want. refer http://www.codeproject.com/cs/miscctrl/csharpgridcontrol.asp http://p2p.wrox.com/topic.asp TOPIC_ID=15360 hope these links would help May i know what verysion of visual stu ...Show All
Bruxir datetimepicker and datagridview
hi, is it possible for me to make the columntype of datagridview as calendercolumn. how can i do it hi i made the column as calender. but i am binding that column with a datetime field in SQL table.(vb2005 i m using and odbc for connection). when im trying to add a new row its is showing an error with the calendercolumn of datagrid. i think its because the calendercolumn is date only and table field is of type datetime. hw can i solve this prob plz help http://msdn2.microsoft.com/en-us/library/7tas5c80(vs.80).aspx also http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=152467&SiteID=1 Cut and pasted from URL above: I've finished writing the first DataGridView FAQ. This isn't just a list o ...Show All
xlthim Bug in application settings? (Properties.Settings.Default)
In design time, I created a new setting, called "stringBag".. its type is StringDictionary. Then my code does this: StringDictionary sd = new StringDictionary(); sd.Add("ab", "Blue sky"); sd.Add("abb", "Here is text"); Properties.Settings.Default.stringBag = sd; Properties.Settings.Default.Save(); For some reason, it doesn't save it. It saves other settings if I specify them.. like simple strings or integers. But the StringDictionary doesn't save. Any ideas why I know it doesn't work because I look at the .xml file and see it has not written the StringDictionary to the file, but other settings I changed were saved just fine. ...Show All
R.Tutus Design time events
How to resolve if current root designer begin to close, in other words we click close button on designer window Hallo AlexU, one possibility is to implement a custom designer for all forms or for a component that is located on all forms and override its Dispose(). HTH, Dima. Override the OnClosing method of that form. If you want to cancel the closing, set CancelEventArgs.Cancel to true. I read this two answers, and then i hade brain-wave, i try to use IEventBindingService to atach to form closing event. Moved to Windows Forms Designer forum. We have a project in design time. Project e ...Show All
GRK Where is the code?
I drag-n-dropped from my dataset into my form, and so I've got an autogenerated-access-styled-"binding navigator" toolbar. Cool. I need to customize the delete action: so, where (the hell!) is the code executed when you press the "red cross" button I'm going crazy about that... Sorry for the dumb question, but i've spent the last hour looking for it without luck.. You can find the method in the Constructor of the Form.... Hi, thankyou for your time. I already found that code, here it is: // bindingNavigatorDeleteItem // this.bindingNavigatorDeleteItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)( ...Show All
IrishWolf beep generates no sound
the Beep method generates no sound, the volume is on i checked Remco any other way to produce a sound in .net 2003 Remco Either method mentioned requires the Default Beep to be set in Sounds and Audio Devices. Rather get your own .wav file and play it, if you require it to be played even if sounds are off. yes that is correct, did not know which version of .NET you had installed, which would have helped however about the sound assignment - that is correct. try this: Dim a As System.Media.SystemSound = Media.SystemSounds.Beep a.Play() Even though Beep() should work ok, the reason could mainly be (and ive just tested ...Show All
VikasAgr inheriting from an existing Windows Forms control
i want to create my control on top on an existing one, let it be DataGridView for example. Is the 'Inherited User Control' template right for me I am trying to use it, but if i pick on the System.Windows.Forms.dll as a source for a control i am inheriting from the only new thing appeas on the list is "System.Windows.Forms.UserControl" is this because DataGridView is not inside the System.Windows.Forms.dll or because that's not the right way of inheriting from existing windons contsols I’m afraid that I can’t tell you why we are both having the same (bad) results when trying it the way you described... but there is a better way (IMO)... simply define the class manually. Instead of going through the Inherited User ...Show All
Vijay Guru Prasadh Waiting to asynchronous calls end ...
Hi ! I'm writing a program that works wiht messages, this messages are registered in a MS Access .mdb file. I'm implementing asynchronous calls to register this messages, and have locked the .mdb resource for only one thread at same time can work with the file. But, sometimes a lot of messages arrive to my program and a then a lot of threads are queue waiting for register the data in the .mdb file. I'm afraid that when i close the app, some messages don't be registered because are queue and i close the app. I'm trying to implement a contingency mechanism for wait to complete all mdb transactions before close the app. -- My asynchorous task list: ArrayList TareasAsincronas = new ArrayList (); -- Way to save a message ...Show All
Viktor78 Is there an equivalent to the Windows API PeekMessage function here?
I need to be able to determine if a mouse move event or a mouse wheel event is about to be processed. PeekMessage() was used before in straight win32 apps. Is there an equivalent .Net method for windows forms Override the control or forms preprocessmessage function. Check out this article ...Show All
RayCan ClickOnce and third-party library updates
Hi, I created a small in-house application that I am successfully publishing to an internal server using ClickOnce. It seems to me that if I get an update from a third-party library and then create a new version of my software using the update, ClickOnce no longer works for the app. The file name of the third-party control changes, so it seems like ClickOnce doesn't realize to use the new component file names instead of the old ones. Do I need to do something special when I upgrade third-party libraries Otherwise, ClickOnce works just great for me. Thanks in advance... -Eric I think it depends on how the 3rd party libraries are installed. it sounds like they are installed SxS with the ap ...Show All
Uwe82 Closing Managed Form Hides the Unmanaged Owner
Hi, Just wondering if anyone has seen this problem. Situation: I have an unmanaged app from which I'm using C++/CLI to instantiate a managed modeless dialog. I pass in the unmanaged Handle in the Show call (via a IWin32Window wrapper) to make the unmanaged app main window the owner of the managed form. This works fine in most situations. However, and here's the crux, if my managed form itself launches a modeless or modal dialog, then whenever I choose to close the original managed dialog, regardless of whether the child dialog has been closed or not, then the unmanaged app disappears . It either gets sent to the back or minimized, but the point is that it is no longer the top window. The application is fine, and clicking on the ...Show All
Dato0011 WSUS Install Fails; There is a problem with this Windows Installer package.
I am trying to install WSUS on Windows Server 2003 R2 and the installer fails with the above error message. The log files are shown here: ********** **** 2006-06-01 14:29:15 13:29:15 Executing External Command: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -ir ***** ***** 2006-06-01 14:29:26 13:29:26 External Command Exited, Return Code: 0 ***** Running a transacted installation. Beginning the Install phase of the installation. See the contents of the log file for the C:\Program Files\Update Services\Setup\bin\Microsoft.UpdateServices.Setup.CustomActions.dll assembly's progress. The file is located at C:\Program Files\Update Services\LogFiles\WSUSCa_060601_1426.log. Installing assembly 'C:\Program F ...Show All
AdrianWoods Console Output from a Windows Form
I have a windows form program which also includes a command line interface to a few of its features. When command line options are pased to the program the GUI is not displayed, and the command line code is properly excuted. However none of the output to the console appears. I was able to get the console output to be displayed by having Visual Studio 2005 compile my program as a console app instead of a windows app, but this causes a console window to be opened when you run just the GUI portion of the program. Is there anyway I can get the console output to appear without having this console window opened with my program when running the GUI part To add on, if you've played with the raw compile option ...Show All
KaiserSozeTR Visual Styles and Context Menus
Use the NotifyIcon.ContextMenuStrip property instead of the ContextMenu property and use a ContextMenuStrip with ToolStripMenuItem's instead of a ContextMenu with MenuItem's. You just need to create (manually or by dragging from the Toolbox onto your Form) a ContextMenuStrip object and assign it to the NotifyIcon.ContextMenuStrip. ContextMenuStrips uses themes by default. If you are already doing that, what visual style are you not seeing Thanks for your help Peter. Is there a specific property inside the NotifyIcon.ContextMenuStrip I need to change in particular And for the context menu, the items in my menu are all ToolStripMenuItems since each have that as part of their variable name. ...Show All
reichard How to Remove DataGrid's Default Column
Hi Guys / Girls I've an issue. I dont know you folks is awary of this. Have you ever seen that whenever you add DataGrid into your Form. No Column and rows will be with Datagrid Run you application as soon as you get DataGrid into your form. You can find one default column will be attached with DataGrid. I want to hide that column through Coding . Is it possible Thanks & Regards Balaji KJ hope u not talking about eh rowheader that is the column that appears on the left always, .. but with the grid defined... then try Me .DataGridView1.RowHeadersVisible = False I am not really sure what you are asking. Could you post a link to a picture or email it to me. ...Show All
