Search:

Type: Posts; User: rakker

Page 1 of 5 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: error replace text in word Doc. if textbox is empty

    Thank you for the reply. Based on your reply i think the best solution is using the "isnull" like below.

    This works so i will just use it



    FindText = "[Pd1xxx]"
    if...
  2. Re: error replace text in word Doc. if textbox is empty

    You are correct it is bound to a table.

    The textbox is filled by someone and saved to a database. Opening the form loads the data from the database and empty field are just empty in the textbox....
  3. Re: error replace text in word Doc. if textbox is empty

    Dim Replace with as String

    I solved it bij doing the following, but i don't feel it is the best and cleanest way.


    FindText = "[Pd1xxx]"
    if (isnull(Me.c169_Pd_value)) then
    ...
  4. Re: error replace text in word Doc. if textbox is empty

    Yes, i did that. The problem is the same the system drops out on the fact the the field is empty in the textbox.

    If i fill out the textbox with just 1 character it continues as required, but...
  5. [RESOLVED] error replace text in word Doc. if textbox is empty

    I have an access datase where i generate a word file based on information on the form in access.

    I use this code to find and replace text which works fine.


    FindText = "[Pd1xxx]"
    ...
  6. Re: Access Print to pdf and lock pdf after printing

    Hi, thank you for the reply. I don't think i'm contradicting myself, but i think i could perhaps have been more clear.


    I mean with this that if i only print the PDF as i do now, i need to open...
  7. Access Print to pdf and lock pdf after printing

    Hi, is there someone that can halp on this problem.

    I use Access, the program prints to PDF on buttonclick and this works without any issues. I now would like to know if it is possible to print to...
  8. Re: remove duplicate from combo box connected to database

    No, you could just have reacted normal without sounding condescending. I included this question in the first place so i thought to continue in the same topic, that i assumed wrong is on me, but I...
  9. Re: remove duplicate from combo box connected to database

    J*sus, man sorry for writing that, you dont need to react like that. I wrote both questions, som i'm not outside of my original question.

    On topic thank you for pointing me in the right drection.
  10. Re: remove duplicate from combo box connected to database

    The following seems to work for me.



    cmbBaseMat.DataSource = materialGroupDataSet.MatGroup.Select(x => x.BaseMs).Distinct().ToList();


    now is the question how do i make 2 other comboboxes...
  11. [RESOLVED] remove duplicate from combo box connected to database

    I am trying to remove duplcates from a combobox however this doesn't seem to result in a correct combobox, since he fill the combobox with the following text.
    ...
  12. Replies
    3
    Views
    1,088

    Re: Testing SQL database

    Thank you for the information. I actually knew that most Databases use SQL, but did not realise that it was wrong / unclear to formulate my question like i did. I want it to be accessble from several...
  13. Replies
    3
    Views
    1,088

    Testing SQL database

    Hi, I use to work with a access database, but i would like to use a SQL database for my project. I have no experience with SQL and have som questions about this.

    Checked mySQL, but the setup of...
  14. Replies
    1
    Views
    1,742

    Re: add free text to chart

    Solved:


    TextAnnotation CAT = new TextAnnotation();
    CAT.Text = "Here is the value";
    CAT.AnchorX = 50;
    CAT.AnchorY = 30;
    ...
  15. Replies
    1
    Views
    1,742

    [RESOLVED] add free text to chart

    I would like to add some free text in a chart.
    This free text is added on button click.



    LineAnnotation CAT = new LineAnnotation();
    CAT.Name = "Here is the value";
    ...
  16. Replies
    3
    Views
    1,759

    Re: C# Equivalent to CALL in VB

    That solved the problem. I tried this before, but clearly not in the correct way.
  17. Replies
    3
    Views
    1,759

    [RESOLVED] C# Equivalent to CALL in VB

    Hi,

    I used to program in VB sometimes, now i'm using C# due to flexibility of the language.

    I want to know the following.

    In VB i could use "Call" to call a specific procedure to be...
  18. Re: Indicate position in a logarithmic table

    That worked great. Thank you for the help.:)
  19. Re: Indicate position in a logarithmic table

    I already have the program, but now i am not using the log-log diagram only the values are visible. To make the program more user friendly i wanted to include the diagram so that the user can see the...
  20. Re: Indicate position in a logarithmic table

    I have a log/log table.
    153831
    each textbox has value that i want to display in the table with a dot (see picture of the log-log table).

    It is possible to indicate a dot on a picture in C# so it...
  21. [RESOLVED] Indicate position in a logarithmic table

    Hi,

    I want to do the following, but have no idea how it is possible to do it.

    I have a logarithmic table (EXCEL) that i want to embed in my program. In the program i have 2 textboxes that...
  22. Combine fields from bindingsource in combobox

    I have an access database. I have a bindingsource called "DrawingBindingSource" this bindingsource has several members (DisplayMembers).

    What i want to do is combine the members in 1 combobox to...
  23. Replies
    6
    Views
    1,682

    Re: copy and rename folder (directory)

    I use VS 2015.
    If i use
    My.Computer.FileSystem.CopyDirectory("C:\Test", String.Format("C:\Test{0}", numberTextBox.Text, True))
    the text changes to "Test-truenumberTextbox" so i changed it to the...
  24. Replies
    6
    Views
    1,682

    Re: copy and rename folder (directory)

    That was quick.

    This works, but still makes a copy of the original directory and places it in an new directory.

    My.Computer.FileSystem.CopyDirectory("C:\Test", String.Format("C:\Test+",...
  25. Replies
    6
    Views
    1,682

    copy and rename folder (directory)

    Hi,

    I want to copy and rename a directory in VB.net.

    The copy sort of works, but renaming gives an error.

    I have the following code under button click.


    ...
  26. Replies
    6
    Views
    1,615

    Re: error installing and sending a C# program

    @Sitten Spynne: thank you for the clear explanation. I understand that if the program should be distributed that i need to have a digital certificate.
    I will see if this is worth it.
    ...
  27. Replies
    6
    Views
    1,615

    Re: error installing and sending a C# program

    Nothing special, it doesn't save anything on the computer. Based on the input it calculates a value that corresponds with a table and shows you this table and the result of your calculation.

    I...
  28. Replies
    6
    Views
    1,615

    error installing and sending a C# program

    Hi,

    I'm trying to install my program to my computer.
    I get an error installing it.

    "Windows found that this file is potentially harmful. To help protect your computer, Windows has blocked...
  29. Re: Adding decimal in textbox and calculation

    Thanks that worked.
  30. Re: Adding decimal in textbox and calculation

    Got it to work.


    double DoublePallow = 0000.0000;
    double DoubleVolume = 0000.0000;
    double DoublePxV = 0000.0000;


    if (radioButtonPxV.Checked == true)
    ...
  31. Re: Adding decimal in textbox and calculation

    double DoublePallow = 0.0;
    double DoubleVolume = 0.0;
    double DoublePxV = 0.0;
    string Pallow = TextBox.Text;
    string PVolume = VolumeTextBox.Text;
    ...
  32. Re: Adding decimal in textbox and calculation

    The following happens.

    On clicking the calculate button i get an error.
    "An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll"


    decimal PressureTextBox;
    ...
  33. Re: Adding decimal in textbox and calculation

    I understand, txtPTextbox indicates a Pressure whilst txtVTextBox indicates a volume.
    if someone enters a value of < 1.5 bar (1,5 bar) the program needs to display a text if it is above this value...
  34. Re: Adding decimal in textbox and calculation

    Stupid me, should have known that.

    However i now get a error on the values.


    if (txtPTextBox < 1.5)


    Operator '<' cannot be applied to operands of type 'decimal' and 'double'
    This error...
  35. [RESOLVED] Adding decimal in textbox and calculation

    I have 3 textboxes, 2 input boxes and a results box what i would like to do is to be able to add a value in the textboxes including a decimal point.


    int txtPTextBox;
    int...
  36. Re: Error: not all code paths return a value

    I'm only returning TRUE values.
    As far as i can see i have all the IF statements provided with a RETURN value.
    Correct i placed the final return value at the wrong spot.
  37. [RESOLVED] Error: not all code paths return a value

    //tables
    public string Moduleschecked() <----Error: not all code paths return a value

    {
    int txtPTextBox;
    int txtVTextBox;
    int...
  38. Replies
    7
    Views
    1,859

    Re: change picture based on textbox C#

    I found the problem.
    Changed the code to the following.


    if (TableNRtextBox1.Text == "Table 1")
    {
    Image itable1 = Image.FromFile(@"Image\Table1.jpg");
    ...
  39. Replies
    7
    Views
    1,859

    Re: change picture based on textbox C#

    HUH? no consistency problem here.
    the textbox fills with a text "Table 1" or "Table 2" (TableNRtextbox1.text).
    if the text is "Table 1" it results in filling the Picturebox with a picture...
  40. Replies
    7
    Views
    1,859

    Re: change picture based on textbox C#

    I am looking for a text in the textbox called "table 1". when this text is found it needs to display a picture named "table1.jpg". Am i missing something here?
Results 1 to 40 of 163
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width