Topics
-
- 2 replies
- 1.8k views
Hi everybody, Greetings from Brazil. I'm new to C# and would really appreciate it if anyone could please help me translate the VB2005 code below to C#. The following code locks all TextBox and MaskedTextBox controls on a form. Thanks in advance. Best regards, JC :) Public Sub LockForm() On Error Resume Next Dim ctl As Control For Each ctl In Me.Controls If CType(ctl, TextBox).ReadOnly = False And CType(ctl, MaskedTextBox).ReadOnly = False Then CType(ctl, TextBox).ReadOnly = True CType(ctl, TextBox).BackColor = Color.White CType(ctl, MaskedTextBox).ReadOnly = True CType(ctl, MaskedTextBox).BackColor = Color.White End If Next End Sub
Last reply by jcrcarmo, -
- 0 replies
- 3.1k views
Javascript Object destroyed after XmlHttpRequest I have a 'global' javascript object. It works great...until I make an XmlHttpRequest...I retrieve a string (html code) and insert it into an iframe. At that point, I'm not able to access the javascript object anymore. Any ideas?
Last reply by Diesel, -
- 2 replies
- 624 views
Anyone know of a good javascript editor? I've looked at Tito Web Studio and Scryptik
Last reply by Diesel, -
-
- Administrators
- 1 reply
- 774 views
I have a web application that is hosted by a server using the IIS to manage it. The program at the moment has about 10 users and is run over an intranet. There is a data grid with holds orders specific to an order id. Here lies the problem. Each application is picking up other users order lines over the network and displaying them. I have exhausted all my solutions and was wondering if anyone could help or give any experience if they have dealt with something similar? Thanks
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 3 replies
- 846 views
Ok I was wondering if it was possible, which I'm sure it is, to end a process of a program at my school that stops me from using firefox. The process is called "navagent.exe". So I have a start up program and when I click the button to end the program I want it to be able to open firefox, which it can but then it closes because of the blocker but before it can run I need to end the process and I would rather not go through the task manager and do all of that. If there is a tutorial or something that someone knows of that would be great. Thanks.
Last reply by PlausiblyDamp, -
-
Error
by lothos12345-
- Administrators
- 2 replies
- 1.7k views
I have deployed my Visual Basic.NET application. It's working fine however every now and then Get the following error. Exception Type: System.NullReferenceException Exception Message: Object reference not set to an instance of an object. Exception Target Site: DisplayRXMV ---- Stack Trace ---- Test.frmMain.DisplayRXMV() Test.exe: N 01679 <-- not sure what this means. It's not giving me enough information to determine what line in the DisplayRXMV method. My code for the method is as follows: Private Sub DisplayRXMV() Dim DsDrugs As New DataSet("RxDrugs") Dim DrugTable As New DataTable("Drug") Dim DrugCBCol As …
Last reply by PlausiblyDamp, -
-
- 0 replies
- 793 views
I am using a DataGrid to display data while it is being acquired from a rack of instruments. It works fine except that it seems to ignore the column formats that I have specified. I want to display my measurement with a fixed 5 decimal places, so I did the following: Dim tbcDataAcquisition As New DataGridTextBoxColumn With tbcDataAcquisition .HeaderText = "Measurement" .Width = 75 .MappingName = "measurement" .Format = "F5" End With GridTableStyle.GridColumnStyles.Add(tbcDataAcquisition) I then add this style to my DataGrid in the Form.Load statement: dgDataAcquisition.TableStyles.Add(oStep.GridTableStyle) oStep.GridTableStyle.MappingName = "test…
Last reply by tfowler, -
- 1 reply
- 882 views
when declaring the parameters for an insert command for a data adapter i use a line like this: adapter.InsertCommand.Parameters.Add("@Phone",SqlDbType.Decimal,9,"Phone"); this is if im using an sql server database. if im using an OleDb connection ,connecting to an access database what do i use instead of SqlDbType??
Last reply by HJB417, -
- 3 replies
- 2.4k views
I'm working with the DotNetNuke Portal application and coding my own module. Sometimes I get an error, and have determined that removing the files from the Temporary ASP.NET Files directory and re-compiling fixes the problem. The problem is I have to re-boot my computer each time to delete these files. Is there a way to delete the files from the Temporary ASP.NET Files directory without rebooting? Thanks!
Last reply by HJB417, -
- 1 reply
- 571 views
i am trying to enumerate through the primary keys in a table. i create an enumeration like so: System.Collections.IEnumerator e =ds.Tables[table.ToString()].PrimaryKey.GetEnumerator(); i then try to cycle through the items like so: while((e.MoveNext())&&( e.Current != null)) { if(e.Current.ToString() == key) { exists = true; break; } } now i know that there is one entry in the table, but as soon as i call the moveNext method, get an error telling me the ennumeration has already finished. what am i doing wrong?
Last reply by HJB417, -
- 4 replies
- 2.8k views
how do you flush the data from an asyncronous tcp socket? apparently the tcp socket likes to decide when it wants to send the data based on the packet size.
Last reply by HJB417, -
- 1 reply
- 1.2k views
So im doing a webservice and the system works great when im testing it through the webbrowser, but when the other software is going to communicate with the webservice it wont work. My plan is to set up the webservice in debug mode. But when i start the debugging in visual studio it tells me: "Running the project requires settig an initial Web page. To set this page, right-click the desired page in the Solution Explorer and select "Set as Start Page"." by my experience the .asmx file should be used as the Start Page, but when i right-click that file the option to select that file as start page is deactivated. The only files i can choose that option on i Web.config a…
Last reply by HJB417, -
- 1 reply
- 1.2k views
a vb 2005 question.. I've got a datasource that is bound to an object. I'm getting my results to a detail view fine.. and can use the bingingnavigator to click through each row. I'd like to be able to click on the + sign in the binding navigator and go to a new, blank "row" that I can later save. I've got a click event for the add sign, and did a Me.CampersBindingSource.EndEdit() this is creating the blank row at the end but I can't figure out how to get the UI to go to this last record. I've tried the movelast and position, but I'm not doing something right. would seem that I should be working with the bindingnavigator.. but i'm not sure.. Can someone h…
Last reply by jvcoach23, -
- 0 replies
- 1.5k views
I have been trying to get the current url from a open internet explorer program, but have had no luck. I was able to do this in vb 6 with a label control and the linkTopic, linkItem, linkMode, and linkRequest properties like so: .LinkTopic = "netscape6|WWW_GetWindowInfo" .LinkItem = "0xffffffff" .LinkMode = 2 .LinkRequest but with vb.net there seems to be no .linkTopic or the others. I would greatly appreciate any help. Thank you.
Last reply by bjay55, -
Locking controls on form
by Guest aruser-
- *Gurus*
- 9 replies
- 2.7k views
I'm trying to find a way to lock controls (on RunTime) from editing. I have an application with lots of forms. each form contain standard controls only (TextBoxs, Check boxes, Radio options etc.) I'm searching for a way to lock all controls on a form when it is opened (If for example, the current user has a ReadOnly access to my application). What happned to the old-good VB6 Locked property ? Thanks
Last reply by jcrcarmo, -
-
- 2 replies
- 897 views
Hi, I have a form that displays fine when loaded without setting it's mdiParent property. However when i set the property the button height increases making the form appear fatter (it seems only to be buttons that do this) - there's no code that i've written that sets the button height anywhere - there's no window designer generated code that sets the button height (it uses the default 23,75 values - i set a handler on button.resize (which gets called) and i can't stack trace it since it's called from "<non user code>" i'm sure i must be missing something simple - but i can't for the life of me figure it out. Any light shed on this situation would be gr…
Last reply by bondsac, -
- 1 reply
- 2.1k views
I have this simple FTP client program. Allmost all the code is from msdn. It's very easy to use and works quite well. I myself would like to use it to upload several files to different FTP servers simultaneously. Now it only uploads one at a time. Any ideas how this could be done? Also when the program is uploading it seems like it's stuck (can't tamper with the UI or do anything else). I would like to run every upload process in a separate thread (if that's the right word). So that the uploads would run on the background. I think solving this second problem would solve the first problem as well. I'm sure that with a little help from you guys we could make this p…
Last reply by rot13, -
- 1 reply
- 1.7k views
i want to be able to type a report into a text box, and then print it out , as it is in the text box. im using a rich textbox. how do i make sure the text box is the same size as an A4 sheet?
Last reply by rot13, -
-
- Leaders
- 2 replies
- 857 views
I was wondering how I would be able to retrieve internet cache entries with visual basic .net. Thank You for any help.
Last reply by bjay55, -
-
- 0 replies
- 985 views
i created several reports and when viewing them in the application they show fine. there are two tabs. a report tab and a datagrid view tab. when i switch from datagrid view to report the caption in the datagrid view page's title bar stays there. the report buttons in that page just appear overlapping that. any help? i hope this isn't too vague...
Last reply by ghostmax,
-
Who's Online 0 Members, 0 Anonymous, 62 Guests (See full list)
- There are no registered users currently online