winapp

WinRTError: Class not registered

丶灬走出姿态 提交于 2019-12-08 10:43:46
问题 I'm new in TypeScript. I'm getting error when trying to instantiating the class. Below is my sample code, actual code is different can't share. module ABC { export class A { public execute<T>(action: string, data?: any, callerContext?: any): IAsyncResult<T> { // CODE:: var requestMessage = new Common.ClientClasses.ClientRequestMessage(); **// **ERROR- "WinRTError: Class not registered"**** requestMessage.requestUri = actionRequest; requestMessage.method = "POST"; requestMessage.body = data ?

Need a Security Scenario for asp.net webservice

荒凉一梦 提交于 2019-12-06 09:31:01
I have developed a .Net 3.5 windows forms application. I also want to design a website that has a webservice with multiple Webmethods to query the database on the host machine. I want the webservice to be called ONLY through my winapp and my website! And I don't want any other people to be able to call and use my webservice but only some people who have access to the windows application that I have developed. I need a good security scenario for this! I truly appreciate anyone who can help me because this is my first experience of developing a webservice and I really need it to be as secure as

Windows App spellcheck

牧云@^-^@ 提交于 2019-12-03 18:10:55
问题 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 dynamic..any suggestions? EDIT: I have seen several similar questions, the problem is they all suggest using open source applications (which I would love) or Microsoft Word. I am currently using Word to spell check and it slows my current application down

Resources related to Hiding and showing a windows form

一世执手 提交于 2019-12-02 11:58:26
I have a form which has a picturebox and after clicking on a button another form will appear with a picture box containing the exact same picture. I use this line of code: Image1.Image = vImage.Image The thing is after I do this i need to hide the form and show it again to be able to see the changes. I cause me a blink for user which I want to avoid or do an equivalent of hiding and showing a form. How is it possible, the code looks like this: Public Sub UpdatePhoto(ByVal FullName As String, ByVal vImage As System.Windows.Forms.PictureBox) timAnimate.Enabled = False Me.Text = FullName Image1

Foreach loop with images

你说的曾经没有我的故事 提交于 2019-12-02 07:20:07
问题 I have an 80 PNG image sequence in which I am trying to create an animation for my windows app. The file path is Assets/Star/ and I am trying to figure out how I would make a foreach loop for each image in the folder, so it would set the image object as Image1 then after a certain amount of ticks with the timer it would change it to Image2 and so on, here is what I have so far: private void SubmitButton_Click(object sender, RoutedEventArgs e) { if(LevelUp == true) { string ImagePath = "Assets

Foreach loop with images

眉间皱痕 提交于 2019-12-02 05:13:14
I have an 80 PNG image sequence in which I am trying to create an animation for my windows app. The file path is Assets/Star/ and I am trying to figure out how I would make a foreach loop for each image in the folder, so it would set the image object as Image1 then after a certain amount of ticks with the timer it would change it to Image2 and so on, here is what I have so far: private void SubmitButton_Click(object sender, RoutedEventArgs e) { if(LevelUp == true) { string ImagePath = "Assets/Star/"; foreach (Image item in ImagePath) { } } } However I dont think im approaching it correctly,

high DPI problems

筅森魡賤 提交于 2019-11-30 21:22:55
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 bigger, but the location of other controls does not change and we end up with lables obscuring other controls or eachother. The screen should look like this: http://www.manageinvest.com/good.jpg ..and on high DPI it ends up looking like this: bad.jpg (this is my first post so i am only allowed one link) Any suggestions? Thanks in advance, Kristian In

Windows App spellcheck

邮差的信 提交于 2019-11-29 15:14:40
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 dynamic..any suggestions? EDIT: I have seen several similar questions, the problem is they all suggest using open source applications (which I would love) or Microsoft Word. I am currently using Word to spell check and it slows my current application down and causes several glitches in my application. Word is not a clean solution so I'm really wanting to find

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

只愿长相守 提交于 2019-11-27 05:17:30
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 uses a thermal printer. Mark Hall Which PrintController are you using. The .NET Framework includes three print controllers that are derived from PrintController that help accomplish common tasks. The StandardPrintController prints a document to a printer. The PreviewPrintController generates a preview of what the document will look like when printed

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

≡放荡痞女 提交于 2019-11-26 09:56:50
问题 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 uses a thermal printer. 回答1: Which PrintController are you using. The .NET Framework includes three print controllers that are derived from PrintController that help accomplish common tasks. The StandardPrintController prints a document to a printer