Why can't DataGridView Checkbox cast 0 to Int16?
OK, have a simple .Net 2.0 WinForm app, with a DataGridView, which contains a
checkbox bound to an Int16 (was a byte). For a certain user (who will be the
main user of this app), when clearing the checkbox, and then moving the
focus, generates an exception. The exception basically say that 0 is not a
valid value for an Int16. The user can tick the checkbox, and not raise an
error. It seems that 1 is a valid value.
Other users don't have this problem, and it's not linked to the PC being
used. Have had 2 users logon onto the same PC, and getting different results.
Roaming profiles are in use, so common sense says it's linked to the user's
profile. Checked the regional settings, and nothing stands out.
Should have said the OS is XP SP2.
So, does anyone have an ideas as what I need to check/change in the user's
profile?
Thanks in advance Tag: Context menu on grid Tag: 116966
Tab control validation and losing events
Hi,
Hope someone can help me with this - been going round and round with no
progress.
I have a form with a tab control containing 2 tabs. Tab 1 has a panel
containing a text box and a save & cancel button. We have a validation event
on the panel to check the text field is valid and if not we output a message.
This all seems to work fine until there is an invalid entry in the textbox,
validation message is displayed and e.cancel is set to true. Although the tab
doesnt switch pages (correct behaviour) focus seems to be in the ether.....
The buttons within the panel will now not fire their click events. Note: If
no message is output (or an error provider is used) then the buttons events
fire correctly. There is no databinding etc.
So issue seems to be output of message in the validating event causes tab
control to lose track of focus? - Any one had this before? Help greatly
appreciated.
Thanks in advance - code below
Code:
private void pnlOwners_Validating(object sender, CancelEventArgs e)
{
e.Cancel = false;
if (_fieldsChanged)
{
e.Cancel = true;
MessageBox.Show("Correct error before proceeding",
this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
} Tag: Context menu on grid Tag: 116963
Terminal Server 2003
I've developed a winform application which uses Crystal reports, everthing
works fine on WIN XP, VISTA SERVER2003, but when installed on a terminal
server, the reports want work, what can be the solution for this problem?
--
Best regards
Nicole Tag: Context menu on grid Tag: 116962
Problems Background Printing PDF from C# Application
Hello,
We are having a lot of problems trying to print a PDF file in the background
using a C# application that is executed via SQL Server Agent. The output
should be printed to a local printer (HP Color LaserJet 1600) connected via a
USB port.
We have a C# application that calls System.Diagnostics.Process to run
Acrobat Reader (weâ??ve tried both v8.0.0 and v8.1.2), open an existing PDF
file, and send it to the local printer. The code is shown below.
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.Refresh();
process.StartInfo.Arguments = "/t C:\Temp\TestPDF.pdf"; // and tried "/t
C:\Temp\TestPDF.pdf PrinterName"
process.StartInfo.CreateNoWindow = false;
//process.StartInfo.Domain;
//process.StartInfo.ErrorDialog = false;
process.StartInfo.FileName = "C:\\Program Files\\Adobe\\Reader
8.0\\Reader\\AcroRd32.exe";
//process.StartInfo.Password;
//process.StartInfo.UserName;
process.StartInfo.UseShellExecute = false;
//process.StartInfo.Verb = "Print";
process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
process.StartInfo.WorkingDirectory = new
System.IO.FileInfo(m_PDFPathFile).DirectoryName;
process.Start();
Weâ??ve tried just about every combination of the process objects properties
trying to get the PDF file to print. But, it never works. The code executes
without error, just nothing ever shows up on the printer.
More infoâ?¦ Weâ??re executing our custom C# application via a SQL Server Agent
job. SQL Server Agent is running as Local System account. The Job Step Type
is Operating System (CmdExec), with Run as set to SQL Server Agent Account.
The command is simply the path and file name of our custom C# application
(e.g., C:\Temp\PrintPDF.exe).
Again, we get no errors/exception and no job failures, but the PDF never
gets printed.
How can we re-code or fix our situation?
What can be done/tried?
All help is appreciated. We are stuck.
Thanks. Tag: Context menu on grid Tag: 116960
WebBrowser control
I'm trying to do my own scrolling with the WebBrowser control.
I can use the WebBrowser.Document.Window.ScrollTo method to scroll to a
specific position but how do I get my current scroll position?
I know when the document loads that I'm at scroll position 0,0. Then each
time I scroll (by 200 for example) I just keep a record of my new scroll
position.
This works until I get to the end of the document. The ScrollTo doesn't
return any feedback when it gets to the end of the document, so I don't know
when stop scrolling and when to stop adding 200 to my internal scroll
position.
Is there a way to read the current scroll position? Tag: Context menu on grid Tag: 116959
Windows DPI scaling
Hi,
C# .NET 2.0
I'm developing a windows application that will run on a number of
machines typically with DPI of either 96 or 120.
By setting the AutoScaleMode on different forms to DPI I get the
required scaling results. However, I have one form that contains a
richtextbox that's anchored to top, left and bottom borders and where
I change the width of the richtextbox depending on values taken from a
PageSetupDialog control. Something like this:
this.pageWidth = this.pageSetupDialog1.PageSettings.Bounds.Width
-
this.pageSetupDialog1.PageSettings.Margins.Left
-
this.pageSetupDialog1.PageSettings.Margins.Right;
this.txtWritingPad.Width = pageWidth;
The problem now is that a single line of text that fits on one single
line in 96 dpi gets wrapped to the second line in 120 dpi. Font and
font size are the same. I need the text/font to appear the same on
both machines. i.e. on one line from left to right.
I thought that maybe because I was explicitly setting the width of the
control at run time I would have to call PerformAutoScale() but that
doesn't seem to have any effect. I'm obviously missing something. Can
anybody help?
Thanks,
Damien Tag: Context menu on grid Tag: 116956
Books recommendations please
Hi
I need to develop winform database applications and wondering is these two
books will get me there;
Data Binding with Windows Forms 2.0: Programming Smart Client Data
Applications with .Net
http://www.amazon.co.uk/Data-Binding-Windows-Forms-2-0/dp/032126892X/ref=wl_it_dp?ie=UTF8&coliid=I2L84GECRS6E6P&colid=399925I1FY0N8
Windows Forms 2.0 Programming
http://www.amazon.co.uk/Windows-Forms-Programming-Chris-Sells/dp/0321267966/ref=wl_it_dp?ie=UTF8&coliid=I1RY8RDOG4LBP1&colid=399925I1FY0N8
I already have Bill's 'Hitchhiker's guide to VS and SQL Server'.
Any additional recommendations would be appreciated too. Basically anything
that will get me off your backs.
Thanks
Regards Tag: Context menu on grid Tag: 116953
ComboBox LostFocus
1. I make a selection in a combobox
2. I click outside my window on the desktop
Result:
The Combobox lostFocus fires multiple times until my application blows up.
How can I work around this problem?
--
Arne Garvander
Certified Geek
Professional Data Dude Tag: Context menu on grid Tag: 116951
'ShowInTaskBar crashes .NET in Form Activated and Deactivate events
Copyright assigned 2008 to "microsoft.public.dotnet.framework.windowsforms"
Usenet Forum (see note at end for clarification)
I am quite clear right now that this problem ONLY arises when you try to
change a Form's ShowInTaskBar property in its Form_Activated and
Form_Deactivate events.
I believe there is a high probability that this is related to the fact that
ShowInTaskBar under the hood is invoking the window styles api ... most
likely the window is being re-created ... and this is triggering recursive
firing of events somehow interacting with whatever the Activated and
Deactivate events are doing.
It is surprising that I have not been able to find a definitive statement
from MS on this on MSDN, but right now (since I switched to Internet
Explorer 8 beta 1) MSDN pages take literally minutes to refresh in my
browser. This is in part due to a significant apparent breakdown in my ISP's
(northern Thailand) ADSL service which has lasted ten days now. So those
factors have limited my time for searching MSDN.
I am creating a work around for this now in my own application using a
"dummy window" as a minimization placeholder for the case when the end-user
selects the option to show only the current active window in the taskbar
(rather than just allowing all active open windows of #n windows to show in
the taskbar).
I tried several "work-arounds" for this that involved things like raising an
event up to a static event-handler in a Class from the Activated and
Deactivate events : whatever I tried ... if it was triggered by these two
events, it crashed .NET.
It's a kludge, it's ugly, but it will work. I have no idea if you could work
around this using API's or not, but the application I am writing must not
use WndProc's and such.
best, Bill
copyright notice : for use by any non-commercial, non-profit, advertising
free Usenet or Internet forum : you may not republish this message on any
website with commercial advertisements. Of course no one has any "copyright"
on technical issues and solutions, only on the specific message and text in
which they are embodied. Tag: Context menu on grid Tag: 116949
Available Bluetooth Serial Ports in Vista
I'm using the following code to determine the available serial ports:
ComboBoxPort.Items.Clear()
For Each sp As String In My.Computer.Ports.SerialPortNames
ComboBoxPort.Items.Add(sp)
Next
It worked well in XP, but under Vista (now with SP1) the Bluetooth ports
don't show correctly.
We have half a dozen different brands and types of Bluetooth on various
computers, and all are displaying this behaviour.
I get this list:
COM1
COM3
COM4
COM10ñ
COM12ñ
COM92
COM11
The ñ letters are random and is different every time the sub is called.
Device Manager reliably shows:
Communications Port (COM1)
PCI Serial Port (COM3)
PCI Serial Port (COM4)
Standard Serial over Bluetooth link (COM10)
Standard Serial over Bluetooth link (COM11)
Standard Serial over Bluetooth link (COM12)
Standard Serial over Bluetooth link (COM9)
Any help, please?
--
Dave Harry Tag: Context menu on grid Tag: 116948
Web service, VPN and data cached
This is a multi-part message in MIME format.
------=_NextPart_000_0008_01C8A399.6F614AB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I have a problem and hope you can give some advice.
I have a windows Form which uses web service to communicate with our web =
site and database. It's working fine in most of our offices. However one =
of our offices use VPN(virtual private network) to do their work. They =
often(not always) get error when they use the form. I look at into it =
and found that no matter how they change the date range, the query =
results are always the same. If they donot use the form for sevral days, =
it will work again. If they use it again in the same day, then the error =
will come up. It sounds data are cached somewhere in the network or in =
their computer. Do you know where the data cached and how to prevent =
this?
Thanks,
Dennis Huang
------=_NextPart_000_0008_01C8A399.6F614AB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2912" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I have a problem and hope you can give some=20
advice.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I have a windows Form which uses web service to =
communicate=20
with our web site and database. It's working fine in most of our =
offices.=20
However one of our offices use VPN(virtual private network) to do their =
work.=20
They often(not always) get error when they use the form. I look at =
into it=20
and found that no matter how they change the date range, the query =
results are=20
always the same. If they donot use the form for sevral days, it will =
work again.=20
If they use it again in the same day, then the error will come up. It =
sounds=20
data are cached somewhere in the network or in their computer. Do you =
know where=20
the data cached and how to prevent this?</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Thanks,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Dennis Huang</FONT></DIV></BODY></HTML>
------=_NextPart_000_0008_01C8A399.6F614AB0-- Tag: Context menu on grid Tag: 116946
App.Settings and future upgrades
How can I update Application-scope settings for Windows Forms
applications?
For example, if i make a setting:
Name: WebsiteUrl,
Type: String,
Scope: Application,
Value: www.domain.com
AFter this project is deployed on a user's workstation, is there any
way to modify this value on subsequent installations?
Ideally, I would prefer not to overwrite user-scoped settings. Tag: Context menu on grid Tag: 116945
DKNY Essentials Swarovski Crystal Silver Stainless Steel Ladies Watch
DKNY Essentials Swarovski Crystal Silver Stainless Steel Ladies Watch
NY3713 - Replica Watch Fake
DKNY Essentials Swarovski Crystal Silver Stainless Steel Ladies Watch
NY3713 Link : http://www.watchesprice.net/Replica-DKNY-7144.html
Replica Watches Home : http://www.watchesprice.net/
Replica DKNY Brands : http://www.watchesprice.net/DKNY-Replica.html
Replica DKNY Essentials Swarovski Crystal Silver Stainless Steel
Ladies Watch NY3713 --- one of best selling replica watches, it is
crafted in high quality, please click image 'buy now' to buy this chic
but inexpensive replica to save you a lot of money .
DKNY Essentials Swarovski Crystal Silver Stainless Steel Ladies Watch
NY3713 Description:
Stainless Steel Case. Stainless Steel With Swarovski Crystals Strap.
Silver Dial. Gem-Cut Swarovski Crystals Bezel. Mineral Crystal.
Jewelry Clasp. 28 mm Case Diameter. Quartz Movement. Water Resistant
At 30 Meters (100 Feet). DKNY Essentials Swarovski Crystal Silver
Stainless Steel Ladies Watch NY3713
DKNY Essentials Swarovski Crystal Silver Stainless Steel Ladies Watch
NY3713 Details:
Brand: DKNY
Model: NY3713
Dial color: Silver
Movement type: Quartz
Water-resistant to 30 meters
Features
Precision Crafted Quartz Movement
Solid Stainless Steel Band and Case
Easy Link Removal System
Swarovski Diamonds
NY3713
Thank you for choosing www.watchesprice.net as your reliable dealer of
quality waches including DKNY Essentials Swarovski Crystal Silver
Stainless Steel Ladies Watch NY3713 . we guarantee every watch you
receive will be exact watch you ordered. Each watch sold enjoy one
year Warranty for free repair. Every order from aaa-replica-watches is
shipped via EMS, the customer is responsible for the shipping fee on
the first order, but since the second watch you buy from our site, the
shipping cost is free. Please note that If the total amount of payment
is over $600(USD), the customer is required to contact our customer
service before sending the money in case failed payment. If you have
any other questions please check our other pages or feel free to email
us by service@watchesprice.net. Cheapest DKNY Essentials Swarovski
Crystal Silver Stainless Steel Ladies Watch NY3713
The Same DKNY Series :
DKNY GUN METAL LADIES WATCH - NY4257 :
http://www.watchesprice.net/Replica-DKNY-7145.html
DKNY Iridescent Ladies Watch NY3120 :
http://www.watchesprice.net/Replica-DKNY-7146.html
DKNY LADIES WATCH - NY4206 :
http://www.watchesprice.net/Replica-DKNY-7147.html
DKNY Ladies Watches NY3166 - 2 :
http://www.watchesprice.net/Replica-DKNY-7148.html
DKNY Ladies Watches NY3363 - 2 :
http://www.watchesprice.net/Replica-DKNY-7149.html
DKNY Ladies Watches NY3661 - 2 :
http://www.watchesprice.net/Replica-DKNY-7150.html
DKNY Ladies Watches NY3668 - 2 :
http://www.watchesprice.net/Replica-DKNY-7151.html
DKNY Ladies Watches NY3788 - 4 :
http://www.watchesprice.net/Replica-DKNY-7152.html
DKNY Ladies Watches NY3789 - 2 4 :
http://www.watchesprice.net/Replica-DKNY-7153.html
DKNY Ladies Watches NY3814 - 2 :
http://www.watchesprice.net/Replica-DKNY-7154.html
DKNY Ladies Watches NY3840 - 2 5 7 :
http://www.watchesprice.net/Replica-DKNY-7155.html
DKNY Ladies Watches NY4278 - 2 7 4 :
http://www.watchesprice.net/Replica-DKNY-7156.html Tag: Context menu on grid Tag: 116944
Bulova 43D007-Caravelle Diamond - Men's Diamond Watch - Replica Watch
Bulova 43D007-Caravelle Diamond - Men's Diamond Watch - Replica Watch
Fake
Bulova 43D007-Caravelle Diamond - Men's Diamond Watch Link :
http://www.watchesprice.net/Replica-Bulova-1217.html
Replica Watches Home : http://www.watchesprice.net/
Replica Bulova Brands : http://www.watchesprice.net/Bulova-Replica.html
Replica Bulova 43D007-Caravelle Diamond - Men's Diamond Watch --- one
of best selling replica watches, it is crafted in high quality, please
click image 'buy now' to buy this chic but inexpensive replica to save
you a lot of money .
Bulova 43D007-Caravelle Diamond - Men's Diamond Watch Description:
features Black dial set with four genuine diamonds Curved crystal
Stainless steel Water resistant to 30 meters/100 feet. Approximate
case diameter/width 26mm
Bulova 43D007-Caravelle Diamond - Men's Diamond Watch Details:
Brand: Bulova
Band material: stainless-steel
Dial window material: Glass
Movement type: Quartz
Water-resistant to 30 meters
Thank you for choosing www.watchesprice.net as your reliable dealer of
quality waches including Bulova 43D007-Caravelle Diamond - Men's
Diamond Watch . we guarantee every watch you receive will be exact
watch you ordered. Each watch sold enjoy one year Warranty for free
repair. Every order from aaa-replica-watches is shipped via EMS, the
customer is responsible for the shipping fee on the first order, but
since the second watch you buy from our site, the shipping cost is
free. Please note that If the total amount of payment is over
$600(USD), the customer is required to contact our customer service
before sending the money in case failed payment. If you have any other
questions please check our other pages or feel free to email us by
service@watchesprice.net. Cheapest Bulova 43D007-Caravelle Diamond -
Men's Diamond Watch
The Same Bulova Series :
Bulova 43E000-Caravelle - Men's Diamond Watch :
http://www.watchesprice.net/Replica-Bulova-1218.html
Bulova 44D000-Caravelle Diamond - Men's Diamond Watch :
http://www.watchesprice.net/Replica-Bulova-1219.html
Bulova 44D001-Caravelle Diamond - Men's Diamond Watch :
http://www.watchesprice.net/Replica-Bulova-1220.html
Bulova 44D002-Caravelle Diamond - Men's Diamond Watch :
http://www.watchesprice.net/Replica-Bulova-1221.html
Bulova 45D000-Caravelle Diamond - Men's Diamond Watch :
http://www.watchesprice.net/Replica-Bulova-1222.html
Bulova 45D002-Caravelle - Men's Diamond Watch :
http://www.watchesprice.net/Replica-Bulova-1223.html
Bulova 45D003-Men's Diamond Watch :
http://www.watchesprice.net/Replica-Bulova-1224.html
Bulova 45E000-Caravelle - Men's Diamond Watch :
http://www.watchesprice.net/Replica-Bulova-1225.html
Bulova 92M51 :
http://www.watchesprice.net/Replica-Bulova-1226.html
Bulova 95R10 :
http://www.watchesprice.net/Replica-Bulova-1227.html
Bulova 97D05 :
http://www.watchesprice.net/Replica-Bulova-1228.html
Bulova 97F24 :
http://www.watchesprice.net/Replica-Bulova-1229.html Tag: Context menu on grid Tag: 116943
Oris Chronoris Chronograph Mens Watch 672-7564-4154LS - Replica Watch
Oris Chronoris Chronograph Mens Watch 672-7564-4154LS - Replica Watch
Fake
Oris Chronoris Chronograph Mens Watch 672-7564-4154LS Link :
http://www.watchesprice.net/Replica-Oris-18226.html
Replica Watches Home : http://www.watchesprice.net/
Replica Oris Brands : http://www.watchesprice.net/Oris-Replica.html
Replica Oris Chronoris Chronograph Mens Watch 672-7564-4154LS --- one
of best selling replica watches, it is crafted in high quality, please
click image 'buy now' to buy this chic but inexpensive replica to save
you a lot of money .
Oris Chronoris Chronograph Mens Watch 672-7564-4154LS Description:
Stainless Steel Case. Black Leather Strap. Black Dial. Stainless Steel
Bezel. Scratch Resistant Sapphire Crystal. Buckle Clasp. 40 mm Case
Diameter. Automatic Movement. Water Resistant At 50 Meters (165 Feet).
Oris Chronoris Chronograph Mens Watch 672-7564-4154LS
Oris Chronoris Chronograph Mens Watch 672-7564-4154LS Details:
Brand: OrisDial Color : BlackClasp : Black LeatherWater Resistant : 50
Meters (165 Feet)Case Material : Stainless SteelMovement :
AutomaticDial Color : BlackCrystal : Scratch Resistant
SapphireGender : Mens
Thank you for choosing www.watchesprice.net as your reliable dealer of
quality waches including Oris Chronoris Chronograph Mens Watch
672-7564-4154LS . we guarantee every watch you receive will be exact
watch you ordered. Each watch sold enjoy one year Warranty for free
repair. Every order from aaa-replica-watches is shipped via EMS, the
customer is responsible for the shipping fee on the first order, but
since the second watch you buy from our site, the shipping cost is
free. Please note that If the total amount of payment is over
$600(USD), the customer is required to contact our customer service
before sending the money in case failed payment. If you have any other
questions please check our other pages or feel free to email us by
service@watchesprice.net. Cheapest Oris Chronoris Chronograph Mens
Watch 672-7564-4154LS
The Same Oris Series :
Oris Divers Der Meistertaucher Regulateur Mens Watch
649-7541-7164RS :
http://www.watchesprice.net/Replica-Oris-18227.html
Oris Divers Mens Watch 733-7562-7159RS :
http://www.watchesprice.net/Replica-Oris-18228.html
Oris Divers Mens Watch 733-7533-8555MB :
http://www.watchesprice.net/Replica-Oris-18229.html
Oris Divers Mens Watch 733-7533-8555RS :
http://www.watchesprice.net/Replica-Oris-18230.html
Oris Divers Titanium Mens Watch 733-7541-7154RS :
http://www.watchesprice.net/Replica-Oris-18231.html
Oris Divers Titanium Chronograph Mens Watch 674-7542-7154RS :
http://www.watchesprice.net/Replica-Oris-18232.html
Oris Divers Titan Date Mens Watch 733-7562-7159MB :
http://www.watchesprice.net/Replica-Oris-18233.html
Oris Divers Titan Date Mens Watch 733-7562-7154RS :
http://www.watchesprice.net/Replica-Oris-18234.html
Oris Divers Titan Date Titanium Mens Watch 733-7562-7154MB :
http://www.watchesprice.net/Replica-Oris-18235.html
Oris Divers Titan Titanium Mens Watch 733-7541-7154MB :
http://www.watchesprice.net/Replica-Oris-18236.html
Oris Divers Titan Chronograph Mens Watch 674-7599-7154RS :
http://www.watchesprice.net/Replica-Oris-18237.html
Oris Divers Titan Chronograph Mens Watch 674-7599-7154MB :
http://www.watchesprice.net/Replica-Oris-18238.html Tag: Context menu on grid Tag: 116942
Egghead Cafe copying messages on this forum to their web-site
Hi,
Recently I posted a message here on issues with setting ShowInTaskBar at
runtime; no one's responded yet, but I am not complaining :) I've always
felt that getting a response in groups like these is a "bonus," and I'm
always appeciative of the generous gift of time by experts that goes on
here, from people like Bob Powell, Frank Hileman, Jon Skeet, Nicholas
Paladino, and so many others !
I was doing a web search on this issue (Google), and came across this :
http://www.eggheadcafe.com/software/aspnet/32030563/setting-showintaskbar-to.aspx
I was astounded to find that it was a copy of my post to this group.
There was no response, or comment, just a complete copy.
I doubt that there is any technical legal issue here of infringement on
intellectual property : I didn't put a copyright notice on my post (I can
only imagine the absurdity of that), but I do feel that just copying posts
is a shady business practice if the web site gets its revenues from
advertisers based on number of hits on the site as a whole. And I've
expressed this opinion directly to the operators of the site.
Is this a standard practice that is also going on on other web sites ? First
time I've seen it.
best, Bill Tag: Context menu on grid Tag: 116940
Datagridview sort
When I click a column in my datagrid a sort occur.
If I click the column with dates, it sorts in m/d/y order. I would like it
to either sort in y/m/d order or I would like to turn off the sort.
It seems like by date is in a text format. Maybe I can change the data type
to datetime and the sort will work again.
(In worst case I have to change my dates to figs, maybe figs sort better
than dates)
--
Arne Garvander
Certified Geek
Professional Data Dude Tag: Context menu on grid Tag: 116938
Brand Watches Chopard Women's Happy Sport Diamond Watch #28/8950
Brand Watches Chopard Women's Happy Sport Diamond Watch #28/8950
Discount, Replica, Fake
Browse our Chopard Women's Happy Sport Diamond Watch #28/8950 replica
watches, which is sure the watch you are looking for at low price.
There are more high quality designer watch replicas for selection
Chopard Women's Happy Sport Diamond Watch #28/8950 Link :
http://www.watches-brand.com/Replica-Chopard-5062.html
Brand : Chopard ( http://www.watches-brand.com/Chopard-Replica.html )
Model : Chopard-#28/8950
Description : no
Sale Price : $ 210.00
Chopard Women's Happy Sport Diamond Watch #28/8950 Details :
<ul>
<li>Brand: Chopard</li>
<li>Model: 28/8950</li>
<li>Band material: Leather</li>
<li>Bezel material: stainless-steel</li>
<li>Case material: stainless-steel</li>
<li>Clasp type: Buckle</li>
<li>Dial color: mother-of-pearl</li>
<li>Dial window material: scratch-resistant-sapphire</li>
<li>Movement type: swiss-quartz</li>
<li>Water-resistant to 100 feet</li>
</ul>
Chopard Women's Happy Sport Diamond Watch #28/8950 is new brand
replica, join thousands of satisfied customers and buy your Chopard
with total satisfaction. A watches-brand.COM 30 Day Money Back
Guarantee is included with every Chopard Replica Series for secure,
risk-free online shopping. watches-brand.COM does not charge sales tax
for the Fake Chopard Women's Happy Sport Diamond Watch #28/8950.
All of our replica watches are shipped via EMS to worldwide. Normally
it takes 3days to prepare the fake watch you ordered and 5-10days to
transmit depending on the different destination.We pay for the free
shipping cost for total quantity over 20 pcs. The EMS tracking NO.
will be sent by email when an order is shipped from our warehouse. No
more other charges from watches-brand.com such as the tax. If you have
any other questions please check our other pages or feel free to email
us by sales@watches-brand.com.
The Same Replica Chopard Watches Series :
Chopard Happy Sport Ladies Watch 27/7012-23 :
http://www.watches-brand.com/Replica-Chopard-5063.html
Chopard Happy Sport Diamond Steel Ladies Watch 27/8418-23 :
http://www.watches-brand.com/Replica-Chopard-5064.html
Chopard 16/8449 :
http://www.watches-brand.com/Replica-Chopard-5065.html
Chopard LUC Pro One GMT Mens Watch 16/8959 :
http://www.watches-brand.com/Replica-Chopard-5066.html
Chopard LUC Quattro Mark II Mens Watch 16/1903 :
http://www.watches-brand.com/Replica-Chopard-5067.html
Chopard LUC Tech Regulator Mens Watch 16/8449 :
http://www.watches-brand.com/Replica-Chopard-5068.html
Chopard Mille Miglia_Watch Watch 16/8915 :
http://www.watches-brand.com/Replica-Chopard-5069.html
Chopard Mille Miglia GMT Steel Mens Watch 15/8992 :
http://www.watches-brand.com/Replica-Chopard-5070.html
Chopard Mens Watch - 1000 Mille Miglia 16/8407 :
http://www.watches-brand.com/Replica-Chopard-5071.html
Chopard Mille Miglia Steel Silver Chronograph Mens Watch 15/8331-99 :
http://www.watches-brand.com/Replica-Chopard-5072.html
Brand Watches Chopard Women's Happy Sport Diamond Watch #28/8950
Discount, Replica, Fake Tag: Context menu on grid Tag: 116936
Menu Item Access Keys Not visible
Hello,
I know this topic has been discussed before but my problem is kind of
different. I have the following menu items,
File View Tools Help
Now i have checked "hide underline letters for navigation until i
press the Alt key" in the desktop appearance effects.
Now when i "click" on file menu, it shows me the access keys i have
set for the sub-menu items. Same for Help and Tools. But when I click
on View, the sub-menu appears with all items NOT showing the access
keys. The menu items in view menuitem are 3 menu items with further
menu items, and 2 items where checked property is true.
The strange thing is, if i click on view, it would not show the access
keys. If i press Alt and then V to go to view menu, it does show me
access keys for all the submenus, the ones that i have set in the
first place.
The problem does get solved by unchecking the "hide underline
letters ....." in the desktop appearace effects. But 1. i want to know
the cause, 2. i cant expect my customers to do that. Tag: Context menu on grid Tag: 116932
unable to open form in designer
Hi,
I am trying to open window form in designer (this form inherits another
window form "BaseForm" which is in same c# project) ,
am getting exception and Visual studis is asking to debug or cancel message
alert.
I debugged and its said "Could not load file or assembly 'Wrappers.CLI,
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its
dependencies. The system cannot find the file specified. "
The WSOD contains:
One or more errors encountered while loading the designer. The errors are
listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes.
"Could not load file or assembly 'Wrappers.CLI, Version=0.0.0.0,
Culture=neutral,
PublicKeyToken=null' or one of its dependencies. The system cannot find the
file specified."
Hide
at MyProject.BaseForm..ctor()
this is in C# project (VS 2005). it has reference to 'Wrappers.CLI' dll.
I tried with
1. rebuilding
2. steps in http://www.codeproject.com/KB/cs/wsod.aspx
but none was working..
Thanks,
Ramki Tag: Context menu on grid Tag: 116929
Binding navigator
Hi,
I have a binding navigator which has 1 binding source bind to it.
I have some textboxes bind to the binding navigator.I have some validations
to be done at lost focus events of all the text boxes.
the system is getting hang up if any one is trying to give invalid
input,rather than what is supposed to be prompted (I have those validations
written in lost focus event of those textboxes) .
Can any one help me in this regard. Tag: Context menu on grid Tag: 116928
Bug in VS.NET 2005 for click-once deployment
It appears there's a bug in Visual Studio 2005 when trying to deploy a
click-once application (this is a completely different issue than my
last post, in case anyone's keeping track).
When I set my publishing settings, the first time, it works just
fine. When I want to publish to a different server, the part of the
publish wizard that asks "How will users install the application?",
the "From a Web site" setting is ignored and the original value I
entered from the FIRST deployment is used. Now, once in a blue moon,
it'll change, but it's unpredictable and rare.
The only way I've found to "fix" it is to use a file searching utility
(I use TextPad's "Search in files" feature) to search all files in the
entire solution folder tree for occurances of the old URL. It appears
that there's 3 items storing the URL in the .csprog file, one of which
is the culprit (can't recall right now which), but they are:
<PublicUrl>
<InstallUrl>
<UpdateUrl>
I think it's the InstallUrl that holds onto the old setting. I have
to manually edit the project file with a text editor to get the darn
thing to publish and behave properly.
Am I doing something wrong or is this a bug? Is there a better way to
do this?
TIA. Tag: Context menu on grid Tag: 116924
Click-Once deployed app - need to change .config.deploy file
I have a click-once deployed application that I need to change which
web services it references *AFTER* deployment. When I change my
deployed xxxxxx.config.deploy file on the server so that it references
a different set of web services, the application continues to access
the old webservices.
Before you think you have the answer, let me tell you what I've done
(this has been a problem for about a year now, but we're determined to
get it resolved):
I manually edited the .config.deploy file to change the URLs of the
web services (original deployment pointed to a dev instance of the web
services), I'm changing them to point to the testing/staging
environment web services, then will change to point to production as
the compiled deployment moves it's way torwards acceptance and finally
production.
When I edited the file, I expected the app to refuse to run, but it
didn't. It ran without complaining (unlike what happens if I edit
the .application file without re-signing it). I even removed
the .config.deploy file and still no complaints and still it used the
dev web services.
Yes, I re-signed the manifest with mageui.exe. I edited
the .cong.deploy file, but it appears the app is not using
the .config.deploy file at all. In the source code, there's a
Settings.Designer.cs file that's generated based on my app.config and
in there is hard-coded the values of the web service URLs as they are
at the time of publish from Visual Studio to the development server.
Our deployment process has always been with web apps and this is new
territory for us (in spite of the fact that this app has been around
for about a year now... it's still our first one and has recently gone
to production). Our deployment procedures are as follows:
1. Compile and then the developer deploys to dev. then developer asks
admins to move it to staging (having admins changing the connection
strings and such in the web.config file). Developers don't have write
access to the staging envrionment.
2. Testers test application in the staging environment. If all goes
well, developer asks admins to move app from staging to production,
again making necessary changes to the web.config file. Developers
don't have access to the production environment.
On subsequent updates, the web.config file is just not copied, unless
there's anything new in it, then the admins are asked to add the new
items to the existing web.config files in each environment.
This process has worked well since the 1990's, but now with click-once
deployed apps, that procedure isn't working because we can't find a
way to make changes to the .config.deploy file without having to
publish from Visual Studio 3 seperate times, making the changes from
within Visual Studio for each environment. In addition, we can't move
a single deployment from environment to environment. We have to make
3 seperate builds, making it impossible to prove that what went to
production was truly what was tested.
Any help would be GREATLY appreciated!!! Tag: Context menu on grid Tag: 116923
Media Control >> Tag readers
Hello there, just wondering if n e one has had a chance of looking in to
a wmv tag reader, i have contocted an AVI, MPEG, MPG, MP3 header readers
but can't seem to find an wmv tag reader anywhere on the internet or
information about how to read it.
Please can maybe some on help.
*** Sent via Developersdex http://www.developersdex.com *** Tag: Context menu on grid Tag: 116920
isDirty
Does a windows textbox have a property that tells if the user has entered
anything into a textbox on a windows.
--
Arne Garvander
Certified Geek
Professional Data Dude Tag: Context menu on grid Tag: 116919
ScrollControlIntoView c#
Hi
I have a problem with displaying textBoxes in a tabPage on a form. I
have 3 tabs, the 2nd tab 'tab2' the user enter the number of textBoxes
required to be displayed in 'tab3', when they leave 'tab2' and click
on 'tab3' the code place the textboxes at the bottom of 'tab3' adding
additional ones above them. This requires the 'AutoScroll' to start at
the bottom of 'tab3'. I'm using 'ScrollControlIntoView' to display the
textBox. When you first click on 'tab3' from 'tab2', the scroll bars
do not go to the bottom of the 'tab3' where the text boxes are added.
However this works the 2nd time you click 'tab3' and the scroll bars
start at the bottom of 'tab3' where the textboxes are placed.
Can anyone help?
I have supplied the basic code I'm using.
Thanks in advance
Cyclone
////////////////////////////////////////////////////////////////////////////////
using System;
using System.Globalization;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using System.Diagnostics;
namespace Example
{
public partial class MainForm : Form
{
private TextBox txtBx_Val00 = new TextBox();
int N_val2 = 0;
private void tab2_Leave(object sender, EventArgs e)
{
//Variable is populated by a text box on tab2
N_val2 = int.Parse(txtBx_N2a.Text);//No. of textBoxes to
be displayed
FloorData_Method();
}
private void FloorData_Method()//displays floor rows
{
//Row 00
this.txtBx_Val00.Text = "0";
this.txtBx_Val00.Size = new Size(56, 20);
this.txtBx_Val00.Location = new Point(27, 3597)//places
textBox at the very bottom of the tab
//Adds Row00
this.tab3.Controls.Add(txtBx_Val00);
this.tab3.ScrollControlIntoView(this.txtBx_Val00);
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
}
}
}
////////////////////////////////////////////////////////////////////////// Tag: Context menu on grid Tag: 116918
ScrollControlIntoView c#
Hi
I have a problem with displaying textBoxes in a tabPage on a form. I
have 3 tabs, the 2nd tab 'tab2' the user enter the number of textBoxes
required to be displayed in 'tab3', when they leave 'tab2' and click
on 'tab3' the code place the textboxes at the bottom of 'tab3' adding
additional ones above them. This requires the 'AutoScroll' to start at
the bottom of 'tab3'. I'm using 'ScrollControlIntoView' to display the
textBox. When you first click on 'tab3' from 'tab2', the scroll bars
do not go to the bottom of the 'tab3' where the text boxes are added.
However this works the 2nd time you click 'tab3' and the scroll bars
start at the bottom of 'tab3' where the textboxes are placed.
Can anyone help?
I have supplied the basic code I'm using.
Thanks in advance
Cyclone
////////////////////////////////////////////////////////////////////////////////
using System;
using System.Globalization;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using System.Diagnostics;
namespace Example
{
public partial class MainForm : Form
{
private TextBox txtBx_Val00 = new TextBox();
int N_val2 = 0;
private void tab2_Leave(object sender, EventArgs e)
{
//Variable is populated by a text box on tab2
N_val2 = int.Parse(txtBx_N2a.Text);//No. of textBoxes to
be displayed
FloorData_Method();
}
private void FloorData_Method()//displays floor rows
{
//Row 00
this.txtBx_Val00.Text = "0";
this.txtBx_Val00.Size = new Size(56, 20);
this.txtBx_Val00.Location = new Point(27, 3597)//places
textBox at the very bottom of the tab
//Adds Row00
this.tab3.Controls.Add(txtBx_Val00);
this.tab3.ScrollControlIntoView(this.txtBx_Val00);
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
}
}
}
////////////////////////////////////////////////////////////////////////// Tag: Context menu on grid Tag: 116917
Application.DoEvents() throws null reference exception
Hi,
I have an application where I have used Application.DoEvents() method
on the click event of a NumericUpDown. This particular method is
throwing "Object reference not set to an instance of an object"
error.. Does anyone have any idea about it?
Regards,
Bharathi Tag: Context menu on grid Tag: 116916
Simple, Simple Question
In ASP.Net a datagridview has an event called RowDataBind. What's the
equivalent in a Windows Form Gridview?
Ross Tag: Context menu on grid Tag: 116911
Deploying native code.
The scenario is we're about to release an exe to our clients. It's a
winforms application that uses reflection, remoting, generics, and
serialization. We want to protect the intellectual proprety rights of our
code. One solution is to obfuscate the exe. I've come across some 3rd party
solutions that claim they can compile the exe to native code (xenocode,
remotesoft, etc). I'm wondering if there is some tool in the .NET framework
that can compile winforms applications directly to native code, thereby
bypassing MSIL + JIT compilation? The native executable can then be
deployed.
I've read about the ngen utility, but it doesn't seem applicable in this
case. From my understanding, ngen will precompile the exe and add it to the
native image cache on the respective machine. What I'm looking for here is a
way to bypass MSIL + JIT compilation.
Thank you! Tag: Context menu on grid Tag: 116910
setting ShowInTaskBar to 'false at run-time : strange errors, crashes
.NET 2.0, Visual Studio 2005
Hi,
I have several open windows, all instances of the same form template created
dynamically in response to a user action at run-time.
A user option for the application is to show all open windows in the task
bar, or only the current
active window.
I thought I could write handlers for the Form_Activated and Form_Deactivate
events of all these instances of a form_template, but I'm running into
strange errors when I set 'ShowInTaskBar to false in the 'Deactivate event
like : "can't create window handle," or "callback on a delegate that has
been garbage collected."
At first I thought these error might be related to deisgn mode, but they
persist when I run the .exe file, giving an error dialogue that does not
provide the usual debugging information.
Googling on "microsoft: showintaskbar" led to several reports that suggest
errors with setting showintaskbar to false at runtime. Francisco Balena at :
http://www.devx.com/vb2themax/Tip/18334
Says the property is read-only at run-time, but in another part of my
application I have a menu that toggles showing all, or only the active form,
in the taskbar : this code loops through a collection of open forms I
maintain and sets showintaskbar properly and with no errors !
I am aware that winforms does some strange stuff when you set ShowInTaskBar
to 'false :
"After doing some research, I found that
setting Form.ShowInTaskbar=false will close window's WS_EX_APPWINDOW flag,
and set window's owner form to WindowsFormsParkingWindow, which is an
invisible toplevel window(internal )" comments Jeffrey Tan from Microsoft at
:
http://www.dotnet247.com/247reference/msgs/57/285697.aspx
Okay my questions :
1. is switching a window's ShowInTaskBar status something that will require
use of Interop and API's in .NET 2.0 ?
2. has there been a change in versions of .NET > 2.0 that make this possible
without use of API's.
In this particular design scenario there is no one window which is always
necessarily visible, no "master form." Each winform created has its Parent
property set to Null. And, yes, Form_Closing events are modified to detect
need to terminate the app because, in this case I am using Application.Run()
after an initial template form is shown.
thanks, Bill Tag: Context menu on grid Tag: 116909
NotifyIcon on a Dialog Box
[Using VB.NET 2005]
We've got an old application that has been modified quite a bit.
Originally, it was just a single form application that hid in the Task Bar
Tray using a Notify Icon.
Later, we had to add a Custom Dialog Box to the project.
Now, it has been determined that the project would be best served by the
Dialog Box only, and eliminate the main form.
So, the project is now a Console-like Application that starts with a Main
Module. The Notify Icon had to be included with the Dialog Box, otherwise we
weren't able to make it work.
The Notify Icon has a Context Menu Strip and events for Click and Double
Click.
When the Main Module starts, it creates a new instance of the Dialog Box,
but does not show it.
When the Dialog Box is created, it creates and shows the Notify Icon.
If you are still reading this, here is the problem:
Unless the Dialog Box is being displayed (dialog1.ShowModal), all the Notify
Icon will do is show its Balloon Message. The Click, Double Click, and
Context Menu Strip does not react at all.
Any idea why? How would I get this to work? Tag: Context menu on grid Tag: 116908
Need 2nd opinion about program style
This might be a silly question but....
I have not made much use of modules in recent years. I've been called on to
translate an old VB6 program to Dot Net 2.0. Aside from the sheer complexity
and lack of docs, there is one thing that caught my attention: The original
programmer made a great deal of use of modules in his DLLs. One element of
his style was to create class declarations in the module (Public x as Class1)
and then set x to reference the class in the class itself (x = Me).
Now I've whipped up a little test program and I know this still works but I
was just wondering how this measures up as acceptable (or should I say
'modern') programming style?
(It seems an innocent enough technique but given that the legacy program as
a whole is major spaghetti, I thought I'd ask for a second opinion.) Tag: Context menu on grid Tag: 116907
Setup of .net 3.5 fw takes FOREVER - idea why?
I created a program (.net 3.5). I created a setup program and tried to
install it on another computer. The .net 3.5 framework took like 25 minutes
to install. Any idea why? Another customer had a similar issue. They
state that the fw was like 197mb.
Also, they had an error like this:
Component .NET Framework 3.5 has failed to install with the following error
message:
"The wrong diskette is in the drive. Insert %2 (Volume Serial Number:
%3) into drive %1. "
The following components failed to install:
- .NET Framework 3.5
See the setup log file located at
'C:\Users\QUENCH~1\AppData\Local\Temp\VSDA15D.tmp\install.log' for more
information.
Any ideas on these 2 issues? Tag: Context menu on grid Tag: 116904
=?Utf-8?Q?How_to_redirect_multiple_website?=
Hi Guys,
I have multiple domain names www.alnajdawi.com, alnajdawi.com,
www.alnajdawi.net, alnajdawi.net as a host headers in IIS 6.0
I want to know how can I redirect all these URLâ??s to one URL
www.alnajdawi.com, so if a user entered one of these URLâ??s he has to be
redirected to www.alnajdawi.com
Thanks,
MSN Tag: Context menu on grid Tag: 116903
GC.Collect() not cleaning memory, how to find out what references to lots of memory still exist?
GC.Collect() not cleaning memory, how to find out what references to lots of
memory still exist?
When all my processign is done i set everything to null and then:
GC.Collect();
and then
GC.WaitForPendingFinalizers();
but it still shows that my process takes 400 MB of memory. Is there any easy
way to see what references that I forgot to set to null so that the memory
cleas up on GC.Collect() ? Tag: Context menu on grid Tag: 116899
".resx" files not kept up-to-date by Visual Studio
Hi there,
Can anyone explain why the assembly qualified names seen in the ".resx" file
for each form in an application aren't kept up-to-date by Visual Studio. For
instance, if a dialog uses a user control from some other library in the
same solution, the user control's assembly qualified name will appear in the
dialog's ".resx" file. Each time the control's library is compiled however,
the library's version is incremented but the ".resx" file continues to show
the original version number. How then does Visual Studio load it when the
dialog is displayed in the Visual Studio designer? If all projects are
signed then the control's library identity won't match what's in the '.resx"
file but Visual Studio seems to ignore this. Can anyone shed any light on
the situation? Thanks in advance. Tag: Context menu on grid Tag: 116898
Bug in ComboBox with AutoCompletion?
Hi,
I have a strange problem. The Combobox component always raises an
OnTextChanged event when it is validated and auto completion is
activate.
Take a look at .NET framework source code, ComboBox.cs, method
"OnValidating". This method calls "NotifyAutoComplete()", which itself
calls "OnTextChanged" when the selected index was not changed - it does
not check if the text was really changed!
This for example causes that the OnTextChanged event is always raised
when the ComboBox looses focus. There are several other ways where the
event is raised where it should not.
Any ideas?
Carsten Tag: Context menu on grid Tag: 116897
General question about VB6-Dot Net conversion
I've been tasked with converting a VB6 exe (plus associated dlls.) The
conversion is not supposed to be exact so the conversion wizard is probably
not an option. I'm more concerned about basic conceptual matters at this
point (especially since the legacy code is extremely complex and downright
strange in places.).
Can anyone point me to a favorite reference or discussion on this subject?
(I can probably wing it but I'd like to avoid common pitfalls.) Tag: Context menu on grid Tag: 116896
image from url in datagridview
Does anybody know if it's possible to have a winform datagridview show an
image in a column that comes from a url?
thanx,
Tom Tag: Context menu on grid Tag: 116895
Installation problem
Hi people
I am having problems with DotNet. I accidently deleted .net 2 sp1 from my
machine, and I need to re-install. I have searched the MS site for
information, and have followed the advice I found. My problem is a round
robin thing whereby I can not install .Net 2 because my machine insists that
it is incompatible. I have done all I can from the information I have from MS
KBs. I have .net 1.1 installed, .net 2 refuses to re-install as does .net 2
sp1.
I need a foolproof (!) way of uninstalling and re-installing this software.
(Even MS Update fials to install). Help?! Tag: Context menu on grid Tag: 116894
DataGridView: draw only a border for selected row
Hi all,
is there a way to highlight a selected row (in a grid that allow only a row
selected, or even just a cell at one time), drawing only a thick border
around the row (but not between the cells of the same row) instead of the
highlight blue background?
I couldn't find any way to do it correctly Tag: Context menu on grid Tag: 116890
Windows Virtual memory --minimum?
How do I fix this problem ? It keeps poping up once in a while? Read out
says that the virtual memory is low Tag: Context menu on grid Tag: 116888
Installation error (GAC)
I am using the trial version of MailBee.NET IMAP.
I created a program and made a setup package. I installed it on my other
vista machine and I get this error:
Unable to install or run the application. The application requires that
assembly MailBee.NET Version 3.0.2.79 be installed in the Global Assembly
Cache (GAC) first. Please contact your sys admin.
Any ideas how to fix this? Tag: Context menu on grid Tag: 116886
80070008, WindowsUpdate_dt000
80070008, WindowsUpdate_dt000. Thats the error im getting when i try to
install service pack 1. I have enough memory and all the requierments. I
tried troubleshooting the error with their service page. I am getting an
error when i try to install my webcam "not enough storage to install this
device" and i think the problam has to do with the same prob im getting from
trying to install sp1. Any help would help alot, im very stressed over this
issue. Tag: Context menu on grid Tag: 116879
Tab control and navigation buttons
Hello -
I have a tabbed control on a form that is populated from a database. I have
a request to change the application to include a navigation button for
customers that have multiple records.
I have created navigation buttons for use in forms, however, I have never
developed them specifically for a tab control. Is it possible to do this?
Any help will be greatly appreciated!
--
Sheldon Tag: Context menu on grid Tag: 116872
Button stuck disabled when running under VS Debugger
Hello all,
I'm experiencing a samewhat strange behaviour when running my Windows
Forms app from withing Visual Studio 2008. The application is
multithreaded and the workerthread fires an event that should enable a
button in the GUI. I'm using BeginInvoke to call the method that enables
the button on the GUI thread. The code is very straight forward:
On the worker thread:
[...]
ffmpegProcess.WaitForExit();
if (GeneratorFinished != null)
{
GeneratorFinished(this, null); //event that triggers the button enabler
}
In the GUI Class:
void generator_GeneratorFinished(object sender, EventArgs e)
{
if (this.InvokeRequired)
{
MethodInvoker invoker = new MethodInvoker(EnableStartButton);
invoker.BeginInvoke(null, null);
}
else
{
EnableStartButton();
}
}
private void EnableStartButton()
{
btnStart.Enabled = true;
}
This works as expected when running the program outside of VS. However if
I start the Program within VS (by hitting F5) the Button does change its
appearance from disabled to enabled but does still not accept mouse
input. The button works when I press the accelerator key (Alt+S). I can
also tab to the button (it recieves focus) and press enter. However
tabbing to it and pressing space doesn't work. Once the button got
activated via tab+enter or the accelerator key it 'unsticks' and accepts
mouse input again.
It's not a big deal but a little annyoing and I'm curious if there's
anything I can do to prevent it from happening?
Thanks
Ben Tag: Context menu on grid Tag: 116869
ClickOnce: Certificate cannot be validated
Hi,
We are signing our ClickOnce manifests with a code signing certificate
purchased from Thawte. When we install the software a security warning is
shown, and when we click on the publisher it says the certificate can not be
validated. This is because the "Thawte Code Signing CA" is not present on
the client machines.
Having done a web search, I found a previous post in this group describing
exactly the same issue - viewable at:
http://groups.google.com/group/microsoft.public.dotnet.framework.windowsforms/browse_thread/thread/8c46df2acf25d54/4c1c4221f69fa09e
From one reply from Linda Liu [MSFT]:
>I searched in our inner database and found a similar issue in it. The
>following is the comments:
>
>Firstly, this is a known issue that is being addressed in the next version
>of Visual Studio - The Orcas.
>Click Once apps do not distribute certificate/cert chains on the fly. So
>for path validation to be recognized at install time - the installing
>machine must have the intermediate certificate in this specific case.
My investigations have not yet turned up any CAs that offer code signing
certificates that directly chain from certificates we will find on our very
vanilla customer machines - they all seem to use intermediate certs. (I'd
love to be proved wrong on this...)
My real question relates to the comment that this is being addressed in the
Orcas release of Visual Studio. Is this true? If so, is there support in
framework 3.5 that can be accessed via cClickOnce APIs?
Thanks,
Tony Tag: Context menu on grid Tag: 116861
How can I find out on which row of a grid that the user right-clicked? I
don't want to assume it was the selected row.