Topics
-
- 0 replies
- 3.1k views
I am writing parameterized data to SQL at 1Hz from several test cell computers (maximum 16, currently running 5 or less). The code works fine though I was losing connection sometimes when using SQL Developer edition. We installed the full SQL server last week and all was well until I got the following error this morning. What would cause this error? Should I leave the connection open to avoid extra overhead in opening and closing it every second? How should I recover from this error? Close the connection, reopen, and retry? 10:55:21 FlightRecorder System.InvalidOperationException: Internal connection fatal error. at System.Data.SqlClient.TdsParser.Run(…
Last reply by TexasAggie, -
-
- Leaders
- 3 replies
- 2.7k views
Hello! I would like to know what is the fastest way to find a pixel on my desktop. I've tried GetPixel API, but it's extremely slow. I've also tried Bitmap.GetPixel and it doesn't seem to be a difference between the two. I'm trying to search for exactly one pixel on my desktop. I have the coordinate as well as the color. It has to be in a loop if you don't mind. Here's how I used GetPixel: Do 'Nothing Loop Until GetPixel(hDC,X,Y) = COLOR If there's anything you need to know, please ask. Thank you for this wonderful forum! :)
Last reply by snarfblam, -
-
-
- Leaders
- 1 reply
- 2.9k views
Private Sub btnaddcart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnaddcart.Click Dim part As PartDescription = New PartDescription() part = CType(lbxItems.SelectedItem, PartDescription) Dim SItem As String Dim Updateqty As Boolean = False SItem = part.PartNumber MsgBox(SItem) For Each i As string In lstPart.Items If lstPart.SelectedItem.ToString = SItem Then Dim tempqty As Integer = Integer.Parse(lstQuantity.SelectedItem.Items.text) tempqty += 1 lstQuantity.SelectedItem.Items.text = tempqty.ToString Updateqty = Tru…
Last reply by snarfblam, -
-
- 14 replies
- 6.5k views
[csharp] private void cboImportset_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { // Catch the enter keypressed if (e.KeyChar = Keys.Enter) // { // Check if ImportSet already exists if so select ImportSet. // if ImportSet doesn' exists add it to ImportSet list. MessageBox.Show(e.KeyChar.ToString()); // } [/csharp] Errors are: - Cannot implicitly convert type 'char' to 'bool' - Property or indexer 'System.Windows.Forms.KeyPressEventArgs.KeyChar' cannot be assigned to -- it is read only - Cannot implicitly convert type 'System.Windows.Forms.Keys' to 'char'
Last reply by Anil_hyd, -
- 0 replies
- 1.6k views
Alright, I'm having a difficult time finding a solution to this. I have two tables in Access. One is named Model other is Brand. Both are in ComboBoxes. What I want to happen is when a specific item is selected in the Brand ComboBox, I want to have Model ComboBox 's collection change according to column that I select for each item within the Brand combo. Any help would be greatly appreciated.
Last reply by Jbailey, -
- 0 replies
- 2.2k views
Firstly I am completely new to this encryption and public key stuff. I have a Public key (in string format) which I need to use for Assymetric Encryption of my Data using the classes "RSACryptoServiceProvider" and "CspParameters" provided in Vb .Net. I did get lot of examples where they have mentioned regarding what I want, but I got thoroughly confused. My requirement is pretty simple. It is :- 1) I have two string variables say "PublicKey" and "Data". "PublicKey" variable contains the Key I need for encryption. Dim PublicKey as String = "KeyValue" Dim Data as String = "Value To Be Encrypted" 2) Declare an object of "RSACryptoServiceProvider" class and set the …
Last reply by sattu, -
-
- Leaders
- 3 replies
- 4.2k views
I would like to compile and execute code at runtime and access the main form from the runtime code. Public Class Form1 Public TestVariable As Integer = 7 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ExecuteTxtCode("Form1.TestVariable = 2") 'How should I alter this???? Me.Text = TestVariable 'Should be 2 and not the initial value of 7. End Sub Private Sub ExecuteTxtCode(ByVal Code As String) 'What should I put here???? End Sub End Class
Last reply by snarfblam, -
-
-
- Leaders
- 1 reply
- 2.3k views
Hi all, how to get all registry keys & its value and data of particular program(.exe) in vb.net. If you find any solution above this problem then please give me the links or urls. Thanks, Jayawant
Last reply by snarfblam, -
-
- 0 replies
- 3.6k views
hey, i am trying to write a code to search a particular item having entered string(for search) as a subitem. once the item is found i wanna list that item in ma listview. could you help me with the syntax to match string to the subitem?? :confused: thanx in advance
Last reply by mission, -
-
- Leaders
- 1 reply
- 1.9k views
I have a form that is instantiated with the following code. When I click the ok or cancel buttons that are on the form I call me.close() but the form does not close. I just stays on my screen and my application is hung. The form is not running on the same thread as the main form. If _frmAppManpower Is Nothing Then _frmAppManpower = New frmAppManpower AddHandler _frmAppManpower.FormClosed, AddressOf OnFormClosed End If With _frmAppManpower .RosterID = rosterID .ApparatusName = apparatusName .TopMost = True .WindowState = FormWindowState.Normal …
Last reply by snarfblam, -
-
- 0 replies
- 4.2k views
I have some large project written in directdraw. But I want to port it to Direct9. Everythying is OK, except the colors on the screen. I don't know how to use palette in D3D (SetPaletteEntries and SetCurrentTexturePalette function). Here is my code of creating d3d and device if( NULL == ( g_pD3D = Direct3DCreate9( D3D_SDK_VERSION ) ) ) return E_FAIL; D3DPRESENT_PARAMETERS d3dpp; ZeroMemory( &d3dpp, sizeof( d3dpp ) ); d3dpp.Windowed = TRUE; d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; d3dpp.Flags=D3DPRESENTFLAG_LOCKABLE_BACKBUFFER; d3dpp.BackBufferFormat = D3DFMT_UNKNOWN; d3dpp.BackBufferCount=1; d3dpp.hDeviceWindow=hWnd; if( FAILED( g_pD3…
Last reply by cossack5, -
- 0 replies
- 3.3k views
Recently, I have learn the Google SpreadSheet API. I have put up the articles and my learning on my blog. I am sharing here with the intention that it may be useful for those who want to learn the Google Spreadsheet API with .NET. SpreadSheet API with .NET: How to read data from Published Google Spreadsheet. SpreadSheet API with .NETHow to delete an existing Worksheet? SpreadSheet API with .NET: How to modify an existing Google Worksheet? SpreadSheet API with .NET:How to create new worksheet in Google Spreadsheet?. SpreadSheet API: How to add blank rows and columns in your google worksheet? SpreadSheet API: How to read Google SpreadSheet properties? SpreadSheet…
Last reply by vksingh24, -
-
- Leaders
- 6 replies
- 2.5k views
Hi hi, yo yo! Hi everybody, I'm using some code to make a transparent label, but as soon as I change the text or the text align properties the previous text remains intact! (like the image) When I move it around though everything goes back to normal, but I'm wondering if there's something I can do to fix this issue. The OnPaint method is overriden like this: Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs) Try MyBase.OnPaint(e) e.Graphics.TextRenderingHint = Drawing.Text.TextRenderingHint.AntiAlias e.Graphics.DrawString(Texto, MyBase.Font, vPincelDeColorDeTextoLabel, vPropiedadesDeRect…
Last reply by snarfblam, -
-
- 0 replies
- 2.3k views
Hey all i have the following code sliding from the bottom of the main form position to the middle of the main form. main form Dim Viewform2 As New Form2 Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.AddOwnedForm(Viewform2) Viewform2.Show() Call ChangeChildFormLayout() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim intX As Integer = Me.Top + Me.Height Dim opacityNum As Short = 0 Dim slideTo As Integer = Me.Top + Me.Height - 210 Do Until intX = slideTo With Viewform2 .TopMost = True .Opacity…
Last reply by StealthRT, -
-
- Leaders
- 1 reply
- 3k views
Re: Extract icons from icl files RE: http://www.xtremedotnettalk.com/showthread.php?t=90949 The code works perfectly, but can I ask you another code for extracting a single icon on the ICL File with all the color depth, for example in ICL File there 10 Icons from 0-9, I want to extract Icon number 0 into a single ICo file. Thanks.
Last reply by snarfblam, -
-
- 1 reply
- 2.5k views
When I build my project I get the following error and this is new territory for me as a noobie in .net. Thanks in advance for suggestions. Error 1: System.IntPtr is an unsupported type. Please use [XmlIgnore] attribute to exclude members of this type from serialization graph. File: C:\Denali CAD\trunk\CAD\EnRoute.CAD.UI\EXEC Project: EnRoute.CAD.UI
Last reply by groads2, -
-
- Administrators
- 15 replies
- 4.5k views
I write a program to run test beds that log anywhere between 1 and 400 physical values (temperature, pressure, etc.). Presently, I buffer 100 lines and then write to a synchronized text writer. The format is text tab delimited. I would like to write the data to SQL as well so that other engineers can plot data or run queries. I have two options: 1. Buffer and write while the test sequence is running; or (preferred) 2. Programmatically convert the .txt file to a table or insert all rows into a SQL table. (not preferred) Data is logged at 1Hz, but like I said, buffered into 100 lines to reduce HD access occurrences. What would be the best way to carry ou…
Last reply by TexasAggie, -
-
- 0 replies
- 2.4k views
-----
Last reply by usvpn, -
- 2 replies
- 3.2k views
I just installed visual studio express 2010 for windows phone and tried to run a simple hello world test on a Nokia Lumia 800 (windows phone 7). Is it true that in order to proceed I have to buy a subscription to Microsoft's App Hub? If so will this change with windows phone 8? I honestly do not plan to make anything worth selling on the marketplace so I really do not see a need for the subscription.
Last reply by JumpyNET, -
-
- Administrators
- 4 replies
- 1.2k views
Hi again and again and again! I would like to have methods that behave like ToString: Let's say I have a structure or class that has some properties like 'Name' and 'Value'. How would I implement some methods like this: MyStructure.Name.MYOWNMETHOD1 MyStructure.Value.MYOWNMETHOD2 Is there a way to achieve this? I know I can do it this way: MyStructure.Name = MYOWNMETHOD1("Hello") But I was wondering if there's any way to do this like the first example. Any ideas awesome guys? :D
Last reply by Doggo120, -
-
Who's Online 0 Members, 0 Anonymous, 32 Guests (See full list)
- There are no registered users currently online