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 SkipVought 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. marinero

    Setting GUI object from another class?

    Pass a reference to the label in form1 to class1 when you create it, save it there and the update it from there. Make sure the label is declared public in form1
  2. marinero

    Type Mismatch Error using Like% in Stored Procedure

    Have you tried using single quotes?
  3. marinero

    sql server smallmoney conversion to c# type

    SmallMoney is cast as Decimal, not as Double.
  4. marinero

    Is C# supposed to run faster than VB.Net?

    Most programmers using C# probably come from the C/C++ camp where type checking was not left to the compiler but the programmer; obviously VB does take extra steps to do it for you and thus might take extra code.
  5. marinero

    um, a newb needs some help...

    You also shouldn't use the Parse but the convert. num = Convert.ToInt32(textBox1.Text); Might as well get used to all the convert functions, and there are lots of them. Advantage is that if you use VS then intellisense will show all the options to you.
  6. marinero

    CheckedListBox

    string s; if(checkedListBox1.Items.Count > 0) for(int j=0; j<checkedListBox1.Items.Count; j++) { // check for all non-checked items if(checkedListBox1.GetItemChecked(j) == false) { s = checkedListBox1.Items[j].ToString(); // set checked...
  7. marinero

    FileStream open error

    You don't have write access to the file?
  8. marinero

    Create an array of HtmlTableCell variables?

    This is an example from the MSDN Library: <%@ Page Language="VB" AutoEventWireup="True" %> <html> <script runat="server" > Sub Page_Load(sender As Object, e As EventArgs) ' Create the HtmlTable control. Dim table As HtmlTable = New HtmlTable()...
  9. marinero

    How to change Position (LEFT,TOP) of a Control at Run time?

    label1.Location.X = ...; label1.Location.Y = ...;
  10. marinero

    Access permission

    If your asp page calls some out of process application you might want to include account IWAM_MachineName.
  11. marinero

    User Control to same Page Multiple times

    I am not quite sure I understand your question exactly, but you can create any control dynamically with progranatically a new command and define the loction and data binding at that time.
  12. marinero

    Textbox in Datagrid

    hook the text box for your comments into an event processor: add to the InitializeComponent() section an entry for your textbox name like: textBox.TextChanged+= new System.EventHandler(this.textBox_Changed); then put into the event process handler (if you have Vs hit two tabs to create it)...
  13. marinero

    Trying to get the number of items of a ListBox

    Since you do the listbox update on the client side with jscript the server doesn't know about it. Have you considered using a hidden field on the client filled by the jscript to hold this count so the server can read it?
  14. marinero

    Getting the Build Version

    Replace myApp.exe with the name of your application... FileInfo fileInfo = new FileInfo("myApp.exe"); if (fileInfo.Exists) { sCurDir = fileInfo.DirectoryName; strFile.Insert(0,sCurDir + "\\" + "myApp.exe"); FileVersionInfo myFileVersionInfo =...
  15. marinero

    XmlTextReader

    If the XML data resides in a file the simplest thing is to load it into a dataset: xmlName = file name) public void readXML(string xmlName) { dataSet1.Clear(); dataSet1.ReadXml(xmlName); dataSet1.AcceptChanges(); } then you can access the data by rows and columns. If you want to work on it by...
  16. marinero

    Passing parameters

    str = request("RegularAddDisplay") --- --- <input type="hidden" name="RegularDis" value="<%=strRegularAddDisplay%>"> Shouldn't it be -> value="<%=str%>"?
  17. marinero

    Flow Logic

    Use an InputBox to enter the new value; thus you never leave the page and can add the new value to your combobox.
  18. marinero

    from cart table to order table, any suggestions?

    Keep the values in session variables. Use the Scripting.Dictionary object instead of an array.
  19. marinero

    Refreshing combobox data

    Try using the BindingContext Class with your combobox and call SuspendBinding before adding the new item, then ResumeBinding.

Part and Inventory Search

Back
Top