I've got a micro controller with 4 channel ADC that I want to make a program for. It will be for data logging. I want to take each channel and display it in 4 textboxes to begin with.Later I like to do some conversions of the data to show temperature , use a lookup table and a few other things in each of these boxes, but at first I'd just like to concentrate on getting the data split into each box.The chip output is 8 bytes . The first two are the channel select and the next two is the data. Output of the chip is in ASCII. I don't want to send to the chip, just receive.If I view the output in decimal I get 1xx 2xx 3xx 4xx (xx being the data to display).
How can I go about outputting specific data from a database query into textboxes. I'm currently using a datatable to store the query result, should I try something else?
I am architecting a program that I need some help on. I need to have a "watcher" program that will sit on a server and monitor a SQL Server. At configured intervals, the watcher will run a query on the server and create a dataset of information I want to share to any clients that are listening. I am looking at WCF Peer channel but all I can see is peer to peer chat and most of the examples I have seen are partial examples. I have looked at the example program from Microsoft but I am still a bit confused. The listener programs will receive the dataset of values from the watcher and filter the data at the local level and display the data they need and display it to the end user. I don't know if a TCP client/server would be a better solution, but the dataset may contain up to 10,000 rows of data. From what I read the WCF Peer channel will transmit at 50 mbps and should handle this load. My other option is a server/client architecture using TCP spawning a new thread for each request. Does anyone have any good examples, or articles about WCF and VB that they can point me to?
Client(winforms MDI) is generated using svcutil using /l, /r, /ct, & /n switches
Service and client both use a MyEntities.dll
I am using nettcp with TransportWithMessageCredential. I cache the proxy in the main form
if Membership.ValidateUser(UsernameTextBox.Text, PasswordTextBox.Text) _proxy = new MyServiceClient _proxy.ClientCredentials.UserName.UserName = "username"[code].....
Could I subscribe to the _proxy.InnerChannel.Faulted and do that clean up there?
Our core server is calling out to a soap web service over https on a number of different servers to confirm that a transaction has completed.The code is dotnet 3.5 (vb) and works for the various callback services we have set up until we just moved a new one into production and it is refusing to communicate, giving the following error:Unhandled Exception: System.ServiceModel.Security.SecurityNegotiationException:Could not establish secure channel for SSL/TLS with authority -> System.Net.WebException: The request washe case here.
I am new to ssl. I am trying to Post some data to OWA using httpwebrequest class using following code. Dim post As Stream post = web1.GetRequestStream post.Write(data, 0, data.Length) post.Close() But when I try to get request stream to submit data using above code.(JUST PART OF CODE).i get following error. The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
i am trying to Post some data to OWA using httpwebrequest class.
Dim post As Stream post = web1.GetRequestStream post.Write(data, 0, data.Length) post.Close()
but when i try to get request stream to submit data using above code.(JUST PART OF CODE).i get following error.The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
url...But what I'm looking for is just see if any alpha (0-254) is used in at least one of the pixels. Would the Bitmap.Lockbits and BitmapData method be the most efficient (speedy?) or is there another way. I've tried toying around with ColorPalette and the Alpha flag, but never could figure it out (and even if it is a way to check to see if the alpha channel is used at all).
I am developing a COM Add-in using VB.NET in Visual Studio 2008 Pro for Outlook 2003 and am having trouble assigning images to custom toolbar buttons. In a nutshell, I am having to convert from an Icon type to a stdole.IPictureDisp type so that I can assign my buttons a picture. The picture displays, but it loses the Alpha channel and the background is no longer transparent. I can verify that before the conversion to IPictureDisp object, that the PixelFormat property is set to Format32bppArgb (2498570). I am using a coding technique suggested here:[URL]. For C# users, this link [URL] shows how to modify the IPictureDisp one pixel at a time and rebuild the transparency, but I can't find similar functions in VB.NET...
i have created a control as above, this control allows me to import a png with alpha channel and random shape. and then it can display on top of any other control, i.e. textbox, picturebox,etc. and the background should always show what right under it, instead of just show its parent control. it worked if it's static mode, ie stand still in the form. but when i tried to drag/move it, the control wouldn't render itself properly,and also goes underneath other controls.
I would like to create a visualizer for the windows system audio. I'm looking for a way to sample the loudness of the sound currently being played. I don't need the actual sound unless required for computing the sound levels. My goal is to create something similar to the bouncing green level found on windows 7's volume control.
I have an I/O device with 8 channels. I want to create a timer control for each channel with combo boxes for days, hours, minutes and radiobuttons for AM or PM. This is a crude (and not working) example of what I need:[code]
What I am trying to do: There are three powershell scripts with different time delays as shown below.I am trying to run them asynchronously in .NET and I followed this article to implement Asyncrhonous programming. Where I am stuck:The I am not able to retrieve output after the events are invoked.The scripts are being called but then the program ends and it shows "Press any key to continue" in console windows.I don't what I am missing here.
Info: JobRequest is a class that I use to pass around information keep track of jobs.
On my form, i've got some textboxes and some richtextboxes. I'm using the following code, to search through the text properties of each of the two types of control. see below:-
For Each ctl As Control In Me.Controls If ctl.Text = "7777" Then ctl.Text = "found the sevens" End If Next
What i'd like to do is isolate the textboxes only, is there a way to do that? I tried this but i got an error:-
For Each box As TextBox In Me.Controls If box.Text = "7777" Then box.Text = "Found" End If Next
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Microsoft.VisualBasic.Interaction.Beep() System.Diagnostics.Debug.WriteLine(3 + 2) End Sub
Why I don't see in Output window number 5 as output?
My goal is to, Pull information from a websight's textboxes in IE into my program textboxes. and to later Put changes from into other values on the websight from my program into it. The sight has multiple textboxes, on different frames. within it.I need to keep it as a exsiting open browser instead of making a new one. only gotten as far as finding the open internet explorer window, by useing
I'm just going to throw all my code in here in case there's something wrong with a piece of the code not in the "SelectName()" sub.
Module Module1 Dim selectednames As String = "" Dim index As Short = 0 Dim inarray As Boolean = False
[code]....
Here's an image of what it does (I suppose you can see what went wrong)13 inputs, 3 outputs expected, only 1 output given.As from what I've figured out so far, it's doing the correct amount of loops etc. It's just as soon as it starts generating the "winner" for the 2nd game key it doesn't get a string value from namesarray.Also, why is
For x = 0 To totalnames - 1 Debug.Print("namesarray(" & x & ") = " & namesarray(x)) Next
im using Trace to trace and debug my Application which works fine. Now i wanted to output my Trace Information to a text file like below:
Dim c As Integer = Console.ForegroundColor Dim ts As TraceSwitch = New TraceSwitch("SPMassUploader-TraceSwitch", "") Dim tw As New TextWriterTraceListener(Now.ToString("yyyyMMddHHmmssfffffff") & "-" & "output.txt") Trace.Listeners.Add(tw)
I am working on this project in .net. When you go over to the browser you will see five different restaurants and the button below says to change color and if you click on that you are able to change it. What I am trying to do is beside the name of the restaurant have the address, phone number but I really don't know how to code it in. I'm sure I do but my mind is not remembering how to do it. Below are my codes..
Here is my class code:
Public Class Restaurant Private _Id As Integer Public Property Id() As Integer
[Code]....
how to write the phone number and address beside the restaurant so that way they all show up.
I have this visual basic that calls a stored procedure. When I run it through visual studio on my local machine, it works fine. However when I move it to a server, it doesn't output any data from the sql. The page still loads, it just doesn't show any data in the labels. Any ideas why? [Code]