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

Search:

Type: Posts; User: kristof1104

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    653

    Re: Have Mercy 1st Post Visual C#

    You are passing the user input to the output label:

    outputLabel.Text = Fat.ToString("n1");

    You need to pass the calories value to the output lable:

    outputLabel.Text =...
  2. Replies
    2
    Views
    632

    Re: String Manipulation

    you could do something like this:


    Dim s As String = "a_b_c_d"

    Dim result = s.Split("_")(2)
    Console.WriteLine(result)
  3. Replies
    15
    Views
    1,058

    Re: Math project!

    You have to declare score outside a methode. Because if you declare it within a methode, the variable will be destroid when you leave the methode and be created each time you enter the methode.....
  4. Replies
    15
    Views
    1,058

    Re: Math project!

    On top of your class declare a variable that will hold the score
    like
    private int score=0;

    then you simply do this:
    if ((textBox1.Text == c.ToString()))
    {
    ...
  5. Replies
    4
    Views
    447

    Re: ArgumentOutOfRange

    Make sure your item had 5 subitems!
  6. Replies
    6
    Views
    585

    Re: Web To Desktop!

    I went to a seminar on silverlight and if you make a app in silverlight you can right click it and click a option wich enables you to run it locally(it'll copy it to the harddrive and make a link on...
  7. Re: Directing the placement of a Document.Write output

    I Would just use


    <&#37;="Hy There This is a Test"%>

    Or


    <% Response.Write("testing 1 2 3"); %>
  8. Re: Transactional programming - how do you solve it? (no DB here)

    XNA isn't that fast..:) Its only used for smaller games for a reason..
    Not using try catches is just a huge fail in my eyes it has nothing to do with being conservative.. it's just good coding!
  9. Replies
    11
    Views
    886

    Re: Public arrays?

    Here you go:
    public statements only work outside functions.


    public in [,,] test;
    private void main()
    {
    test = new int[100,100,3];
    }
  10. Replies
    5
    Views
    624

    Re: Issue with scope

    just make a getter for result in afmresult
  11. Re: WebBrowser Object - Respond to File Download/Save As Windows

    Instead of clicking the link try to extract the link and call this methode..


    public void DownloadFile(String sFileUrl, String destination, String sFileName)
    {
    ...
  12. Replies
    5
    Views
    563

    Re: Loading up ListBox and Event Throwing

    No problem mate! :D
  13. Replies
    5
    Views
    563

    Re: Loading up ListBox and Event Throwing

    You're welcome :D here is how you can achive what you want to do:

    lets say you have a class car like this one:

    class car
    {
    public string Name { get; set; }
    public...
  14. Replies
    5
    Views
    563

    Re: Loading up ListBox and Event Throwing

    You should use an arrayList.. you can fill the listbox like this(i think you can do the same with linklists but i would use an arraylist):


    List<string> list = new List<string>();
    ...
  15. Replies
    3
    Views
    409

    Re: Problem searching a Table

    Gladd I could help :)

    greetz kristof
  16. Replies
    3
    Views
    409

    Re: Problem searching a Table

    try
    SqlCommand filterAccounts = new SqlCommand
    ("SELECT * FROM Accounts WHERE Surname = '"+ criteria +"', connectionLine);

    also.. is your connection open before you...
  17. Re: Convert a String to an array of single characters?

    Actually a string is an array of chars so you can just do this ;)
    String s ="Hello";
    then s[0] will be 'H' and s[1] will be 'e' and so on...

    for the index you can use this:
    String s="Hello";...
  18. Replies
    5
    Views
    834

    Re: Simple If then Else Statement

    Do you use asp or asp.net
    if you use ASP.NET
    you make a <asp:label ID="label1" runat="server"/> tag in your aspx page

    and
    label.text = frmOffice
    fills in the text into that label

    if you...
  19. Re: Help with sorting and filtering the contents of a rich text box

    I made a solution in your other thread :)
    http://www.codeguru.com/forum/showthread.php?t=489660

    kristof
  20. Replies
    9
    Views
    934

    Re: Problem with ExecuteReader()

    Strange..,
    could you upload your project and db so I can take a look at it for you?
  21. Replies
    9
    Views
    934

    Re: Problem with ExecuteReader()

    It's just formatting.. it makes no difference

    dovobet I see the problem..

    you have more fields then you have values.. you have type 2times!
    try


    string SQLstr = @"INSERT INTO...
  22. Replies
    2
    Views
    1,505

    Re: Help with my WPF Application

    Here you go..
    I used 2 textBoxes just replace it with richttextbox.text and your set :) tested and works ;)



    private List<string> Chains = new List<string>();
    private...
  23. Replies
    3
    Views
    523

    Re: New to Windows Form Need Help

    I would use Pannels make 4 pannels for example.. and when you click a button just hide all panels and unhide the one you want to show
  24. Replies
    5
    Views
    521

    Re: host and client

    Windows Communication Foundation
    Here you go:
    http://msdn.microsoft.com/en-us/library/ms735119.aspx
  25. Replies
    9
    Views
    934

    Re: Problem with ExecuteReader()

    I agree with sotoasty, you should always use a try_catch block..
    If the messagebox with text "2" shows up it doesn't mean the code above it is ok.
    For example your input query, you're just making...
Results 1 to 25 of 31
Page 1 of 2 1 2


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center