Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
Questioncan we connect SQLite using visual studio Pin
rajeshsuri-IT27-May-14 3:41
rajeshsuri-IT27-May-14 3:41 
AnswerRe: can we connect SQLite using visual studio Pin
Chris Quinn27-May-14 3:57
Chris Quinn27-May-14 3:57 
AnswerRe: can we connect SQLite using visual studio Pin
OriginalGriff27-May-14 5:03
mveOriginalGriff27-May-14 5:03 
AnswerRe: can we connect SQLite using visual studio Pin
Shady George27-May-14 11:00
Shady George27-May-14 11:00 
QuestionHow we can shared any folder on all user of LAN using c# code. Pin
osmo3327-May-14 2:13
osmo3327-May-14 2:13 
AnswerRe: How we can shared any folder on all user of LAN using c# code. Pin
BobJanova27-May-14 2:50
BobJanova27-May-14 2:50 
GeneralRe: How we can shared any folder on all user of LAN using c# code. Pin
Member 1083865327-May-14 19:25
Member 1083865327-May-14 19:25 
QuestionHow to make a popup Change the Orientation at the border of my window? Pin
Member 1044722226-May-14 23:37
Member 1044722226-May-14 23:37 
Hello everybody,

i am pretty new in C# and have a question about how to customize the "Popup orientation".
I have realized a popup with a "custom Placement" which is working gut. However i´ll like my Popup to recognize when there´s not enough place in the window to be fully displapled and to Change the way to appear (from right to left for example).


<Grid Name="backgroundGrid" Width="48" Height="48">
<Rectangle Name="Rect" Fill="Orange" />

<Popup Name="PopupInfo" AllowsTransparency="True" IsOpen="{Binding ElementName=backgroundGrid, Path=IsMouseOver, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" PlacementTarget="{Binding ElementName=backgroundGrid}" Placement="Custom" >

<Canvas Width="200" Height="100">
<Path x:Name="Container" Canvas.Left="37" Canvas.Top="10" Data="M 0,40 L15,50 15,80 150,80 150,0 15,0 15,30" Fill="LightGray" Height="52" Stretch="Fill" Width="130">
<Path.Effect>
<DropShadowEffect Color="Black" ShadowDepth="10" />
</Path.Effect>
</Path>
<TextBlock Canvas.Left="50" Canvas.Top="28" Width="107" Height="22" Margin="10,0,0,0" Text="Popup with text...." TextWrapping="Wrapwithoverflow" />
</Canvas>

the code behind:

PopupInfo.CustomPopupPlacementCallback = new CustomPopupPlacementCallback(placePopup);

public CustomPopupPlacement[] placePopup(Size popupSize, Size targetSize, Point offset)
{
CustomPopupPlacement placement1 = new CustomPopupPlacement(new Point(10, -12), PopupPrimaryAxis.Vertical);
CustomPopupPlacement placement2 = new CustomPopupPlacement(new Point(0, 0), PopupPrimaryAxis.Horizontal);
CustomPopupPlacement[] ttplaces = new CustomPopupPlacement[] { placement1, placement2 };
return ttplaces;
}

I hope to get a Feedback from someone here.

Phil B.
QuestionConvert number from exponential form to decimal form ( dot notation ) Pin
Abhiroop0925-May-14 22:41
Abhiroop0925-May-14 22:41 
AnswerRe: Convert number from exponential form to decimal form ( dot notation ) Pin
Mycroft Holmes25-May-14 22:54
professionalMycroft Holmes25-May-14 22:54 
Questioni am changing size of imge with dimension given by textbox. Pin
megha_p25-May-14 22:14
megha_p25-May-14 22:14 
Questionc# Pin
Member 1070273525-May-14 19:19
Member 1070273525-May-14 19:19 
AnswerRe: c# Pin
Kornfeld Eliyahu Peter25-May-14 20:38
professionalKornfeld Eliyahu Peter25-May-14 20:38 
AnswerRe: c# Pin
Richard MacCutchan25-May-14 21:50
mveRichard MacCutchan25-May-14 21:50 
Questionmicrosoft word interop - inserting file into a word document. Pin
Member 1065956825-May-14 15:48
Member 1065956825-May-14 15:48 
QuestionTimer and scrollbar position of update panel Pin
Tracy Chong25-May-14 0:16
Tracy Chong25-May-14 0:16 
AnswerRe: Timer and scrollbar position of update panel Pin
OriginalGriff25-May-14 0:31
mveOriginalGriff25-May-14 0:31 
Questionhow to gradient TextBox in word document by c#? Pin
Member 1078639324-May-14 23:56
Member 1078639324-May-14 23:56 
AnswerRe: how to gradient TextBox in word document by c#? Pin
Richard MacCutchan25-May-14 0:56
mveRichard MacCutchan25-May-14 0:56 
QuestionIssues with Microsoft.Deployment.WindowsInstaller Namespace Pin
Mohan Subramani24-May-14 8:15
Mohan Subramani24-May-14 8:15 
AnswerRe: Issues with Microsoft.Deployment.WindowsInstaller Namespace Pin
Richard Andrew x6424-May-14 9:09
professionalRichard Andrew x6424-May-14 9:09 
Questionimage scaling Pin
megha_p24-May-14 1:42
megha_p24-May-14 1:42 
AnswerRe: image scaling Pin
Richard MacCutchan24-May-14 3:37
mveRichard MacCutchan24-May-14 3:37 
Questionimage processing program using c# Pin
Member 1083976523-May-14 6:08
Member 1083976523-May-14 6:08 
AnswerRe: image processing program using c# Pin
OriginalGriff23-May-14 6:13
mveOriginalGriff23-May-14 6:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.