Search:

Type: Posts; User: NewWorldOrder

Search: Search took 0.01 seconds.

  1. Replies
    19
    Views
    17,650

    Re: [ASP] SQL Connection Error

    I used this string and it worked

    <add name="QuizConnectionString" providerName="System.Data.SqlClient" connectionString="Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=quizdb;Integrated...
  2. Replies
    19
    Views
    17,650

    Re: [ASP] SQL Connection Error

    So, how exactly should my connection string look like?
  3. Replies
    19
    Views
    17,650

    Re: [ASP] SQL Connection Error

    All of it? No. Just "localdb"
  4. Replies
    19
    Views
    17,650

    Re: [ASP] SQL Connection Error

    I havent set any credentials.
  5. Replies
    19
    Views
    17,650

    Re: [ASP] SQL Connection Error

    Good point. In properties I see "Connection String | Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=master;Integrated Security=True;Connect...
  6. Replies
    19
    Views
    17,650

    Re: [ASP] SQL Connection Error

    Which connection string should I use?
  7. Replies
    19
    Views
    17,650

    Re: [ASP] SQL Connection Error

    https://preview.ibb.co/eV74BR/vb.png




    <configuration>
    <configSections/>
    <connectionStrings>
    <remove name="quizConnectionString"/>
    <add name="quizConnectionString"...
  8. Replies
    19
    Views
    17,650

    Re: [ASP] SQL Connection Error

    I use sql object explorer, does that count as sql server? I want to test this app locally on firefox via visual studio, so I don't know how to link sql server or if sql object explorer is one of...
  9. Replies
    19
    Views
    17,650

    Re: [ASP] SQL Connection Error

    Error page: "Server Error in '/' Application.
    The system cannot find the file specified
    Description: An unhandled exception occurred during the execution of the current web request. Please review...
  10. Replies
    19
    Views
    17,650

    [RESOLVED] [ASP] SQL Connection Error

    I use this source code: http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=onlinequiz&DownloadId=719714&FileTime=130215525525630000&Build=21063 and when I run my web app the sql...
  11. VS 2015 Re: Button size in relation to image

    Very nice tips thanks. One last thing, the button is not behaving as a normal one, the click event doesnt work.
  12. VS 2015 Re: Button size in relation to image

    I was playing around with the ifs too this seems to be the cause. Now it works a lot better thanks! But what is the logic behind mevent.X > Me.ClickableArea.Left AndAlso mevent.X <...
  13. VS 2015 Re: Button size in relation to image

    Thanks. Ok so I created the button, but if I click anywhere else first and then on the button it doesn;t work and it only works for the first click, after that its dead. Sometimes it works again...
  14. VS 2015 Re: Button size in relation to image

    What do you mean? There's no "MyButton" control in ToolBox.
  15. VS 2015 Re: Button size in relation to image

    I get error: "Reference to a non-shared member requires an object reference."

    Edit: Ok I fixed it, but it doesn't work.
  16. VS 2015 Re: Button size in relation to image

    And X + Y should be replaced with coordinates?
  17. VS 2015 [RESOLVED] Button size in relation to image

    I'm trying to make the click area of a button smaller, while its background image stays bigger. How can I achieve this? My code:



    'Button1
    '
    Me.Button1.BackColor =...
  18. VS 2015 Re: Textbox1 to Inherit ContextMenu

    Alright, I got it now. For anyone wondering here is the code I used for cut/copy/paste



    Private Sub CutToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles...
  19. VS 2015 Re: Textbox1 to Inherit ContextMenu

    Yes, ContextMenuStrip. I can't set the property "ContextMenuStrip" of the textbox and I didn't touch anything from the "designer" and I don't know how to do this in "designer".
  20. VS 2015 Re: Textbox1 to Inherit ContextMenu

    With this code when you right click inside the form window the menu is displayed correctly. I want this menu to pop up when you right click inside the textbox. I can't set the contextmenu of the...
  21. VS 2015 [RESOLVED] Textbox1 to Inherit ContextMenu

    I use the following code according to https://docs.microsoft.com/en-us/dotnet/framework/winforms/controls/how-to-associate-a-contextmenustrip-with-a-control which works fine for windows form1

    ...
  22. Replies
    9
    Views
    1,812

    VS 2015 Re: Custom Cursor Black + White Issue

    Sorry, I don't understand the snippet codes or how to combine them. I didn't know that it's so hard to load a custom cursor with fixed color. Anyway, thanks.
  23. Replies
    9
    Views
    1,812

    VS 2015 Re: Custom Cursor Black + White Issue

    How should I put it?
  24. Replies
    9
    Views
    1,812

    VS 2015 Re: Custom Cursor Black + White Issue

    So I put the code like this? Doesn't work.



    Private Sub Cursor
    Dim tempFilePath = IO.Path.GetTempFileName()

    IO.File.WriteAllBytes(tempFilePath, My.Resources.cursor1)
    ...
  25. Replies
    9
    Views
    1,812

    VS 2015 Re: Custom Cursor Black + White Issue

    Isn't there a simpler solution? I really want to use resource and .cur file, because if I load it as icon the click pointer coordinates will get messy.
  26. Replies
    9
    Views
    1,812

    VS 2015 Custom Cursor Black + White Issue

    This is the code for the .cur file


    Public Sub New()
    InitializeComponent()
    Me.Cursor = New Cursor(New IO.MemoryStream(My.Resources.cursor1))
    End Sub


    however it is...
Results 1 to 26 of 27



Click Here to Expand Forum to Full Width