Topics
-
-
- Administrators
- 22 replies
- 2.2k views
What are the .NET replacements for these VB6 Legacy functions... Chr Asc IsNumeric IsDate InStr Is there a reference list somewhere that I can look at for these and others? By the way, I noticed some of my Window forms generated code uses the Microsoft.VisualBasic. What's up with that?
Last reply by JDYoder, -
-
- 2 replies
- 796 views
I have a form with a datagrid and when the user clicks on a row to edit it, a calendar control is visible to enable the user to enter a complete date. So far, entering the complete date works great but if a complete date is not chosed (it is not required), how do I handle that?
Last reply by lorena, -
-
- Administrators
- 5 replies
- 962 views
Dim MyCommand As New OleDbCommand(("exec Write_Logins '" & Date.Now.Date & "','" & Date.Now.ToLongTimeString & "','" & UsernameTry & "','" & PasswordTry & "', '" & TheirIP & "','" & Payload & "'"), MyConnection) I get this error: Failed to log attempt to db:Could not find stored procedure 'Write_Logins'., Database Closed I know Write_Login is there.. becuase i can run this query from Query Analyzer: exec Write_Logins '1','1','1','1','1','1' and that works.. the Myconnection string worked when I didn't use stored procedures. any ideas?
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 2 replies
- 1.5k views
I have a ListView displaying thumbnails created from the original images using the System.Drawing.Image.GetThumbnailImage method. System.Drawing.Bitmap thumbnail = getThumbnail(original, imgList.ImageSize.Width, imgList.ImageSize.Height); I implemented some private methods that preserve the image proportions in the thumbnail, just like the Windows Thubmnail view. However, unlike the Windows Thumbnails, my thumbnails are top-justified, rather than centered. Here is a cropped screenshot comparing the Windows Thumbnails (top) to my thumbnails (bottom): http://home.san.rr.com/vagabondia/images/tmp/sample_v2.gif In fact, it appears as if my 96h x 96w Bitmap is not …
Last reply by VagabondSW, -
-
-
- Leaders
- 6 replies
- 1.5k views
Hi, i was following the infomation on http://www.xtremevbtalk.com/showthread.php?t=148864 and i have got my application to open create and read from the file but cant make my application write to a text file and i keep getting this error and i cant work out whats causing this to happen my full code is below Thanks Unsafe Ranger
Last reply by Unsaferanger, -
-
- 5 replies
- 933 views
I'm looking at setting up an image gallery. I need to store the file names in a database because I will have an editable "Notes" field for each image. I've searched Google for setting up an image gallery this way but all I've found is displaying each image in a given directory or subdirectory. It doesn't seem like it should be too difficult to do but I'm not sure how to display the images with ASP.NET. Any hints to get me started? Thanks
Last reply by rangerstud620, -
- 4 replies
- 1.1k views
Hi, I have c++ code which I wrapped (so it's being used as a dll), and I call the functions in vb.net. The C++ code calls functions (which work, coz I tested it in other programs) from a PCI card hooked up to the CPU. In C++ the function which I call is: extern "C" __declspec( dllexport ) int _stdcall GPS637Time(float *time, float *week) { UCHAR getpacket[80], sendpacket[80]; // Receive buffer GpsPkt receive; GpsPkt send; int n; int s; send.len = 1; send.id = 0x37; send.data =sendpacket ; receive.len = 20; receive.id = 0x41; receive.data = getpacket; s = bcGPSMan (&send, &receive); for (n=0;n!=100;n++){ if (s!=…
Last reply by nima1985, -
- 2 replies
- 653 views
Hey guys I have set up an intranet site with a Poll on it. Everything works fine and it records the votes in a database and that all works fine as well. The problem is I want to restrict people to only voting once. Log-in isn't an option, but I am using cookies to identify those that have voted when they open the page afresh. However the loophole is that if you vote and then press back on the browser, you can then vote again. I really don't know how to stop this happening? Is it possible to capture the "back" event? How else could this be managed? Any ideas would be muchly appreciated :) Cheers Ian EDIT: I'm using ASP.net with vb.net code behind.
Last reply by Diesel, -
-
- *Experts*
- 2 replies
- 834 views
For some odd reason my App.ico and AssemblyInfo.cs are gone. Don't ask i don't know what happend. The question now is : Is there a way of recreating these files? without having to create a new project? Thanks Feurich :confused:
Last reply by Diesel, -
-
- 1 reply
- 1.4k views
Hello everyone, this is my first post so if something is wrong with it be gentle! I'm really new to the vb programming thing. I am trying to build a program to control my home av system. The GUI is the easy part. I purchased a IR xmt/rcv 'er by smarthome I have been reading everything out there on rs232 and mscomm (not used with .net ) and can't get this thing to work below is what I have to work with from smarthome can someone help me translate it into something I can apply to my program. This is what they sent me. >>>>>>>>>>>>>>>>>>>>> This instruction set is for users with a Smarthome PC t…
Last reply by parkercat, -
- 1 reply
- 793 views
I want to contain an application i am launching to a window on my form so I can send keystrokes to it. I found wscript.shell command which does indeed launch my application but It just appears freely on screen. I cannot therefore ensure the keystrokes it sends will end up in the application. Can someone tell me how I open it up contained somehow within a windows form? Many thanks andy
Last reply by Machaira, -
- 2 replies
- 13.5k views
I need to remove the password character that is set, but through code. The ideia is to create a button to show/hide the password on some textbox by removing/setting up the password char. Setting the object.Passwordchar to null does not work. I think I need to remove the object's passwordchar handler instead. If I am right, how can I do this?
Last reply by EFileTahi-A, -
- 0 replies
- 741 views
Hi, I have a win application which queries the indexing server (shared folders accross local network). It is installed on the server where indexing service is started. When I start the application from the server everything is fine, but when I start it from any other computer in our network the application tries to query the indexing server on local computer and it crashes (since there is no indexing server on local computers). Why? I suspect that something is wrong with connection string? ConnectionString = "Provider=""MSIDXS"";Data Source=testcatalog;Integrated Security .="
Last reply by ivan74, -
- 5 replies
- 1k views
Is there a way in VB.NET to open a text file to a specific section of text? For example say a user wants to all the contact information for a particuliar company I want the program to open that text file to that section of text. Not start at the top which gives the history of the company. Is there a way to accomplish this and if so could I get an example of how? Any help offered is greatly appreciated.
Last reply by Machaira, -
- 3 replies
- 860 views
Is there an easy way to pass values from one application to another application using VB.NET? Any help given is greatly appreciated.
Last reply by jmcilhinney, -
- 1 reply
- 683 views
How do I read in data from a datareader into a multicolumn listbox. I have for example While varReader.Read me.listbox1.Items.Add(varReader.Item(0).ToString & vbtab & varReader.Item(1).ToString) Loop I cannot get the second item to go into the next column. How do I accomplish this? Any help given would be greatly appreciated.
Last reply by jmcilhinney, -
I'm in the process of writing my own blog, and I'm trying to figure out how to automatically send a ping to sites such as Technorati using XML-RPC every time I add or edit a post. I've tried searching Google with very few results. The Technorati site gives some vague directions, but I have no idea where to go from there. Can anyone get me pointed in the right direction?
Last reply by JRichmond, -
- 0 replies
- 894 views
hi, i created a dataset object "DataSetCustomer" from the Customer table of Sql Server 2000 and i have TextBox on each of the fields. each textbox is binding with the dataset is there a very fast way to let the user to fill in all the textboxes and add this new row into the sql server table? maybe a dataadapter can do so? thankx.
Last reply by alanchinese, -
- 5 replies
- 1.5k views
I'm looking for a way to connect to one of our remote sites via FTP. I've been searching MSDN, but so far I am unable to find a topic detailing how to do this. The closest I found was an article on IIS, which may now encapsulate FTP features. I was not readily able to see how to get my application to do basic FTP commands, however. My application need to connect to ftp into the server and download a small text file after booting up (this text file will function as a security key). Occasionally, as updates come out, this small text file will also notify the program that it needs to download the latest patches. What keywords should I be looking under? I have been usi…
Last reply by IngisKahn, -
-
- *Experts*
- 8 replies
- 1.1k views
I have recently entered into a discussion concerning international SI numeric display. From what I have read from NIST (the US National Institute of Standards and Technology), NASA, and many SI publications the correct format is a space for thousands seperators and a dot for decimal ie: 1 000.00 1 000 000.000 000 etc. However, this is being challenged by individuals from latin countries who use a comma as a decimal seperator ie: 1000,00 So I researched more and found that pre-1990 non-english speaking countries (France, Spain, etc.) were using a comma as a decimal seperator. But I think the addition of computer has dispelled the comma use as all current documen…
Last reply by IngisKahn, -
-
Who's Online 0 Members, 0 Anonymous, 60 Guests (See full list)
- There are no registered users currently online