Topics
-
-
- Administrators
- 9 replies
- 2.2k views
I have this code: Dim connString As String = "Provider=SQLOLEDB.1;User Id=sa;Password=password;Initial Catalog=Northwind;server=localhost;Use Encryption for Data=False" Dim myconnection As OleDbConnection = New OleDbConnection(connString) ' If the connection string is null, use a default. Dim date1 As String = Date.Today.ToString("yy-MM-dd") Try Dim myInsertQuery As String = "INSERT INTO DateTimePayload (Date) Values(date1)" Dim myCommand As New OleDbCommand(myInsertQuery) myCommand.Connection = myconnection myconnection.Open() myCommand.ExecuteNonQuery() myCommand.…
Last reply by miwaypro, -
-
- 3 replies
- 1.3k views
how can i make a method to wait n seconds and then resume execution?? public sub blah() 'statements 'wait one second or two... 'resume execution end sub thank you =)
Last reply by ramone, -
-
- Leaders
- 4 replies
- 1.2k views
I am trying to convert the following C# code to Visual Basic.NET, but I am having a hard time: private IntPtr m_context; public object UserData { get { return (object)((GCHandle)m_context).Target; } } When I try to convert this to Visual Basic.NET, I came up with the following code: Private m_context As IntPtr Public ReadOnly Property UserContext() As Object Get Return CObj(CType(m_context, GCHandle).Target) End Get End PropertyUnfortunately, where the C# version will build without errors, the Visual Basic.NET version reports the following error in the Task List: Value of type 'System.IntPtr' cannot be converted to 'System.Runtime.InteropServices.GCH…
Last reply by bri189a, -
-
-
- Leaders
- 2 replies
- 1.1k views
I have developed a Visual Basic.NET application that connects to a sql database. The application queries the database for data in a specific column/cell. This data can either be a fax number or and email address (keeping in mind that an e-mail address can be a mixture of both letters and numbers), is there a way that I can have the application tell the difference between e-mail and fax. So if the data pulled is a fax number it the application sends the information to our fax server, and if its an email address the application sends the information to our email server. The application needs to tell the difference. The fax number can be in any format from (210) 777-1234 to …
Last reply by snarfblam, -
-
- 1 reply
- 1.7k views
hello how can i block users from entering special sql characters in textboxes, like # ' \ " and -- ? i know it can be done with the keypress event of the textbox but i don't know how exactly thank you
Last reply by techmanbd, -
-
- Administrators
- 3 replies
- 2.3k views
Ok this is odd I have no code in place to keep my form on top of other forms but yet it is. Now this does not happen when the application is first started. I'm able to send it to the background with out a problem. Could the wat I am loading the my program? 'this is uses from a module to start the program MainForm.Show() Application.Run(MainForm) 'This is called only once in a new thread to load last loaded information. 'called from mainforms load event Private Sub ShowWait() Application.Run(WaitForm) End Sub I am kind of baffeled by this any thoughts? Thanks ZeroEffect
Last reply by ZeroEffect, -
-
- 2 replies
- 1.8k views
Hi good people :) First of all, how do you make your application run in fullscreen mode? I set the PresentParameters object, I check with the Manager object to make a BackBuffer with the correct width, height and format, I create the device and try clearing it and the application crashesh. Does anyone have (undoubtedly, but is also willing to post) a working piece of code? :D 2nd question: What is the true nature of the znearPlane and zfarPlane parameters in Matrix.PerspectiveFovLH(..)? Ok, they are clipping planes, but do they apply in camera (view) space? I suppose so, but application behavior suggests otherwise. For example, my camera is at (0, 0, -1000),…
Last reply by jjerry, -
- 3 replies
- 1.3k views
Hi, Have a page in my project which requires the user to submit a substantial amount of information. When the user clicks the "Next" button, the data they supplied is validated and the user is redirected to a specific location. If there is a problem with some of the data submitted, I want to redirect back to where that problem occured. I have tried to user HTMLAnchor tags, but don't seem to be having much luck, any suggestions on how I can get around this problem. Mike55.
Last reply by kahlua001, -
-
- *Gurus*
- *Experts*
- 13 replies
- 37.9k views
I need to draw a rectangle exactly in the middle of a panel. I know the exact size of the rectangle, in Millimeters, that I need, and I can figure out the size of the panel in pixels. I need to convert the millimeters to pixels so that I can figure the Location for the rectangle. Does anyone know how to convert from Millimeters to pixels based on the current resolution??:confused:
Last reply by Dan Dumitrascu, -
-
-
- Administrators
- 2 replies
- 2.8k views
Does anyone know if it is possible to detect when/if the workstation is locked (Win+L) and/or when the screensaver is activated? Is there a call to make, say, every 5 seconds which could check the status of such functions? I'm using C#, btw. Matt.
Last reply by Matthew Webster, -
-
-
- Administrators
- 6 replies
- 2.7k views
I have a project that will require my vb.net code to grab SSL content off webpages. The problem I am having is trying to find out what method will allow for many different windows versions.. from 98,ME,2k,2k3, and XP.. Is WinHTTP the best way to go for SSL and cross platform running? thanks Lee
Last reply by trend, -
-
-
- Leaders
- 1 reply
- 1.1k views
what is application for the files under the extension .rpx ?
Last reply by snarfblam, -
-
- 2 replies
- 2.1k views
You'll were helping me with another thread earlier today.. And you'll were saying .net supports SSL via WebClient.. but... Does anyone know if vb.net supports PKI ? or has any functions.. or will I have to be writing tons and tons of code? My implementations is.. I will give 10clients my program.. and this program will come included with a .p12 (x.509) file.. which this is the key. So when the users run this program, they connect to https://www.myserver.com/ and authenticate themself via PKI.. and after that download /file.exe (Basically I need: Client-side Authentication Client-side authentication is when a server requests the client's certificate for authent…
Last reply by trend, -
-
- Administrators
- 2 replies
- 2.1k views
can someone tell me what is the correct syntax for the following statement? Dim Parm3 As SqlParameter = .SelectCommand.Parameters.Add("@movedate", SqlDbType.DateTime.DateTime.Format("dd/mm/yyyy"))
Last reply by miwaypro, -
-
-
- Administrators
- 5 replies
- 2.7k views
Hi, I have a webservice that has one method and takes in a string as a paramter, pretty simple. On my client app, I build the soap envelop and post it using HttpWebRequest but I'm getting a Internal Server 500 Error, any clue to what i'm doing wrong? WSDL is not an option for me here. Dim strSoap As String strSoap = "<?xml version=""1.0"" encoding=""utf-8""?>" & vbCrLf & _ "<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">" & vbCrLf & _ " <soap:Body>" & vbCrLf & _ …
Last reply by kahlua001, -
-
-
- Leaders
- 3 replies
- 1.6k views
Can anyone tell me why this code: using System; using System.Runtime.InteropServices; namespace VolumeTest { public class VolumeControl { [DllImport("winmm.dll", SetLastError=true, CallingConvention=CallingConvention.Winapi)] public static extern int waveOutSetVolume(int uDeviceID, int dwVolume); [DllImport("winmm.dll", SetLastError=true, CallingConvention=CallingConvention.Winapi)] public static extern int waveOutGetVolume(int uDeviceID); public static void Main(string[] args) { waveOutSetVolume( 0, 0xFFFF ); Console.WriteLine( waveOutGetVolume( 0 ) ); } } …
Last reply by Iceplug, -
-
-
- Leaders
- 1 reply
- 946 views
If i draw something on a bitmap, can i erase it in anyway, except reload the bitmap?
Last reply by Iceplug, -
-
-
- *Experts*
- 6 replies
- 1.5k views
With Access databases an error would occur when trying to write 2 or more records in a table of the Database at the same time. Will this happen in MySQL too?
Last reply by EFileTahi-A, -
-
- 0 replies
- 683 views
The previous developer used MS Frontpage 2003 to create this ASP website. He included in every page the strings to send data back and forth to SQL Server 2000. I am now creating some pages using Visual Studio 2005 Beta. I have a problem with the asp.net strings and webconfig. Does anyone know how to fix this problem without redoing any of the code in the pre-existing pages? There seems to be a conflict. When I have the script in webconfig for the VS pages to connect to SQL, the previous pages, made with Frontpage 2003, will not connect. When the script is not in, of course the VS pages will not work. The new config file <!-- Web.Config Configuration File --…
Last reply by bkedersha, -
-
- Administrators
- 2 replies
- 904 views
I've been searching for this for a few days now and have had no luck. I am a classic ASP coder now making the leap into .NET and like all of us who have made the change, I cant find things I used to use. The most important to me is the Request.ServerVariables("LOGON_USER") to get the user name of the current user. Before I get a spate of replys telling me to use an authentication form or other form of user authentication....I Cant use these for specific reasons. The web applications I am developing are for internal use only. I am under a strict mandate to not use any other form of password other than the network passwords. So everthing that needs a login must be…
Last reply by DumAsp, -
-
Who's Online 0 Members, 0 Anonymous, 41 Guests (See full list)
- There are no registered users currently online