Topics
-
- 2 replies
- 1.2k views
As i wrote in my title I wan't my program to send a ctrl + d key combination to another running program for example when the user clicks a button. The other program is a dialer that calls a highlightend text with that key combination. Anyone with any suggestions how I can accomplish this?
Last reply by patdenim, -
- 1 reply
- 3k views
Hi all, I want to put Back button that redirect to previous page that should not be the same page caused by postback event. How can I ignore postback event? I thought about Page.Request.UrlReferrer. But, it gives the postback page. What is common and standard approach?
Last reply by mike55, -
-
- Administrators
- 5 replies
- 2.7k views
I have a VB6 application that calls a method from a custom DLL that I think was written in C (or C++). Unfortunately, I don't have the original source code, so I cannot examine the method signature for date types etc. Here is what worked in VB6: Public Declare Function xyz_function Lib "xyz.dll" _ (ByVal x As Integer, ByVal y As Integer, refArray() As Byte) As Integer Dim refData(0 To 31) As Byte If xyz_function(CInt(0), CInt(2), refData()) = 0 Then ... End If After reading several articles, here is what I tried in VB.NET: <DllImport("xyz.dll")> _ Public Shared Function xyz_function(ByVal x As Integer, ByVal y As Integer, _ ByVal refArray…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 784 views
I have spent 3 days working thru another programmers application which is hanging on the outputto method when outputting to rtf format. I won't bore you with all the nitty ****ty detail of this app apart from that it cycles thru many records and gets so far and just hangs. I then remove a number of records and the app works perfect as before. From my investigation all I can presume is that buried somewhere in the app some resource is being consumed and when it reaches it's limit it hangs? I have looked to check that there are the required .close and set to nothing of recordsets etc and all appear to be there. Is there a method/function which can be called t…
Last reply by IxiRancid, -
-
- Leaders
- 3 replies
- 924 views
Hello, Ok, to clarify, I am not wanting to build a new Tab control well, not exactly anyway What I would like to do is change the present tab controls Look... I think its ugly. So, hince my question.... as a Graphic artist I would like to re design its appearance to something with a little more style for my app. Question is, how would I then either make my design graphic become a new control that inherits all the functionality of the tab control or modify the present one with my new appearance??? Any thoughts? vbMarkO
Last reply by snarfblam, -
-
-
- Administrators
- *Experts*
- 5 replies
- 1.3k views
"No value given for one or more required parameters." This is the error I get on the .Fill line of this code. 'Select Command Dim txtSelectCommand As String txtSelectCommand = "SELECT Customers.CustomerID, Parts.PartID, Parts.Description, " & _ "LineItems.Quanity, LineItems.QuantityComplete, " & _ "LineItems.DueDate FROM Customers, Parts, " & _ "LineItems WHERE LineItems.QuantityComplete < LineItems.Quanity" 'Set connection and create DataAdapter and DataSet Dim dbConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data S…
Last reply by rot13, -
-
- 0 replies
- 751 views
I'm having a problem controlling the width of a list box. I populate the list box from a database and it seems the width is determined by the length of the longest list item...it doesn't matter what I have the width property set to. Is there a fix to this? Thanks!!
Last reply by rangerstud620, -
- 1 reply
- 1.3k views
... odd problem ... when my form/application is minimized (to the systray using a NotifyIcon) and I try to resize it to screen (when I click on it), sometimes it just appears on my taskbar but it is minimized and I can't restore it, only way to fix the problem is to kill the application. When the user clicks on the NotifyIcon the application should resize of screen - worst case scenario if ever it is minimized and I click on it (when it is in the taskbar) it should restore the application - which currently it doesn't. This is the code I am using when the user clicks on the NotifyIcon: private void pNotifyIcon_Click(object sender, System.EventArgs e) { // make w…
Last reply by Machaira, -
-
- Leaders
- 11 replies
- 1.7k views
hello how can i make my controls look like winxp controls? for example, winxp tabs and buttons have rounded corners and get a nice orange line on mouse hover, controls in vb.net have the classic style thank you=)
Last reply by mskeel, -
-
- 0 replies
- 1.8k views
Hi, If I have large number of files (xml for example) and I want only couple of them to be installed on each client computer, how do I do that? In other words, how can I use information user is giving me through the setup wizard to decide which files will be installed on the client and which not? Thanks
Last reply by ivan74, -
- 3 replies
- 2.2k views
Hi all What I am trying to do is open up a word template, name the document, fill in the details, Save and close word. I am able to open the template, fill in the details and close word. I just can't find out how to re-name the document and then get it to save where I want it. Any Ideas Please. Thank you
Last reply by pendragon, -
- 0 replies
- 1.5k views
Does clientside have access to: Request.ServerVariables("REMOTE_ADDR").ToString() var I have a web application that grabs data via: Request.ServerVariables("REMOTE_ADDR").ToString() and Request.ServerVariables("SERVER_PORT") And possibly some other request.servervariables Is it possible for a hacker"" to put crap into those? Aka, should I sanatize those results? Also.. can people spoof Request.ServerVariables("REMOTE_ADDR")? because it is looking so in my logs.. or maybe I didn't implement them right?? thanks Lee
Last reply by trend, -
-
- Administrators
- 3 replies
- 1.4k views
I am having this issue... I have a login form that when users post information to, it will (of course) validate the information.. and based on that information it will either: A)Response.Redirect("Access.asp") B)Response.Redirect("/NoAccess.asp") My problem is.. everytime I do a response.redirect.. My vb.net/asp.net code doesn't like it.. The thread reports "Thread was being aborted." in my logs (My response.redirects are in a try of a try/catch and the catch logs the error being "Thread was being aborted." everytime either response.redirect are executed (aka if the user is valide or is not doesn't matter). Any ideas? I don't think javascript redirects are…
Last reply by trend, -
-
-
- Administrators
- 6 replies
- 832 views
This problem was first posted on the sister site Extreme-VBTalk and it concerns user control properties. To save time and prevent suggestions/ideas already been qutoted to solve this problem please follow the link below to Extreme-VBTalk and read post eleven and onwards. The problem: http://www.visualbasicforum.com/showthread.php?p=1050492#post1050492
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 7 replies
- 1.9k views
I need to know if i'm missing something big here. I program and program in VB.net just fine and very quickly until I have to use an API. At that moment it is EXACTLY like i was hit by a Mac Truck. One damn API declaration and usage will blow a whole in my progress for 1-3 solid days before i give up and ask on a forum how it should be used. Of course, when i ask on the forums there is about a 15 day period before the first response.. so there goes all productivity out the window. I am still very thrilled for any help by forum folks even if it's months after the initial post. Forum's rock. BUT, it doesnt change the fact that API's and VB.NET together are not working well w…
Last reply by Wraith, -
-
-
- Leaders
- 3 replies
- 707 views
i am trying to enable specific key presses. i am having trouble with the period key and the decimal key. i tried this Asc(e.KeyChar) = Keys.Decimal Asc(e.KeyChar) = Keys.OemPeriod but it doesn't seem to work... the first line does not respond to any key press, while the second line responds to pressing "n" lowercase... i am puzzled... anyone have an idea?
Last reply by snarfblam, -
-
- 0 replies
- 650 views
Is there a way to check if external hard disk is plug in? Coz what i'm trying to do here is, i'm creating a small app which protects the folder on the external hard disk. The app itself is on the external hard disk, so when non-authorized person try to access to the folder which is protected it will denied it. Main points: - The app is on the external hard disk - How do i code the part when user try to access to a restricted folder, the app runs itself and check for authentication (pass key, let say it prompt user). - Setting folder security attributes Guide me pls~
Last reply by Souma, -
- 1 reply
- 1.5k views
I have a datagrid that loads an xml file into it using a DataSet. The problem that I have, is that I cannot figure out how to get a DataView to work with it so I can set it's allownew property to false. How can I use a DataView along with a DataSet that has a loaded xml file in it?
Last reply by decrypt, -
-
- Leaders
- 2 replies
- 3k views
how can i know the index number of the tabpage currently shown in a tabcontrol??? i have searched for a 'current' property, or something alike, in both TabControl and TabPage but i've failed to find a property or method get the current tab thanks :p
Last reply by ramone, -
-
-
- Leaders
- 5 replies
- 1.9k views
hello is it possible to execute code in a string in vb.net, for example dim codeStr as string codeStr="controlname.method" 'execute controlname.method here thank you
Last reply by ramone, -
-
Who's Online 0 Members, 0 Anonymous, 41 Guests (See full list)
- There are no registered users currently online