Thanks for the help...
Preeti1979
Posts
-
Data entry in sequential file in vb6 -
Data entry in sequential file in vb6I have a FlexGrid control in which i make data entry and when i click on save command button it saves that data to a sequential file. Now my problem is that in another form, I want the user to edit any cell in the FlexGrid and that entry must replace the corresponding entry in the sequential file. But it is appending in the file, inspite of replacing the value that is edited.
-
Data entry in VB6Flexgrid1 developed by Mostafa KaisounThanks i will try...
-
Data entry in VB6Flexgrid1 developed by Mostafa KaisounHi, i have used VB6Flexgrid1 (activex control) developed by Mostafa Kaisoun in my project to enter data. Now my problem is, i want to restrict number of columns and rows (like rows=3 and columns=2) but when i enter the last record in cell(3,3), it adds new row to the grid which i donot want. so plz tell me how to restrict it to the desired rows and columns only.
-
google maps in vb6 applicationHow to use map of a particular state that is downloaded from the google maps in our vb6 application and on that pc there is no internet connection.Have anyone done this before.Please help.
-
how to create dynamic reportsi want to create report using datareport in vb6 which is the result of a query. i have a text box in one of my form and in this a have made a command button "generate report". when the user enter a value in this text box say it is name of a student, the rows which match to this value will be displayed in the report when the user click the command button.please help me urgently....
-
how to find a lat/log at a given distance from a given lat/logI have a problem . I have to draw a circle at a particular distance say 50 meters from a given lat/log.I refered to Aviation formula's and find a formula to calculate lat/log at a distance and at a bearing which is as follows:- A point {lat,lon} is a distance d out on the tc radial from point 1 if: lat=asin(sin(lat1)*cos(d)+cos(lat1)*sin(d)*cos (tc)) IF (cos(lat)=0) lon=lon1 // endpoint a pole ELSE lon=mod(lon1-asin(sin(tc)*sin(d)/cos (lat))+pi,2*pi)-pi ENDIF This algorithm is limited to distances such that dlon <pi/2, i.e those that extend around less than one quarter of the circumference of the earth in longitude. A completely general, but more complicated algorithm is necessary if greater distances are allowed: lat =asin(sin(lat1)*cos(d)+cos(lat1)*sin(d)*cos(tc)) dlon=atan2(sin(tc)*sin(d)*cos(lat1),cos(d)-sin (lat1)*sin(lat)) lon=mod( lon1-dlon +pi,2*pi )-pi for this i have written this coding:- Private Sub cmdNextPoint_Click() Dim lat2 As Double, lon2 As Double, theta As Double, d As Double,Aasin As Double,Aatan2 As Double Pi = 3.14159265358979 d = 50 theta = 90 * 0.0174532925 txtLatitude.Text = 22.51791 txtLongitude.Text = 87.46598 Aasin = Sin(Val(txtLatitude.Text)) * Cos(d) + Cos(Val(txtLatitude.Text)) * Sin(d) * Cos(theta) lat2 = atan2(Aasin, Sqr(1 - Aasin * Aasin)) Aatan2 = Sin(theta) * Sin(d) * Cos(Val(txtLatitude.Text)) Batan2 = Cos(d) - Sin(Val(txtLatitude.Text)) * Sin(lat2) lon2 = ((Val(txtLongitude.Text) - atan2(Aatan2, Batan2) + Pi) Mod (2 * Pi)) - Pi txtLatitude2.Text = lat2 txtLongitude2.Text = lon2 End Sub Public Function atan2(ByVal y As Double, ByVal x As Double) As Double If y > 0 Then If x >= y Then atan2 = Atn(y / x) ElseIf x <= -y Then atan2 = Atn(y / x) + Pi Else atan2 = Pi / 2 - Atn(x / y) End If Else If x >= -y Then atan2 = Atn(y / x) ElseIf x <= y Then atan2 = Atn(y / x) - Pi Else atan2 = -Atn(x / y) - Pi / 2 End If End If End Function in this i m finding a point which is at a distance of 50 meters from the latitude 22.51791 and longitude 87.46598 and at a bearing of 90 degrees.Somebody told me that to draw a circle i have to find out 360 points then by using the DrawPolygon method the circle can be drawn.So firstly i m finding one point.It is not giving me the desired result that should be latitude = 22.51841 and longitude = 87.46598.Can anybody help me .Just tell me where i m wrong.I m using the mapwingis activex control to displ
-
how to plot a point on a shape filehello everybody..........I want to make a project in VB6.As input i will get a shape file (for eg. map of delhi etc.),longitude, latitude of any place on that map.I have to plot a point on that particular lon/lat.Can anybody help me in this regard........this is a totally new project to me so i need help in detail.....please help me .........
-
soundx codinghi to all....... i have made a text box on my web page.....i want that when a user enters the name of the place in that box then the words that sounds same should be displayed at that time........like if i want to enter haridwar then as it is same as hardwar then both these should be displayed...same as it happens in google searching.........how can i do it?????
-
problem with OutOfMemoryExceptioni have sufficient RAM (2 GB) to store these files.but my problem is that whem i m checking the size of the file i m uploading i have taken the datatype as byte which is not sufficient for the files of size more than 500 MB..what data type can i use to store the size (in bytes) of more than 500 MB....
-
problem with OutOfMemoryExceptionhi every body...........i have a problem.i have a web page in which i m uploading an video file by using fileupload control.......before uploading that video file i m checking the size of that video file by the variable FileBytes.then i m checking it with the drive free space .......but this exception named System.OutOfMemoryException occured when i upload the video file of more than 500 MB...the coding i m using is .......... byte[] FileBytes = FileUpload.FileBytes; // the problem is coming in this line as byte is small datatype for the video file of more than 500 MB long freespace =drInfo.AvailableFeeSpace; i want to upload video files of more than 500 MB ...it may be in GB's also preeti1979
-
problem with the text boxThere is a big problem for me as I have to handle a project made by an other person and I m not aware of this code.I have two tables in SQL Server 2005 named AudioFileDetails having fields---- FileId int 4, FileName varchar 1000, Subject varchar 500, DistrictId smallint 2 and other table is DistrictDetails with the fields ------- DistrictId smallint 2, DistrictName varchar 100.I have a query form (ASP.NET) that have two fields named Subject and DistrictName, both dropdownlist box with the entries from the database .In this web form there is a button named Go to execute the query.The button is working ie records are displayed according to the value selected from the dropdownlist either from District or from the Subject or from the both.The result is shown in the grid which is given below the GO button.This grid have two fields named Subject and DistrictName and a button named Play ,on which the user can click and play the file that is displayed from the query.When the user click on the play button an another form is displayed that contains a windowsVedioMedia to play that audio file (as the files are audio files), two text boxes that displays two fields subject , DistrictName and a button Save to save the entries if user have edited.These fields contains the value of the subject and DistrictName of the file being played.But my problem is that as subject is directly taken from the AudioFileDetails table that is from the database but the DistrictName value is not coming in the District text box.The district field contains no value in the form ,but there is the entry in the database of that field. fields.Please tell me how can I get the value of District field in that table as in the database there is a field named DistrictId not DistrictName and also a coding to save the edited value also.Please give me in detail as I m not so aware of this language……..i m giving u the entire code used.......some error is there so please let me know..... _______________________________________________________ AudioSearch.aspx.cs Using System; Using System.Data; Using System.configuration; Using System.web; Using System.web.Security; Using System.web.UI; Using System.web.UI.Webcontrols; Using System.web.UI.Webcontrols.webparts; Using System.web.UI.HtmlControls; Using System.Data.Sqlclient; public partial class AudioSearch: System.web.UI .Page { protected void page_load(object sender,EventArgs e) { if(!page.IsPostBack) { try { DataSet ds1=New DataSet(); DataSet ds2=New DataSet(); AudioSear
-
One Problemhi.... i have made two fields in SQL server 2005 named DistrictId smallint and DistrictName varchar(100).In a web application (language C#) i have made a form in which i have made a text box in which user will enter the name of the district which he want to modify.i want a code for the purpose that user will enter the name of district and when he click on the button named MODIFY the district name will be modified.Please help me as soon as possible...........
-
One problemi m using SQL server 2005.in this i have a field "Place". i have made a form in which i have used drop down list in which these Place field is shown.in C# i want a code so that if user select the particular place from that drop down list, that should be entered in the database of SQL server 2005.i have made a add button on the form for the user to add the selected place in the database.the required coding i have to write in this add button.
-
One problemi m using SQL server 2005.in this i have a field "Place". i have made a form in which i have used drop down list in which these Place field is shown.in C# i want a code so that if user select the particular place from that drop down list, that should be entered in the database of SQL server 2005.i have made a add button on the form for the user to add the selected place in the database.the required coding i have to write in this add button.Please reply me urgently........