Topics
-
- 1 reply
- 2.9k views
A am trying to make a simple database application just to learn SQLCE. I can not get the simplest things to work: adding and deleting records. Here´s how it looks now: Conn = New SqlCeConnection(CS) 'set the connection Conn.Open() 'and open it 'the database has 1 table called Invoices and 2 columns. First column called ID (identity with auto increment set to true) is the primary key. Second is a string (nvarchar) column called InvoiceNo. TA = New SqlCeDataAdapter("SELECT * FROM Invoices", Conn) 'set the data adapter CB = New SqlCeCommandBuilder(TA) Dim DSF as New Dataset 'a blank dataset TA.Fill(DSF, "Invoices") 'filling the dataset DSF.Tables("Invoices").Primar…
Last reply by bufer24, -
- 0 replies
- 2k views
I am creating a web app. i am using dotnetcharge control for payment processing. There are lots of payment processors supported, I need login credentials fields for each processor. Like for paypal transaction we need API Username, API Password & API Signature. I want help finding these required fields for other payment processors like amazon, google checkout etc. If anyone have done this pls share info. Thanks in advance.
Last reply by incomplete, -
-
- Leaders
- 3 replies
- 1.7k views
hi all. I've been trying to make a basic version of mine sweeper. when i ran the program it did not give me all the expected outputs. i have tracked back the error to this bit of code that i have eddited down to just the bits that dont run and the context in which the code makes sence... can anyone see the problem Dim Xlength As Integer = 5 - 1, _ YLength As Integer = 5 - 1, _ chosen(0 To Xlength, 0 To YLength) As Boolean, _ value(0 To Xlength, 0 To YLength) As Integer, _ NoOfMines As Integer Private Sub set_board() Handles Me.Load NoOfMines = (((Xlength + 1) * (YLength + 1)) ^ 0.5) - 1 For FirstD As Integer = 0 To Xle…
Last reply by snarfblam, -
-
-
- Administrators
- 3 replies
- 4.2k views
Hello all, I am new to xtremedotnettalk and this is my first thread. I am trying to create a function in vb.net that sends a website header through a socket to the server and returns the response. This is my code. Public Function GetSiteResponse(ByVal IPEndpoint As IPEndPoint, ByVal client As Socket, ByVal header As String) As Byte() client.Connect(IPEndpoint) If client.Connected Then Dim sendbuffer As Byte() = Text.Encoding.ASCII.GetBytes(header) client.Send(sendbuffer, sendbuffer.Length, SocketFlags.None) Dim recievebytes As Byte() = New Byte() {} Do Dim recievebuffer(350) As Byte …
Last reply by PlausiblyDamp, -
-
- 1 reply
- 1.8k views
Hello, I am using visual basic 2005. I found on the web the following function that extracts HTML from webpages. It is very useful but unfortunately it does not work with redirected pages. That is, when I put in it a URL of a redirect page it gives me nothing or error. I added to it ".AllowAutoRedirect = True" but still it did not work. I wonder how to make it work for redirected pages. I appreciate the help. Public Function GetPageHTML(ByVal URL As String, _ Optional ByVal TimeoutSeconds As Integer = 10) _ As String ' Retrieves the HTML from the specified URL, ' using a default timeout of 10 seconds Dim objRequest As Net.HttpWebRequ…
Last reply by haydenw, -
- 1 reply
- 1.7k views
Hello, I am not sure if this is allowed or not - if this post is against any Rules i apologize in advance and this post can be removed. I am in the process of creating a open-source project to track the Psychological Mood of a person, this application will be used by people visiting psychologists. Target Audience People that are currently in therapy or want to keep track of mood changes. The program is based on CBT. Aim To provide to the end-user the tools for him to be able to monitor his mood. To provide to the therapist additional information for the client through the automatic generation of graphs. I am looking for some volunteers to help me with C…
Last reply by consc198, -
-
- Administrators
- 1 reply
- 2.1k views
I have up to 20 computers that need to connect to a Vaisala weather device to gather a small amount of data in 10 minute intervals. The particular moment in time is random for each PC, but always on a 10 minute period as the pressure, temperature, and humidity do not change quickly enough to require more data. Anyway, I periodically get this error: 01:56:32 Vaisala System.IO.IOException: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine at System.Net.Sockets.Socket.Re…
Last reply by PlausiblyDamp, -
-
-
- Leaders
- Administrators
- 5 replies
- 1.8k views
Hey people i've been having problems with vb.net. i like to use 'controls' with looping as to get rid of the need to do basically the same command over and over again. but this comand doesn't work for all objects... and i would like some help so the code goes a little like this For Counter As Integer = 1 To 64 Step +1 Controls("Panel" & Counter).BackColor = Color.Black Next as you could guess this is for a game of chess
Last reply by snarfblam, -
-
-
- Leaders
- 2 replies
- 1.6k views
But from a class that is inside another class. [serializable] public class c_kaprical { //my objects [color="Red"] [serializable] //<- this does not help.[/color] public class c_solarSystem { //my objects public class c_kaprical.c_solarSystem Clone(c_kaprical.c_solarSystem newClone) { MemoryStream m = new MemoryStream(); BinaryFormatter b = new BinaryFormatter(); b.Serialize(m, newClone); m.Position = 0; return (c_kaprical.c_solarSystem)b.Deserialize(m); } } } This gives me an error saying that the class c_kaprical.c_solarSystem is not refered as Serializable. I'…
Last reply by EFileTahi-A, -
-
-
- Leaders
- 2 replies
- 2.1k views
I have 3 forms. My first form is a load screen and hides after progress bar loads so i cant manually close nor do i want any one to see it again. So i need a way for when form 2 closes my form 1 closes too not just hides i need the program to actually close
Last reply by LamKat, -
-
-
- Administrators
- 1 reply
- 2.5k views
Which is the latest asp .net version released ?
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 1.1k views
My program gets the html of a webpage, i need to select certain data (Which changes daily) and copy them so that i am able to create a graph. They are all integers.
Last reply by PlausiblyDamp, -
-
- 0 replies
- 2.1k views
I have a Sharepoint aspx page that I want to play a media file which is determined by the link that is clicked to navigate to the page. So, if the user clicks the first link, it navigates to video_sandbox.aspx?pathtovideo.wmv On the sharepoint page (video_sandbox.aspx) I use request.querystring to retrieve the path of the file and I want to then insert it as the src or url of the mediaplayer object. This doesn't seem to be working. I've tried writing it both via javascript and vbscript. I don't have access to the masterpage that the video page is based on so I can't put it in a script of that master. Any suggestions? I have posted the versions of my code below: …
Last reply by caeanis, -
-
- Administrators
- 1 reply
- 1.9k views
Hello everyone, I have three different tables. Customer, Product and Orderline. Now, I want to find how to retrieve the information from a product object in order to insert that data into the orderline. My product object has pName as a key, and imagePath and pPrice as attributes. But all I want - is to get the price, to be returned as a decimal value. This is what I've done so far and it's not working: Public Function priceLookUp(ByVal pName As String) Dim SQL As String = "select pPrice from product where pName = '" & pName & "'" Dim dtProducts As DataTable = myData.getData(SQL) Dim colProducts As Collection = New Collection D…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 1.8k views
Hi All, I am in a process of cleaning and optimizing the existing code. Currently what is happening, our product is used by 5-6 clients. It�s a small application which provide telephony functions to client. We have to add functionalities on the basis of client requirement. What we do normally enable/disable/hide the buttons/textboxes. Now I want to achieve the same in optimize way i.e there should be some mechanism thru which we can set and fetch values from config files and show functionalities accordingly. This is quite urgent.. thanks in advance.
Last reply by PlausiblyDamp, -
-
- 0 replies
- 2.1k views
Hello everyone, I've spent hours searching through the Internet never finding anything relevant to my problem. I've created a GridView, and populating it with the data from the SQL table. All working perfectly. What I do not understand is how to add a combobox next to each product. All I want in it is "1,2,3,4,5", nothing else, for quantity. I really do not want to make 5 fields in my table, just to store those numbers in. Because first of all, this will add too much redundancy in my data. Plus, what if I had 50 products?!?! Is there an easy way, just to make a combobox that next to each product with 1,2,3,4,5 in it. And then, from my code, refering to the selected numb…
Last reply by Widunder, -
- 0 replies
- 2.2k views
Hello! First of all, I never had written any DirectX program. I have the following problem: I have am amount of points in 3d with their color, which can differ from point to point. The points describe a surface of a unknown object. I know the neighbourhood, because I get a matrix of points, so I know to each point the 4 neigbour points. We can say, I have a surface given with quadrangles where I know the color at each edge. I wnat now to draw this in two ways: first of all on the display, second in a file, png most liklely. Can someone help me out an give me an example how to do it? I am a really greenhorn. I use C++, perheps C# or Delphi would be also helpful. …
Last reply by terminat, -
-
- Leaders
- 7 replies
- 3.4k views
Hi, I am creating a program that moves a picture of a ball 750 pixels across the screen in 750ms for the university project of a friend of mine. I can't post the code as it is far too long but it works as follows. When a key is clicked a stopwatch timer begins and for the next 750 ms a new thread runs checking whether the timer has reaching 750 and (if not) moving the .left value of the picturebox until it reaches 750. This all works fine, the box moves in 750ms and I'm happy with the resolution of the timer. The only problem, I have found, is that, when moving, the edge of the picturebox (and thus the ball) gets cut off to about a quarter of the way along its length…
Last reply by EFileTahi-A, -
-
-
- Leaders
- 2 replies
- 2.3k views
How can I transform this number (Stefan-Boltzmann constant): 5.6704 x 10-8. to a C# compatible number? :confused: Is it 5.6704E-8?
Last reply by EFileTahi-A, -
-
Note from moderator: Moved post to appropriate forum (this question is not programming related) Hi, anyone are using xbox live 48 hours codes ? I want ask if they works fine such as 1 month cards
Last reply by vain,
-
Who's Online 0 Members, 0 Anonymous, 46 Guests (See full list)
- There are no registered users currently online