Search:

Type: Posts; User: Philosophaie

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    1,291

    VS 2013 Integer into Strings

    Textboxes are strings. time.Month is integer. ToString() converts Integer to a string. Why does this not work?


    If (TextBox10.Text = time.Month.ToString() & TextBox7.Text = time.Day.ToString()...
  2. Replies
    3
    Views
    2,543

    CDate for mm/dd/yyy hh:mm:ss

    Need to write a CDate that is correct.

    CDate(mm/dd/yyyy hh:mm:ss)


    alarm = CDate(TextBox10.Text & "/" & TextBox7.Text & "/" & TextBox23.Text & " " & TextBox2.Text & ":" & TextBox3.Text & ":" &...
  3. VS 2017 WithEvents variable defining base types to Default.aspx.vb

    Default.aspx

    <asp:Button ID="Button2" runat="server" Text="Beach City" width="110%" />

    Default.aspx.vb

    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs)...
  4. Replies
    2
    Views
    573

    VS 2017 Does VB2017 support Paint?

    Does VN2017 Support Paint or something different.

    In VB2017 this just graphs a blank screen and it works in VB2013:

    Public Class Form1
    Dim gphFormGraphics As Graphics = Me.CreateGraphics
    ...
  5. Replies
    2
    Views
    680

    VS 2017 Graph using Windows Form

    I am trying to graph a Coordinate System. The graph is not showing just a blank screen no matter where I place the Rectangle or the points in Windows Form.


    Public Class Form1
    Dim...
  6. VS 2017 Re: Ajax and WebMethod Function are not in sync

    No authorization tag. Where is it located in Web.Config?
  7. VS 2017 Ajax and WebMethod Function are not in sync

    Ajax and WebMethod Function are not in sync.

    Ignoring the json input and testing if the string gets past gives this error:



    Here is my Webmethod and we are ignoring mo, dy and yr as a json...
  8. VS 2017 Error Code: Status: [ object Object] Ex: error

    I keep getting the same error no matter what string as output: "Error Code: Status: [ object Object] Ex: error". This exact code worked in c# except the <WebMethod>.


    Default.aspx.vb

    ...
  9. VS 2017 Re: Declaration at the beginning of an Ajax WebMethod if you are using a Json object

    Here is my code. alert("Error Code: Status: ") is [ object Object ]


    <script type="text/javascript" src="~/jquery=1.10.2.js"></script>
    <script type="text/javascript">
    ...
  10. VS 2017 Declaration at the beginning of an Ajax WebMethod if you are using a Json object

    Does there have to be some sort of declaration at the beginning of an Ajax WebMethod if you are using a Json object string as a return from the WebMethod.

    I am extremely having no luck with a...
  11. Replies
    5
    Views
    715

    List count in jCount

    I want a List<jPlace> count in jCount:


    Public Class jCount
    Public Property count() As jPlace()
    Get
    Return m_count
    End Get
    Set
    m_count =...
  12. VS 2017 Re: Keep getting "[object Object]" in my alert error code status from my ajax.

    How do you use a Newtonsoft Json.net Serializer?
  13. VS 2017 Keep getting "[object Object]" in my alert error code status from my ajax.

    I keep getting "[object Object]" in my alert error code status from my ajax. I believe I am returning an invalid json code from my webmethod function:


    <System.Web.Services.WebMethod> Public...
  14. Replies
    2
    Views
    2,467

    VS 2017 First line of Default.aspx Parser Error

    How do I change the first line.

    Site.Master exists with no errors.

    Default.aspx also has no errors and _Default works.

    It is just the first line. At first there is no errors then when you...
  15. Replies
    2
    Views
    2,575

    VS 2017 JSON String with Double Quotes

    Here are two separate instances both do not work correctly:


    Dim json1, dataa(99,9) as String

    json1 = "[{" & Chr(34) & "id" & Chr(34) & ":" & Chr(34) & dataa(i,...
  16. Replies
    5
    Views
    2,082

    VS 2017 Show a double quote in Visual BasiS

    How do you show a double quote in Visual Basic?

    In C# it is "\"".
  17. Replies
    1
    Views
    362

    VS 2013 Load an XML file

    I am working in VB Forms.

    I am trying to input data from a xml file preloaded into the Solution Explorer menu.

    I have tried:


    xmldoc = XDocument.Load("~/xml/xmlfile.xml")
    xmldoc =...
  18. In Windows Forms Applications using a connectionstring to connect with SQLdb

    In Windows Forms Applications, I am trying to use a connectionstring to connect with my SQLdb
    I created.

    I get this error:


    Here is my code:

    Private Sub Button1_Click(sender As...
  19. Replies
    1
    Views
    615

    ".mdf" files

    I am working with ".mdf" files in VWD 2010.

    Is there any way of using them in Visual Basic 2010 or VS 2013?
  20. Replies
    1
    Views
    750

    Return array from a Function

    How do you send back an array from a function?

    In VBA you just assign an array:


    Function arr...
    a=1
    b=2
    c=3
    arr=Array(a,b,c)
  21. enact a carriage return on a RichTextBox

    How do you enact a carriage return on a RichTextBox?

    RichTextBox1.Text = 123 & <br/> & 456 & <br/> & 789 does not work.

    Any suggestions?
  22. Last row in Microsoft.Office.Interop.Worksheet

    In Excel Worksheets("Sheet1").Cells(Rows.count, 1).end(xlup).row will give me the last row in column "A".

    What is it in VB.net?

    Sub LastRow()
    Dim xlApp As...
  23. Replies
    4
    Views
    2,002

    Re: Equate a string and an Excel cell

    I have tried:

    col1(k) = .Range("A" & k + 4).Value.ToString
    col1(k) = .Range("A" & k + 4).Value2.ToString

    Both gave the above error.
  24. Replies
    4
    Views
    2,002

    Equate a string and an Excel cell

    What I am trying to do is enter an Excel Spreadsheet into arrays for each Column.

    I am getting an error with my try..catch:



    Visual Basic does not equate a string and an Excel cell with just...
  25. Replies
    6
    Views
    1,174

    Re: Excel and SQL data

    Still getting this error:

    "Overload resolution failed because no Public '<>' can be called with these arguments:
    'Public Shared Operator <>(a As String, b As String) As Boolean':
    ...
  26. Replies
    6
    Views
    1,174

    Re: Excel and SQL data

    Dim a as String
    a=xlSheet.cells(1,1).ToString

    has xlSheet.cells(1,1) as a _ComObject and ToString or Cstr(xlSheet.cells(1,1)) do not convert it.
  27. Replies
    6
    Views
    1,174

    Re: Excel and SQL data

    How do you convert an "a"_ComObject to a b "String"

    Dim b as String
    a=xlSheet.cells(1,1)
    b=a
  28. Replies
    6
    Views
    1,174

    Excel and SQL data

    I have a Form which calls to an Excel document. This is the output to a try...catch that spans the Excel App which feeds a SQL Statement. Error code:

    "Overload resolution failed because no...
  29. Replies
    1
    Views
    520

    Printout of table1 on the Form1

    I want to use DataGridView like GridView in ASP.net.

    I draged the toolbox DataGridview to the Form.

    I linked it with my database.

    How do I get a printout of table1 on the Form1?

    My...
  30. Transfer if file or folder does not exist

    I want to update a computer on my network with any new programs and new folders recently added.

    Here is my sketches:

    'Transfer if the file does not exist
    For Each file1 In _____________...
  31. Replies
    0
    Views
    762

    Imports ? of the Outlook Items

    I would like the Imports ? of the Outlook MailItem, Attachments, MAPI.Session,Message,Attachments,Fields.
    Also help with any mistakes you can find with this program in Visual Basic.

    I have...
  32. Replies
    3
    Views
    540

    Edit a String

    In Excel to edit a string by:

    out=Left(str,3),
    out=Right(str,2) or
    out=Left(Right(str,5),2).

    How do you do it in Visual Basic?
  33. Re: int identity the current AUTO_INCREMENT

    I want to this programmatically or within the code.

    I do not want to create the table in Management Studio.

    I want to be able to generate a table in ASP.net without the aid of Visual Studio's...
  34. int identity the current AUTO_INCREMENT

    I am working in .net 4.0 and Visual Basic 2010 Express.

    I have tried this for the old AUTO_INCREMENT:


    ALTER TABLE table1 ALTER COLUMN col1 int identity(1,1) NOT NULL;


    CREATE TABLE table2...
  35. Re: Output of a Reader from an SQL Select

    Gets a Error:



    I currently have 3 rows of data with 14 columns.

    It should produce a n=42.
  36. Output of a Reader from an SQL Select

    How do I put the output to an array?

    With this it only prints out "True" and "False".


    Try
    Using conn As New SqlConnection(connectionstring)
    Using cmd As New...
  37. Replies
    7
    Views
    917

    Re: Statement to Execute the Command

    error code ex.Message: ExecuteNonQuery: Connection property has not been initiated.

    My connectionstring came right from the "Properties" when the Database is clicked on in the "Database Explorer"....
  38. Replies
    7
    Views
    917

    Re: Statement to Execute the Command

    An Exception error from the try...catch that surrounds it.

    I took out the "Using cmd ...End Using" and the conn works.

    The Exception error must be coming within the cmd part.
  39. Replies
    7
    Views
    917

    Re: Statement to Execute the Command

    Try
    Using conn As New SqlConnection(connectionstring)
    Using cmd As New SqlCommand("INSERT INTO table1 (col1, col2, col3) VALUES (@col1,@col2,@col3);")
    ...
  40. Replies
    7
    Views
    917

    Statement to Execute the Command

    Dim cmd As SqlCommand
    cmd.CommandText = "INSERT INTO table1 (col1, col2, col3) VALUES (@col1, @col2, @col3);"
    cmd.Parameters.AddWithValue("@col1, 9)
    cmd.Parameters.AddWithValue("@col2", 8)...
Results 1 to 40 of 87
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width