dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: trenches

Page 1 of 7 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    10
    Views
    10,683

    Re: Use enum from another class?

    It looks like SetContainerType is expecting an int and not ContainterTypes as its parameter, so, as Mutant_Fruit suggested just change the parameter type from int to ContainerTypes and you won't need...
  2. Re: Which is preferable? Set() members or pass to Constructor?

    Where's the source of the parameter information? If it's a database then maybe you can pass a datarow object to the constructor. . .
  3. SSIS WebServiceTask simple type cast problem

    I have a SQL task that fetches some data from sql server 2005 which is then fed to a foreach loop to iterate through the recordset and call a webmethod for each record. The method parameters are...
  4. Replies
    4
    Views
    1,001

    Re: Circular Reference Problem

    Can you move the dialog (form?) to assembly A? You can still leave the logic in B. . .
  5. Replies
    4
    Views
    960

    Re: Building a better factory

    Adding to Mutant_Fruit's suggestion, you should declare default constructors on on these classes, e.g., Alpha(), so the actual construction process is fixed. . .
  6. Re: how do you find out what the name of your app is

    Include
    using System.Reflection;
  7. Re: Unselect the current selected row in Datagrid

    Is this the property you're looking for
    dataGridView1.Rows[0].Selected = true;
  8. Replies
    21
    Views
    2,490

    Re: Passing Values Between Classes

    Arjay makes some very good points and they'll make more sense to you as you gain experience. Here's your code, slightly modified to compile and work
    public class class1
    {
    public string x =...
  9. Replies
    2
    Views
    655

    Re: Question with mouse message!

    It sounds like you are looking for something like an event bubble, as far as I know that's only available in web environment. So, I think your options are limited to what you seem to be dreading and...
  10. Replies
    3
    Views
    922

    Re: Inherited classes in an array

    You bet. . .
  11. Replies
    3
    Views
    922

    Re: Inherited classes in an array

    you need to cast before you can access the child properties. . .
    Child cs = arrayX[0] as Child;etc.
  12. Thread: icq and c#?

    by trenches
    Replies
    2
    Views
    1,900

    Re: icq and c#?

    So, you can't reference ICQMAPI.dll in C#, is that the problem?
  13. Re: Combo Box SelectedValue property returns NULL on newly inserted rows

    The DisplayValue shows in the combobox because you are writing it to the bound dataset which is on the client. If you also explicitly write the ID, It'll work as is. However, that may not be a good...
  14. Re: Combo Box SelectedValue property returns NULL on newly inserted rows

    Well, it's obviously not returning the ID, so try refreshing the datasource and you may also need to rebind the combobox
  15. Replies
    5
    Views
    849

    Re: Text Box Write Issue

    You wont be locking the UI if you listen on a port. Try this out
    const int PORT = 81;
    const int BACKLOG = 10000;// it will vary based on os
    // create the socket
    Socket listenSocket = new...
  16. Replies
    11
    Views
    2,336

    Re: Failed to add a new row to a table

    The answer may lie in the selectcommand query from the two apps. So, why don't you post the two select queries and may we'll know why. . .
  17. Replies
    11
    Views
    2,336

    Re: Failed to add a new row to a table

    Your tblMachinesTableAdapter needs an InsertCommand
  18. Thread: WPF Questions

    by trenches
    Replies
    1
    Views
    703

    Re: WPF Questions

    Might as well. . .
  19. Replies
    3
    Views
    866

    Re: Simple command line/console question

    Something like this may work
    Process process = new Process();
    //Program you want to launch execute etc.
    process.StartInfo.FileName = @"C:\Program Files...\R-2.4.0\bin\R";...
  20. Replies
    9
    Views
    2,600

    Re: canceling "ok-button pressed"

    You may also consider a slight addition to jmcilhinney's code to prevent malfunction if some other developer was to set the button's dialog property to OK in design
    private void button1_Click(object...
  21. Replies
    11
    Views
    1,310

    Re: recognition of numbers

    This could do the trick (only the first numeric though. . .and the numeric must have space around it)

    static void Main(string[] args)
    {
    string data = "some number 1,006.05 and other value";...
  22. Replies
    4
    Views
    903

    Re: Combo Box issue: Do not show an item

    Arjay makes a very good point but it could be a little bit of work, depending on the scenario. I've run into similar situations and found it simpler to add a preventive validation after the fact. . .
  23. Replies
    8
    Views
    1,087

    Re: Problem with understanding ref keyword

    You're right, I did have it mixed up, thanks for pointing that out. So, the only benefit of a ref on a reference type so far is the ability to have the called method point it to a different instance...
  24. Replies
    3
    Views
    710

    Re: Calling a function from

    If you create a local instance of Class1 in the Class2.Test (using Arjay's example), the instance goes out of scope when the Test method does and would get garbage collected sometime after. So, what...
  25. Replies
    3
    Views
    830

    Re: Replace ' or " with '\'

    This will work
    name = "\"nick\"";
    This will not work
    name = \"nick\";
Results 1 to 25 of 155
Page 1 of 7 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)