Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. dolfo35

    Function that uses values from ASP.Net form

    Thank you for kindly letting me know that there are other forums. However, the answer just so happened to be 50% Javascript, 50% ASP.NET (datagrid). Private Sub grdContractEvents_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles...
  2. dolfo35

    Function that uses values from ASP.Net form

    Hello, I am opening a popup window with this function: function newWindowEvent(Page) { var winl = (screen.width - 400)/2; var wint = (screen.height - 400)/2; var settings = "height=400,width=400,toolbar=1,location=1,top="+wint+",left="+winl+""; var x =...
  3. dolfo35

    Unhandled exception of type System.NullReferenceException occurred

    Is there a reason why you declare them differently? You Dim aCol0 as DataColumn and you Dim aCol10 as New DataColumn. Rudy
  4. dolfo35

    A Different C1TrueDBGrid Question

    Ruffnekk, Thanks for your reply. I guess that would have helped. I'll include more detail next time. As for this time, I got an email yesterday from John Ayers of ComponentOne. If you have the Hyperlink example and have this same problem, replace the MouseMove event of the C1TrueDBGrid with...
  5. dolfo35

    allow null value in textfield

    Jaminj, this has worked for me in the past: If trim(txtcigbook.text) = "" then cmdInsert.Parameters.add("@cigbook", SqlDbType.Money).value = DBNull.Value Else cmdInsert.Parameters.add("@cigbook", SqlDbType.Money).value = txtcigbook.text End If Hope that helps. Rudy
  6. dolfo35

    A Different C1TrueDBGrid Question

    Now that I know some of you use this control I'm hoping that someone has the answer to this question. In the samples there is a project called "Hyperlink". I'm using it to learn how to add a hyperlink column into a much larger project. The only problem is that it has an error in it. If you...
  7. dolfo35

    Importing from Excel

    I'm curious. Isn't the object library for Excel 2003 '11.0'? I noticed that Extended Properties = 8.0. That may have nothing to do with it, but it's usually the things that are overlooked that cause me problems. Rudy
  8. dolfo35

    Stored procedure returns value

    V, This is what works for me, except I'm using SQL Server: Dim prmName As SqlParameter = cmd.Parameters.Add("@Param1", SqlDbType.int) prmName.Value = someNumber So, I guess yours would be something like this (provided the differences between OleDB and SQL do not change things): Dim...
  9. dolfo35

    Populating a DataGrid a Second Time

    Thank you Rick and Christiaan. Even though the reply was not exactly correct, it did lead me to the solution. ' since tablestyles does not have a count property (or I didn't see it anyway) Grid1.tablestyles.clear ' Then add the style Grid1.TableStyles.Add(dgStyle1) That got me working...
  10. dolfo35

    Populating a DataGrid a Second Time

    Hello, I need to populate a datagrid a second time. The first time it is populated works perfect. However, when I click on the button that populates it a second time I get this error: THE DATA GRID STYLES COLLECTION ALREADY CONTAINS A TABLE STYLE WITH THE SAME MAPPING NAME! ' Code that...
  11. dolfo35

    Specifying column widths for more than one DataGrid

    sardOnicpan, thank you for posting this question. I have been looking for a 'newbie' explanation on how to set varying column widths in a datagrid. Thanks to your post, I am now able to do that. I am now getting the "THE DATA GRID STYLES COLLECTION ALREADY CONTAINS A TABLE STYLE WITH THE SAME...
  12. dolfo35

    System.NullReferenceException

    Well, I did not figure out what the problem was. I did figure out that when I build the Install project, install it on my computer, and run the application, there is no interruption. That is true for this project. I'm not sure that I won't see the NullReference in future projects. It's...
  13. dolfo35

    Easy Question...

    I know that the bold methods are in bold when they have code added to them. In other words, if you were to click on Dispose, you would see that it has at least one line of code just like btnProtected_click does in your screenshot. I'm not sure about the key icons. Hope that helps. Rudy
  14. dolfo35

    System.NullReferenceException

    Yes, Component1 controls all throughout the project. Not on this particular tab though. One on the main form and then some more on other tabs. Rudy
  15. dolfo35

    System.NullReferenceException

    No, after I hit Break on the error box I get another that says "There is no source code available for the current location." Rudy
  16. dolfo35

    System.NullReferenceException

    Rick, Thanks for that suggestion. I removed the install project and the problem still exists. As soon as I added the control it worked the first time and then got the NullReference every time after that. Maybe that's a good thing that it's not happening every other time anymore. If the main...
  17. dolfo35

    System.NullReferenceException

    Rick, the only other project is the deployment project. I can try removing that tomorrow at work and see if that makes a difference. Thanks for the quick reply. Rudy
  18. dolfo35

    System.NullReferenceException

    Has anyone ever encountered anything similar to this? I have a Tab Control on a Windows Form. Currently, it has 8 Tab Pages. On the eighth tab I have 2 DateTimePickers and one Button. I'm trying to add another control to this tab. I need to add a datagrid, but in trying to solve this...
  19. dolfo35

    sql and apostrophe's!

    Hi Rick, and everyone else. Would this work the same with the ampersand sign (&). I have a field in SQL Server that has an & in some of the values. I tried using the solution mentioned in this thread, but I might have done something wrong. If this works with & do I change the syntax at all...
  20. dolfo35

    Add Reference to Multiple Versions of Object Library

    staleb, I have it declared different. I'm not sure where I found this, but I have this in a module: Public wrdApp As Object Public wrdDoc As Word._Document Also, not remembering why, I have this line in the same module: Imports Word = Microsoft.Office.Interop.Word I think that...

Part and Inventory Search

Back
Top