Jump to content
Xtreme .Net Talk

alanchinese

Avatar/Signature
  • Posts

    62
  • Joined

  • Last visited

Everything posted by alanchinese

  1. finally... i did me.datagrid1.datasource = me.dataset1.tables("alan").defaultview.table it works! why is it like that?
  2. is there a way to drag & drop to change the position of an item in a listbox? like there are 4 items, "a", "b", "c", "d". i want to let the user to swith the position of "a" and "d" to become "d", "b", "c", "a". the way i am doing now is using the up & down buttons, to push the items around. if drag & drop is working, i might want to give the users an option to swap the two positions, or to cut and insert....
  3. i noticed that there is an auto-incremental column name "alan_Id", that when you try to add a new role in the datagrid, that column is not updating....
  4. i am not sure what you are wondering about microsoft. if it's about remote desktop, it's only a client of the so called 'remote desktop protocol'. you can connect to the windows terminal server from linux using one built-in program called rdesktop.
  5. i have the following file called alan.xml <alan> <one> <jump>1</jump> <sit>2</sit> </one> <one> <jump>9</jump> <sit>2</sit> </one> </alan> alan is the root, one is the table name, jump & sit is the column names. if i do MyDataSet.ReadXml("alan.xml"), it will have two tables, but i want to only consider table "one". ok, i put a datagrid in the form, assign MyDataSet.Tables("one") to the datasource. it shows two columns in the datagrid: jump & sit. that's normal. however, when i tried to do MyDataSet.WriteXml("alan.xml") after i added a new row inside the datagrid, it gives me an error which i found out it's because the column numbers of the added new row are not maching the dataset. i tried to display the structure of the datatable, it has one extra column call "alan_id". my question is, why didn't the datagrid show the "alan_id" column? how can i use the datagrid to change the datatable and reflect the changes in the xml file by using WriteXml?
  6. no, it complains i cannot link ProjControls to the forms because it will create a loop -- ProjForms already ref ProjControls.
  7. i have forms needs some time to load the data. i want to pop up a form saying "Form is Loading... please wait" so that the users won't get confused and try to initiate multipul forms before the first one finished loading. also, i want to include a button "Cancel" so that by clicking it the users can terminate the form. i am able to implement this feature by creating a new thread to display the "waiting" messagebox and creating delegates for the "waiting" form to invoke the "CloseForm" function in the main form. i just wonder if there is a better and safer way to accomplish this? thankx.
  8. i have two projects, ProjControls and ProjForms ProjControls includes CtrlAddress, which is a group of controls CtrlText (includes the TextBox control, for street, city, and zipcode) and CtrlOptions (includes ComboBox control, for state codes). ProjForms includes FormCustomer, that uses CtrlAddress inside the form. that's why i need to include ProjControls' dll for ProjForms ProjForms also includes FormZipcode, and FormCity, etc. which shares similar UI of the FormCustomer. what i want to do is, inside the CtrlAddress, i want to have a button so that by clicking it users can access information for certain zipcode or city. now i have the problem: I cannot include the reference of ProjForms into ProjControls.... i want to see how you handle this issue? should i combine ProjControls and ProjForms together (tha's not what i want to do, because there are reasons for me to group them seperately) thankx.
  9. sorry, i put "WaitToExit" in the real calling.
  10. the UsersForms opens up, but the orginal form hangs... why is it like that? Dim psi As New ProcessStartInfo psi.FileName = "UsersForms\bin\UsersForms.exe" psi.Arguments = "true true" Process.Start(psi)
  11. i want to see if there is a way to show a form from another project according the dll name string passed by the users. Public Sub ShowOneForm(ByVal dllName as String) Dim oneForm Select Case (dllName) Case "FormA": oneForm = new CustomFormA() Case "FormB": oneForm = new CustomFormB() Case "FormC": oneForm = new CustomFormC() End Select oneForm.Show() End Sub anyway to remove the select case block and achieve everything with one simple statement?
  12. just to see if there is a simpler way to do this: i want to have a form that compiles to the exe file. also, i want the same form to be referenced by other forms. what i did was compile the form into dll, and create another "launcher" to display the form
×
×
  • Create New...