-
Notifications
You must be signed in to change notification settings - Fork 4
/
Sample Question.xml
23 lines (23 loc) · 986 Bytes
/
Sample Question.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<row
Id="4"
PostTypeId="1"
AcceptedAnswerId="7"
CreationDate="2008-07-31T21:42:52.667"
Score="30"
ViewCount="4591"
Body="<p>I'm new to C#, and I want to use a track-bar to change a form's opacity.</p> <p>This is my code:</p> <pre><code>decimal " +
"trans = trackBar1.Value / 5000 this.Opacity = trans </code></pre> <p>When I try to build it, I get this error:</p> " +
"<blockquote> <p>Cannot implicitly convert type 'decimal' to 'double'</p> </blockquote> <p>I tried making <code>trans</code> " +
"a double, but then the control doesn't work. This code worked fine for me in VB.NET. </p>" +
"<p>What do I need to do differently?</p>"
OwnerUserId="8"
LastEditorUserId="56555"
LastEditorDisplayName="Rich B"
LastEditDate="2009-07-25T19:33:10.080"
LastActivityDate="2010-02-04T22:33:13.630"
Title="When setting a form's opacity should I use a decimal or double?"
Tags="<c#><beginner>"
AnswerCount="12"
CommentCount="10"
FavoriteCount="7"
/>