Search results for query: *

  1. R

    'Add' function adds two objects instead of one. Is this a bug?

    I added the Attack method like this: Db.Users.Attach(CurrentUser) And this error occurred:
  2. R

    'Add' function adds two objects instead of one. Is this a bug?

    It's a little complicated... I'm using a Login Form that saves current user in a public variable: Dim UserQuery = From user In Db.Users Where user.UserName = txtUserName.Text Where user.Password = txtPassword.Text...
  3. R

    'Add' function adds two objects instead of one. Is this a bug?

    Thanks for your perfect explanation. Now I'm understanding the problem. The CurrentUser already exists. Can I fix the problem by attaching current user to the context?
  4. R

    'Add' function adds two objects instead of one. Is this a bug?

    I'm using Entity Framework 6 with VB.NET. The problem is that when I add a new 'user' object to the context, an additional user is added. This is the code: Dim Db As New DbModel ' Create a new user Dim NewUser = New User With { .UserName = txtUserName.Text.Trim, .Password =...
  5. R

    Question Sending RAW Data to the printer

    Hi I want to send PLC file to the laser printer I used this code but the print job stays in the print queue and could not be printed :confused: How to send raw data to a printer by using Visual Basic .NET What can I do ? Thanks a lot :D
  6. R

    Question Microsoft Word Component

    This code just change parent window of Microsoft Word Window and disables the window border & open & save buttons But I couldn't disable the Ctrl+S & Ctrl+O & Ctrl+P shortcuts Is it possible ? Where can I download DsoFramer ActiveX ? Thanks a lot
  7. R

    Question Microsoft Word Component

    I found the solution here : CodeProject: Integrating Microsoft Word in your .NET applications. Free source code and programming help Thanks a lot for your great help :D
  8. R

    Question Microsoft Word Component

    Thanks a lot I created my app with this article :D But the error still exists But when I click the open button, the document opens in the microsoft word instead of the browser control ! I saw this in the article above : But the article 311765 does not exists. Do you know how can I create...
  9. R

    Question Microsoft Word Component

    I used this code to show a Word document into a Web Browser Control : How to use the WebBrowser control to open Office documents in Visual C# 2005 or in Visual C# .NET This command should load the document into the browser : axWebBrowser1.Navigate(strFileName, ref refmissing, ref refmissing...
  10. R

    Question Microsoft Word Component

    Thanks a lot I found this code :) CodeProject: ByPass difficult Automation and add applications "as is" in your .NET application. Free source code and programming help It shows how to move any application's window to a button,Label or any other controls by changing it's handle But it seemed...
  11. R

    Question Microsoft Word Component

    Thanks I wanted to test it with Visual Studio 2003, But could not find Web Browser Component :confused: Then I used VS 2008 Express But now the code does not do anything and without any errors :confused: This is my code : Imports Word = Microsoft.Office.Interop.Word Public Class Form1...
  12. R

    Question Microsoft Word Component

    Thanks a lot I'll test it :rolleyes: Can I print or save the documents ? How can I access Word.Document events?
  13. R

    Question Microsoft Word Component

    Thanks a lot How can I do that ? Can I gain full access to a word document ? for example Printing, Opening files & capturing Events ?
  14. R

    Question Microsoft Word Component

    Hi Can I integrate Microsoft Word into a form as a component ? Can Microsoft Office PIA do this ? Thanks :)
  15. R

    Question Webcam snapshot using Direct Show ?

    Hi everyone I want to create a form control that shows the cam preview and can grab pictures of full resolution (1600 * 1200) by Quickam 9000 Pro 1.Is there any user control to use instead of rewrite ??? 2.Is it needed to download Windows DSK ? witch version should I download? I want to use...
Back
Top