Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

kubben

@kubben
About
Posts
1.2k
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Using GetMessage in C#
    K kubben

    Well, You can try using FindWindow to get the second app windows handle. Then you should be able to send a string to it. There are some examples out there. I found this one: http://social.msdn.microsoft.com/forums/en-US/vbinterop/thread/62d0c25f-dadb-4b24-9679-f9f75717456c/ Hopefully, that helps. Ben

    C# help csharp c++ tutorial question

  • Using GetMessage in C#
    K kubben

    Well, If you just want it to trigger an event in the second app, they my article should work ok. Windows message won't allow you to pass a string in. So if the string it self is important you will have to do something different. If the string has certain characters that should cause something to trigger in the second app, you can just check for those in the first app and then send a windows message. Let me know if the string is important to the second app or not. Ben

    C# help csharp c++ tutorial question

  • Using GetMessage in C#
    K kubben

    First I need to ask why you want to use sendmessage to communicate between to applications. There are better ways of doing this. Ben

    C# help csharp c++ tutorial question

  • This might be a re-post...
    K kubben

    I have been away from the codeproject for a few months. Anyway, I know we are on a new version now. I just found out today, that I didn't get any (email) notification for questions posted to the bottom of my articles for the month of Dec. So I just spent this morning trying to respond to four or five questions I didn't even know people were asking. Anyway, just thought I would let everyone know, you might want to check your articles to see if some people posted questions in Dec and you didn't get notified about it. Ben

    The Lounge announcement

  • Error in my dataset
    K kubben

    Your objectdatasource needs to have a update method that has the parameters that you see in the error. IN that method you should run a sql statement that updates the sql database. You perhaps have put an update method in your objectdatasource definition, but it probably doesn't match the one defined in the error. NOTE the columns are auto generated based off the columns in the gridview. Hope that helps. Ben

    C# help question announcement

  • query
    K kubben

    This is the wrong forum. This should be posted on the sql forum. Still the answer should be something like: select sno, productid, brandid from table where sno = (select max(sno) from table) Hope that helps. Ben

    ASP.NET database help

  • Dyanamic array declarations
    K kubben

    Ok try this: private Names As String() Sub New(ByVal st As List(Of String)) st.CopyTo(Names) <-- value cannot be null error End Sub Ben

    Visual Basic question data-structures help tutorial

  • Get number used for Enum
    K kubben

    Right. It casts the Enum as a number. It is kind of silly, but it the only way I know of to get the enums numerical value. I am sure someone else will post a different way of doing it, but that is the way I normally do it. Ben

    C# question

  • Dyanamic array declarations
    K kubben

    I believe your problem is you haven't created your Names array yet. So I think your code should be something like: Dim Names() As String Sub New(ByVal st As List(Of String)) if Names is nothing then Names = new String(st.Length) end if st.CopyTo(Names) <-- value cannot be null error End Sub Anyway, hopefully you get the idea. Ben

    Visual Basic question data-structures help tutorial

  • Using Javascript to fire an event in another class....?
    K kubben

    You have to use ajax then. You don't have any other option. Ben

    C# csharp javascript asp-net help tutorial

  • Get number used for Enum
    K kubben

    The only way I know of doing this is: elementTypes et; //This will give you the number (Int32)et.hidden; Hope that helps. Ben

    C# question

  • problem with databaseconnectivity in webservices
    K kubben

    Change your select to: select dtlastupdated,dblvalue from dbo.tblPerodicTickerData where dtDateTime between '2007-03-28 11:35:09.000' And '2007-04-09 11:40:05.000' And I think it will work. There is no = between and I removed the a.m and put quotes around the datetime values. Hope that helps. Ben

    ASP.NET help csharp asp-net database sysadmin

  • How to run EXE thru network in VB .NET 2005
    K kubben

    I have written two articles on this. They are the only way I know of doing it and it requires a msi file to be created and then an admin user must run it on each PC that needs to access the program on the network share. http://www.codeproject.com/dotnet/Using_MSI_or_a_strong_nam.asp[^] http://www.codeproject.com/dotnet/Using_MSI_or_a_strong_na2.asp[^] Hope that helps. Ben

    .NET (Core and Framework) help csharp dotnet sysadmin tutorial

  • datepart funtion Problem
    K kubben

    This is the wrong forum for this question, but one answer might be: select right('0'+convert(varchar(2),datepart(dd,travel_date)),2) from booking_details Hope that helps. Ben

    Visual Basic help

  • SQL Tables
    K kubben

    Since the tables are not related in any way it probably makes sense to return multiple result sets. If you are calling a stored procedure, which I highly suggest, you could just do this: Select column1, column2 from table1 select column1 as expr1 from table2 Then you would get two results sets to work with. Hope that helps. Ben

    Database database question

  • Remove confirmation msg on window.close
    K kubben

    You should be able to remove the dialog if you set the window.opener=self Now if you are talking about having multiple tabs open, I am not sure what can be done with that dialog. Ben

    Web Development question

  • C# or VB.NET ? Which one do you perefer ?
    K kubben

    I spent my first 2 and 1/2 years working with vb.net. Then a little over two years ago I took a contracting job. I have been programming in C# for the last two years. I like C# a lot better. The last few weeks I have had a new contract which is vb.net again. My personal feeling is C# is a lot better to work with. If I had a choice I would choose C#. Ben

    The Lounge csharp question

  • please help
    K kubben

    If you are writing vb.net code you only have sub and function. Ben

    Visual Basic help question

  • Session variable expires
    K kubben

    You just need to make sure that all the config files on the web farm have the same value. As long as the session state service is running everything should just work. So you don't need to change the way you are using the session variable and your errors should go away. Ben

    Web Development question help

  • please help
    K kubben

    Yes a Sub doesn't return a value and a Function returns a value. Ben

    Visual Basic help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups