Questions tagged [winapp]

89 questions
16
votes
2 answers

How to skip the dialog of printing in printDocument.print() and print page directly?

When I use MyPrintDocument.print() in a Windows application written in C#, a dialog is shown for the Windows processing print routine with a cancel button. I don't want this dialog shown, is it possible? If not, which way should I use? My program…
hamze
  • 6,041
  • 6
  • 32
  • 42
14
votes
5 answers

Uri.AbsolutePath messes up path with spaces

In a WinApp I am simply trying to get the absolute path from a Uri object: Uri myUri = new Uri(myPath); //myPath is a string //somewhere else in the code string path = myUri.AbsolutePath; This works fine if no spaces in my original path. If spaces…
JohnIdol
  • 45,251
  • 58
  • 153
  • 235
14
votes
2 answers

How may I store a file path in my program's app.config file?

I have written a C# program for saving and reading PDF files. The program saves the output files to the local computer's bin folder. I want my program to access files from a different computer. I have heard about keeping a file path stored in the…
veronika.np
  • 341
  • 1
  • 4
  • 10
7
votes
3 answers

high DPI problems

I have a problem with the display of our .NET Windows application under high dpi settings. All forms are set to AutoScaleMode = DPI, but this does not solve all the problems. Basically labels end up expanding in size to cope woth the font being…
kristian
  • 71
  • 1
  • 2
5
votes
1 answer

deploy Crystal report on client machine just by copying of rquired DLL?

Hello every one We are using CR 2010 for .net and in client side we need just CR reportviewr Are there any walkthroughs that copy crystalreport dll files in Bin directory and copy these file in client machine, run time msi file is huge and we are…
Mojtaba
  • 1,080
  • 1
  • 10
  • 28
4
votes
2 answers

Difference between nothing and system.DBNull

I am working in VB.NET and I am wondering about the difference between Nothing and System.DBNull. When I fire save query at that time I am giving value from grid at runtime like as follow: gvMain.Rows(j).Cells("Brand").Value.ToString() But it shows…
Jay Tankariya
  • 69
  • 3
  • 12
3
votes
1 answer

mouse event fires when I mouse over child control

Ok, so I have this control that has some other controls on it. I have set the controls mouse enter and mouse leave events. My problem is that the mouse leave event fires if I mouse over any of the child controls (like the name box for…
Johnie Karr
  • 2,634
  • 2
  • 32
  • 41
3
votes
4 answers

CType and Type casting Exception

Public Property Duration() As Integer Get Try Return CType(Item(DurationColumn), Integer) Catch e As Global.System.InvalidCastException Throw New Global.System.Data.StrongTypingException("The value for column 'Duration' in table…
Faulty Orc
  • 905
  • 2
  • 13
  • 23
3
votes
1 answer

Stretch content of SplitView.Pane when SplitView is in Compact mode

I'm trying to create a navigation bar using the SplitView control. I set it's DisplayMode property to CompactInline and two different values for CompactPaneLength and OpenPaneLength properties. Problem is when SplitView gets closed (compacted),…
Mehrzad Chehraz
  • 4,904
  • 2
  • 14
  • 26
3
votes
1 answer

WinApp 8.1 (WinJS) App with AngularJS

I am currently working on a prototyp on for testing the usability of several frameworks when developing a Win8.1 WinJS app. During the development I discovered a very strange behaviour with forms. This is the vanilla form of an freshly created WinJS…
Silverdust
  • 1,443
  • 13
  • 20
3
votes
3 answers

Windows App spellcheck

I was wondering if there is another way to spell check a Windows app instead what I've been of using: "Microsoft.Office.Interop.Word". I can't buy a spell checking add-on. I also cannot use open source and would like the spell check to be…
Avien
  • 1,210
  • 2
  • 14
  • 30
2
votes
1 answer

ListView with different text alignments?

How to set a ListView to align some columns right and some columns left? I mean that I have a ListView that its layout is left to right but I want to be alignment of second column and anything under that to left? Thanks in advance. #BEGIN EDIT View…
Mostafa Farzán
  • 577
  • 2
  • 6
  • 25
2
votes
6 answers

Changing the value of a String in C# WinApp forever?

Assume I have a String Field in my WinApp like below : public string UsingTheApplicationFrom = "Not Yet"; Now , I wanna to change the value of the field forever, in first running of my application. e.g : UsingTheApplicationFrom = "‎Friday,…
Mohammad Dayyan
  • 18,338
  • 35
  • 143
  • 207
2
votes
2 answers

Got error during make a setup for win app using VS 2012

After finishing my C# application I had to make an installer. When i want to choose SQL Express in prerequisites section this error appear : "Error 3 To enable 'Download prerequisites from the same location as my application' in the…
2
votes
1 answer

How to attach my wpf window with calculator (Desktop application)?

How to attach my WPF window with Calculator which is a Desktop application? My requirement is to when i move WPF window, calculator application should come together and vice-versa. Please guide me the correct way to achieve my objective.
Ramasamy
  • 21
  • 1
1
2 3 4 5 6