- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 6
- Posts with Upvotes
- 5
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
81 Posted Topics
Re: i think you can use Image.FromStream() and then save it locally. | |
Re: what are ar1, ar2, etc? also,the convert to int32 is not doing anything. also, what type of graph are you trying to create? just a plot of the values?if that is what you are trying to do then in the for loop, make "i" the x values of the graph … | |
Re: you are getting a string as the result, so all you have to do is split the reaulst and them add it to the list. to split the result use the split(',') function; that will give you an array which then you can add to the list box, | |
Re: The error message most likely means that there is an error in one of the sql statements. which line do you get the error message? which SQL server are you using? | |
![]() | Re: Hi, It seems a good approach and pretty straight forward; this way you can create a loop that reads the tasks into your classes and at the end writes the tasks back into the XML file. You will have to write a class that reads the XML file and extract … |
Re: I cant remember exactly but i think ComoBox.SelectedItem or ComoBox.SelectedText will do the trick. | |
Re: look at this sample code; it shows how to serialize custome classes which you can use to serialize your data. [url]http://www.codeproject.com/KB/cs/objserial.aspx[/url] hope it helps | |
Re: can you post a piece of the csv file? aslo, when you say a two dimensional array, is it because there are 2 fields per row? Regards, | |
Re: i am not sure, but i don't think the binding source will do the update to the database, it will just bind the data to the controls. You will have to update the database using an adapter, etc after the changes to the dataset have been made. Regards | |
Re: Hi, the way i would do it is that i would use either a separate control for the name, qty, price and total price, and every time the button is clicked a new control would be added to the form; at the end you just count the number of controls … | |
Re: Hi, Is there a reason you have it on an array? If you add the data to a dataset --> datatable, and then set the datatable as the datagridview.datasource, then the datagridview control will handle the sorting and everything else for you. It would be useful if you specified the … | |
Re: i am not sure if this is what you are looking for, but i believe you are looking for settings files. Basically they are files to store settings that you will use across your application which can be modified and are saved after the application is closed. Also, look here: … | |
Re: you might want to take a look at this great library: DockPanel suite [URL="http://sourceforge.net/projects/dockpanelsuite/"]http://sourceforge.net/projects/dockpanelsuite/[/URL] It works very well and i think this is what you are looking for. It is basically a A Visual Studio like Interface which allows you to dock forms into the main form. check it out, … | |
Re: i think you are missing the name of the file: [CODE] Client.DownloadFile("http://wiibrew.org/w/images/c/cf/Lsusb.tar.bz2", "C:\\Users\\Skull\\Desktop\\Lsusb.tar.bz2"); [/CODE] Regards | |
Re: You were almost there, tou just needed a line of code (using the first way): [CODE] public partial class Ribbon1 { private void button1_Click_1(object sender, RibbonControlEventArgs e) { ThisAddIn test = new ThisAddIn(); test.Example(); } } public partial class ThisAddIn { public void Example() { //Do x,y,z etc } } … | |
Re: Hi There must be something wrong with the command that you are using to update the database. Why don't you try creating a commandbuilder, it will create the commands automaticallly for you. something like this: [CODE] If reponse_del = DialogResult.Yes Then OleDAPass.SelectCommand.Parameters ("UserName").Value = txtSearch.Text 'delete row DS_Pass1.Tables("PwordStore").Rows(0).Delete() Dim cmdbuilder … | |
Re: Hi The way i do it is adding a datagrid to the form, then connect to the database using a oleDBconnection connection and get the dataset. Then create a dataview and set its source as the table you want to display from the dataset. then set the dataview as the … | |
Re: Probably the easiest is to read the variables from the form 2 using an event. So, if you create an public event on form2, and then create the handler of that event for form1, every time you fire the event (in from2) the handler in form1 will have the information … | |
Re: what are you using to input the data? are you using a datagridview,etc? Also, i guess you are using a dataset to store the data. Whenever you add a row to a datatable the database does not update automatically, you have to update it yourself. The new row will not … | |
Re: what i have done in the past is that i use one dll, one for the demo version that is sent out on trial basis. Whenever they are ready to get the full version a patch is sent to the client with a new dll (same name and everything that … | |
Re: Hi, To use c# in an embedded system you will have to have load an operating system into the board - probably windows CE, Windows Mobile, etc. so it works with visual studio. I guess to get started the first thing that you need to do is to get a … | |
![]() | Re: HI, To set the cursor image this is what I usually do and it works everytime: [CODE] IntPtr ptr = IMP.Properties.Resources.zoom_in.GetHicon(); Cursor c = new Cursor(ptr); this.Cursor = c; [/CODE] where the zoom_in is a bmp that i have saved in the resources of the project. Regards ![]() |
Re: I think what is happening is that when you sort the grid only the rows that change index are being loaded; try to invalidate /reload the grid, i think that will do the trick. Hope it helps | |
Re: Hi, What you will probably need to do is to get a vector that will tell you the new x,y position. Since the needle is always going to be the same length (I guess) then the only thing that will change is the angle, something like this should do: [CODE] … | |
Re: it will work for a string, but not for an int. The easiest is to convert the int to string, like: [CODE] int i = 25. _label.Text = i.ToString(); [/CODE] hope it helps | |
Re: Hi check this website; there you will find the information, you just will need to modify it to vb. [URL="http://www.cpearson.com/excel/jdates.htm"]http://www.cpearson.com/excel/jdates.htm[/URL] | |
Re: Hi Try this: [CODE] Dim tabl As Table Set tabl = ActiveDocument.Tables(1) tabl.Cell(1, 1).formula("xxx") [/CODE] I am not sure about the sytax of the formula, but that will get you to the specified cell. Regards | |
Re: Hi what is going on is that the functions round the numbers to a certain number of digits. pi will be a floating point value, and floating point numbers have a finite number of digits. For instance: - Math.Sin(180360 * System.Math.PI / 180) = -0.00000000000057034748018186532 which is a very small … | |
Re: hi have you tried binding the textboxes to the dataset? Then all you have to do is update the database when the dataset where you are storing all your data has changed and you dont have to manually write the commands. just another idea Regards | |
Re: Hi I think the problem is that the syntax of your command is wrong. You have: [CODE] conn = New SqlCeConnection("Data Source =".\ MyDatabase.sdf;"") [/CODE] it should be: [CODE] conn = New SqlCeConnection("Data Source =.\ MyDatabase.sdf") [/CODE] I use this and it works. [CODE] dim data_base As String = "\Program … | |
Re: Hi What is "setd1" and "setd2"? i am not sure what is happening, but it looks to me that they are procedures that dont return anything, maybe? about the second one, [CODE] Dim dados As New dado dim dados2 as dado [/CODE] the first one you are creating a new … | |
Re: Hi Are you having problem when you write to the file or when you read the file? how did you define "strmw"? is it defined as a StreamWriter? I see that you are reding with the same variable (StreamWriter). Try to declare a varible type StreamReader to read from the … | |
Hi I am trying to count the rows that has been selected by the user - either with CTRL or SHIFT. The only property that i see is 'CurrentRowIndex' or 'Currentcell' but it only gives me the last selected row even though there are several rows selected. Other than that … | |
Re: Hi It looks like you have a set of " " between the columns, so what i would do is split each line one at a time, something like this: [CODE] 'after you read the line Dim myArray As Array myArray = Split(line, " ") [/CODE] that will create an … | |
Re: Hi I am not sure if i understand completely but here: if you are trying to find an specific record on a data table the easiest way (for me) is to filter the table or dataview with the specified criteria. If you want the datagrid to show the rows (records) … | |
Re: hi this is basically what you have to do: [CODE] Dim ds As New DataSet Dim da As New OracleDataAdapter Dim cmd As New OracleCommand Dim connection As OracleConnection = New OracleConnection Dim strConnString As String = "Data Source=yourDataSource; User ID=xxx; Password=yyy" connection.ConnectionString = strConnString connection.Open() Dim sqlCommand As String … | |
Re: Hi What is the type of column "VT"; if it is not of type "bit" probably the FALSE - TRUE statements won't work. Otherwise it should work. I make the same evaluation but i use a dataview instead and it works fine, but I don't see any reason it would … | |
Re: each item in a combo box has an index: index = 0 for first item index = 1 for second item index = 3 for third item ...etc Then you can compute "SCORE" by adding the indexes of the combo boxes selected. You can also increment SCORE whenever the combo … | |
Re: Do you want to delete the image or the piece of code that displays the image? If you are saving the information on the PC, are you saving the image in the PC? Do you know the name and location of it? If this is the case then just delete … | |
Re: Hi, I noticed you are using the oledb classes, so why don't you use a oleDbCommandBuilder to update your database? The command builder will create the Insert, update, delete commands automatically for you. [CODE] Dim cmdbuilder As OleDBCommandBuilder = New OleDBCommandBuilder(oleadpt) [/CODE] For this I think you need to make … | |
Re: to set up the start form go to the project properties and in the application tab, startup object select the form you want to open first. | |
Re: Hi You have to create a setup and deployment project. microsoft website has a walkthrough at this location: [URL="http://msdn2.microsoft.com/en-us/library/k3bb4tfd(VS.80).aspx"]http://msdn2.microsoft.com/en-us/library/k3bb4tfd(VS.80).aspx[/URL] | |
Re: Hi What is the frame you are using? i am using a GroupBox1 and GroupBox2 and it works fine. I also tried it with panel 1 and panel2 and works fine. Also, what do you have in the frames? Do you have any other routines that might be affecting the … ![]() | |
Re: Hi Do you want to display a message box? If that is the case, then you have to evaluate the number of records in the database, if zero, then display a message. If you don't want to dislpay anything on the datagrid, not event the names of the fields on … | |
Re: Hi Probably the easiest is to use a datagrid; then you will have to compare the number of sales of the week and change the row accordingly. Who is going to be inputting the data of the number of sales per peron? probably tat wil be the tricky part. Hope … | |
Re: Hi You probably will have to find the number of tables in the dataset, and then go into a loop to retrieve the data. If the tables always start with the "od_minicard2_xxxx" then it is probably a good idea to check the name of the table to make sure you … | |
Re: hi Provided you know the location of the file, use this: [CODE] button1.Image = Image.FromFile("myIcon.ico") [/CODE] Hope it helps | |
Re: try this Set database = workspace.CreateDatabase (name, locale, options) look in the help section. make a search for "CreateDatabase". you will find all the information there. | |
Re: Hi Basha To change the data in the database itself you have to first see if the dataset has changes and then update the database. The changes you make to the datagrid will be reflected in the dataset, but if you close the form without updating the dataset you will … | |
Re: HI Probably what you will have to do is to create connection (like an ADO connection) to the databases then copy the contents of database #1 and paste them into athe databse #2. You can copy the contents from database #1 into a dataset and then copy the dataset into … |
The End.