Topics
-
- 0 replies
- 1.6k views
Hi all, I am working on a form, which has to resize itself according to the screen resolution. While doing so, the controls alignment with adjacent controls are missing.Suggest me, how to achieve it?
Last reply by Andy1309, -
- 0 replies
- 9.3k views
I have a service that uses the tcpClient to send and receive data. I can unplug the network cable and the service does not know the connection has been broken. This is the code that is used to test the connection. The call to send does not throw an error. How can I get my service to know the connection has broken? Any help is greatly appreciated. Private Function IsConnected() As Boolean SyncLock (_sendSyncObject) If Not _tcpClient Is Nothing Then Try If IsConnectionInCloseWait() Then Return False Dim data(0) as byte _tcpClient.Client.Blocking = False _tcpClient.Client…
Last reply by groads2, -
-
- Leaders
- 4 replies
- 13.8k views
I know that surface tablets will have two flavors: ARM and Intel. But will both be able to run Visual Studio? I know Intel based tabs will but what about ARM tabs?
Last reply by EFileTahi-A, -
-
- 0 replies
- 1.5k views
I am trying to update my faq page and right now every faq lists in order of category. However,I want to see each category listed and then each corresponding faq underneath for each category. How do I do this? <? $result = sqlite_query($db, "SELECT * FROM faqs ORDER BY faqcategory DESC"); while($row = sqlite_fetch_array($result)) {?> <ul> <li><?php echo $row['faqquestion'];?></li> </ul> <p><?php echo $row['faqanswer']; ?></p> Please help me- I am a total newbie!
Last reply by missmandino, -
- 0 replies
- 1.9k views
Hi, I'd like to send SMS messages from a database to my customers. I found this tip at http://www.ozekisms.com/index.php?owpn=400 and I'd like to know if it's relevant to my project. One of the options you can choose to add SMS functionality to your ASP project is to use an SQL SMS gateway architecture. In this architecture, the ASP enabled website uses a database server (Microsoft SQL Server, Oracle or MySQL) for data storage. To add SMS functionality in this case all you have to do is create two database tables, one for sending SMS messages and one for receiving SMS, in the database server and use these tables in an SQL SMS Gateway configuration. In this case the S…
Last reply by maxh69, -
- 0 replies
- 2.5k views
IIS hosted WCF service does not work Hi all: I am trying to learn WCF. I have tried serveral examples from the Web which do not work as they were instructed for me. I must be doing something wrong but am not sure what. I have windows 7 home, VS2012. I created a solution call Greetings. In the service I added a class Library where I put the Interface and Service class. To that solution I added a website using the wcf service template type. I added the reference to th greeting class library that has my interface and service class. This is supposed to be hosted by IIS. I wrote a client app to access the service but the error tells me there no service at the endpo…
Last reply by groads2, -
- 0 replies
- 4.2k views
Hello I've got a VB.Net app (Studio 2008) to which I've just added a reference to the Shockwave Flash ActiveX, so that I can show a Flash movie on a form. On PC's which don't have the Flash ActiveX installed, this means my compiled app now crashes out before it can run, presumably as the reference is not found. What I need to do is somehow detect, when my app is initialising, whether the Flash ActiveX is present, to set that fact to a boolean variable, and for the program to continue running either way. (So if it's running on a PC without Flash, the Flash object is simply not displayed but otherwise the program runs as normal.) It's important that Ican't insta…
Last reply by stuartbruce, -
- 26 replies
- 47.7k views
It's pretty urgent, I have to hand in a project in 1 hour. I have this dataset with data in it, and I want to export it to an .mdf file Please help ! :(( my neck is going to be cut off if you don't help me :(
Last reply by Sombra Dolorosa, -
-
- Administrators
- Leaders
- 3 replies
- 5k views
Hello everyone. Here's a scenario involving events that I've already tested but am curious about the details. In a Windows Forms application, the main form (of type, Class1) instantiates a new object of type, Class2. This new object instantiates an object of type, Class3. Class1 | Class2 | Class3 An event is fired in the Class1 object. I placed event handlers in the Class2 and Class3 objects to deal with this event, but when the event fires, only the event handler in the Class2 object is executed. Is it true that only objects that were instantiated by an object of a particular class are able to subscribe to that class' events? If so, what is th…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 4.2k views
I am trying to get an iframe to open in a new window when I click on the item in the datatable. All I can get it to do right now is open on the same page. Code is below. Private Sub gvJobs_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles gvJobs.SelectedIndexChanged Dim mySelection As String = gvJobs.DataKeys(gvJobs.SelectedIndex).Value.ToString Dim mySite = New SPSite(sSite) Dim myWeb As SPWeb = mySite.OpenWeb() Dim myList As SPList Dim dtTable As DataTable Dim myView As DataView Dim myPath As String myList = myWeb.Lists("Jobs") dtTable = myList.Items.GetDataTable …
Last reply by jhunsi, -
- 1 reply
- 7.1k views
I am learning web services and want to get this client working. I get the error "Cannot send a content-body with this verb-type" You can see I have set the method to "POST". The error comes when I try to execute the line with ws.getRequestStream. Any Ideas? Thanks. Public Class Form1 Dim myUrl As String = "http://www.webserviceX.net" Dim ws As System.Net.HttpWebRequest = System.Net.WebRequest.Create(myUrl) Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Try ws.Host = "www.webserviceX.net" ws.Method = "POST" ws.Timeout = 60000 ws.Accept …
Last reply by groads2, -
-
- Administrators
- 1 reply
- 4k views
Hello everyone, I'm not a software engineer, so I'm certain this is probably something that you guys see all the time, but it's a first for me. I'm reverse engineering a sample C# console application, and I ran across a scenario I don't quite understand -- a class instantiating itself within itself. Here's a simplified example of what I mean: class Program { static void Subroutine1() { DoSomething } static void Main(string[] args) { Subroutine1(); [b]Program program = new Program();[/b] ... ... ... program.Subroutine2(); } void Subr…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 4.1k views
I am trying to learn how to write a web client. I wrote a WCF web client to the same site in the code below and that worked. I would also like to write one similar to the code below. Any ideas on what I am doing wrong would be great. I am getting the error: InnerException = {"Content-Length or Chunked Encoding cannot be set for an operation that does not write data."} Public Class Form1 Dim manualWebClient As New System.Net.WebClient() Private Sub Jack() Handles Button1.Click manualWebClient.Headers.Add("Content-Type", "text/xml; charset=utf-8") manualWebClient.BaseAddress = "http://ws.cdyne.com" Dim reqstr As String = "<s11:Envelope xmlns…
Last reply by groads2, -
-
- *Experts*
- 11 replies
- 7.8k views
Hello All, Is it possible to take an image, from a picture box in vb.net and store the image in an access field? I'd also like the ability to view the image, frrom a form/report within access. I found an example that uses SQL in the "101 visual basic .net applications" book, but i'm not sure if it's possible with access. I've already made the connection to the table. The table contains an OLE field, is this the proper field type to use? i've tried the following... ds_Repair.Tables("qryMarkup").Rows(int_ThisRec).Item(2) = pb_View.Image adap_Repair.Update(ds_Repair, "qryMarkup") ds_Repair is the dataset qryMarkup is the query inside access .Row(int_Thi…
Last reply by shanpuranik, -
-
-
- Administrators
- 3 replies
- 1.7k views
I don't know why I cannot remember how to do this, then again it has been awhile. I am building a XML file I got that down. Now time to added/remove/delete node. Main file looks like this. <?xml version="1.0" encoding="utf-8" standalone="yes"?> <ActiveTickets></ActiveTickets> When a node is added it should look like this. <?xml version="1.0" encoding="utf-8" standalone="yes"?> <ActiveTickets> <ticket> <ticketindex>2345</ticketindex> <ticketstatus>1</ticketstatus> <timestamp>12344567892</timestamp> </ticket> </ActiveTickets> I can get following but I ca…
Last reply by ZeroEffect, -
-
- 0 replies
- 17.4k views
can anyone tell me why this code results in a style that only has the left edge set to xlhairline & the others are set to nothing? & when I edit the style in XL, it says that the border is set to left. GrayStyle = wbWorkbook.Styles.Add("gray") GrayStyle.Interior.Pattern = Excel.XlPattern.xlPatternSolid GrayStyle.Interior.PatternColorIndex = Excel.XlColorIndex.xlColorIndexAutomatic GrayStyle.Interior.ThemeColor = Excel.XlThemeColor.xlThemeColorDark2 GrayStyle.Interior.TintAndShade = -0.0999786370433668 GrayStyle.Interior.PatternTintAndShade = 0 GrayStyle.Borders(Excel.XlBordersIndex.xlInsideVertical).LineStyle =…
Last reply by kcimos, -
- 4 replies
- 9.7k views
I am involved in writing a Point of Sale application, in C# on XP, and need to print to a POS printer. The printer is a Star Micronics TSP643 with USB interface; I have installed Microsoft.PointOfService and the relevant printer driver from Star's download page. My question is - more or less - Where do I start? My assumption was that my app would use MS PointOfService, which in turn would connect to the printer driver. The MS PointOfService SDK includes a sample program which demostrates connecting to printers, scanners, card readers, etc. When I run it, my printer shows up in the PosPrinter tree; however, if I select it then click the 'Open' button I get the fol…
Last reply by drazen0001, -
- 0 replies
- 3.1k views
I am trying to build a Web Application using Visual Studio 2005 and C# 2005. I need to accept a date in a particular textbox. I tried to use AJAX Calendar Extender for the purpose. I have added AJAX Script Manager and CalendarExtender controls to the webpage and set the TargetControlId of CalendarExtender to the proper textbox id. But when I display the webpage (using Debug -> Start Without Debugging) and click inside the textbox nothing happens. I even tried to add an image control to the form and set the PopupButtonId of the CalendarExtender to the image, but even then I am unable to display the calendar control. What am I doing wrong??
Last reply by Eager_Beever, -
- 0 replies
- 4.1k views
This is my specification for my Random Number Generator. Random Number Generator The random number generator i want to create is called a Lagged Fibonacci Generator. It is initialized as follows. 1. Start with an array of 256 unsigned int�s (i.e lfg[]). 2. Starting at index location 0, fill the array with the numbers 0, 1, 8, 27, 64, 125, etc. That is, with the cube of the index location. 3. Assign to index location 0 the encryption key value supplied in the command line. 4. Have two fields called start and trail. start is set to 13 and trail is set to 0. The difference between the two values (that is 13) is called the lag, There is one more step to be completed…
Last reply by ashishnehete, -
- 4 replies
- 2.4k views
Hi all: I have been given a set of schemas and wsdl. I have to write an application that will submit a request to a service and get a response. I don't even know where to begin. Can someone tell me What type of service I am writing and some of the things I may need to do to make use of the schemas and wsdl to make a valid request? I hope this is even enough info for someone to give me some direction of what I can do to start. Please excuse my ignorance. Thanks.
Last reply by groads2,
-
Who's Online 0 Members, 0 Anonymous, 30 Guests (See full list)
- There are no registered users currently online