Topics
-
-
- Administrators
- 2 replies
- 1.3k views
This is probably a very base question. I have a datagrid that's source is a SQL Server table. This is written in vb.net, my code is very simple as follows: Me.dgFile.CaptionText = sptable & " Table" Me.dgFile.DataSource = ds Me.dgFile.Show() My problem is that while it displays, it doesn't initially display the grid with the data. It's an empty grid, I click on the plus sign by the right arrow, then click on the table name. Then the table displays. Okay, fine, but I hate those two extra steps. As long as I am using the same table, it won't take me through the gyrations each subsequent time I open it. However, I switch back and forth between tables. So..…
Last reply by lauriemc, -
-
-
- Administrators
- 1 reply
- 901 views
I have encountered a problem in Vista and am really in need of your help. I just installed Vista, although I don't like to use it anymore, but I have to make my program written in VB work in Vista. Everything should be alright, I just use a component named "DHTMLED.OCX" and "TRIEDIT.DLL" which were available on previous versions of Windows. In Vista this component has been removed, and even after that my installer program copies it to this location: C:\Program Files\Common Files\Microsoft Shared\Triedit It won't be registered. I tried to register it manually, but got an error, see the snapshots. Should I cease using this component? But what's the replacement? I r…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 753 views
I have this code, which works; however, I don't want to select all events before I update. Is there a better way to do a simple Insert? Dim drnew As System.Data.DataRow cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & dbPath & ";") cn.Open() sql = "select * from events" myDataAdapter = New OleDbDataAdapter (sql, cn) Dim builder As OleDbCommandBuilder = New OleDbCommandBuilder(myDataAdapter) myDataAdapter.Fill(dsEventTemplate) drnew = dsEventTemplate.Tables(0).NewRow() drnew.Item("LocID") = TextBox1.Text drnew.Item("Even…
Last reply by amir100, -
-
- *Experts*
- Administrators
- 1 reply
- 14 views
This forum is for programmers who want to post code. We used to have it so that code blocks had syntax highlighting, much like the php code blocks that are native to vBulletin. There have been many threads posted about getting the colors back, but nothing's happened yet. I'm not a vBulletin "guy", but I can program. I'm willing to read whatever manual I can to figure this out but I'm not even sure I'm able. Here's an old thread by Bob: http://xtremedotnettalk.com/showthread.php?t=84374 In it, he mentions making changes to some php files and needing ftp access. That worries me because I don't have access to either. Is there anyone at iNet that can get me started …
Last reply by AWS, -
-
- 4 replies
- 3.6k views
i have my advanced textbox (keypress and keydown overloaded) how can i add my textbox to one of datagridview columns? c#.net many many thanks
Last reply by amir100, -
-
- Administrators
- 8 replies
- 3k views
I am creating a website in c# asp.net. I have a databound text box that is supposed to refresh according to a variable which gets changed. The textbox will change to the correct value when a link is clicked passing the variable, however when the variable is changed in a dropdown list all of the information on the change updates except for the text box. Is there some kind of refresh or something that I need to do? I do not understand why it changes with a link but not with a dropdown selection.
Last reply by jayreed21, -
-
-
- Leaders
- 1 reply
- 801 views
Hi, I run my code and while everything should be OK, the code runs without any problem, I don't get any warning or error. But just in immediate window I get a list of errors that I cannot find where are they from? I put a breakpoint and even could not catch the error. Even Catch Ex as Exception didn't fire when this list get some errors! Interesting is that my code runs properly, and no warning or error is received, just immediate window! What should I do? :(
Last reply by snarfblam, -
-
- 0 replies
- 932 views
Hi, I have downloaded this update from here: http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC&displaylang=en But it has not a digital signature!!! :confused: It's the first time I get a file from Microsoft that is not digitally signed! :confused: Anyone downloaded this package? Maybe my download is corrupt? Please advise! :(
Last reply by ADO DOT NET, -
- 0 replies
- 811 views
Hi, i want change current digits shape (1234567890) to my country digits shape ۱۲۳۴۵۶۷۸۹۰ how can i do it?
Last reply by hamid, -
-
- Administrators
- 2 replies
- 3.4k views
HI All :confused: I have got myself quite confused about manifest files and how to use and insert them into my VB.NET application. I have read lots about them but some of the information on the web is quite old. I want to do the right thing and send out a manifest file if thats what is required. I have tested my VB.NET programs on the Vista OS and without using a manifest file when I click on one of my programs that do require admin rights the UAC does appear as is should. My other program that does not require admin rights works with no prompt. Does this mean that a manifest file is been used somewhere in my application that I do not know about or has the code f…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 800 views
Can anyone spot the problem with this code: clsConnection.OpenConnection(cnConn) quickAddAdapter.SelectCommand = New SqlCommand quickAddAdapter.SelectCommand.Connection = cnConn quickAddAdapter.SelectCommand.CommandText = "QuickSelectMembers" quickAddAdapter.SelectCommand.CommandType = CommandType.StoredProcedure quickAddAdapter.SelectCommand.Parameters.Add(New SqlParameter("@Organisation", SqlDbType.NVarChar, 10)) quickAddAdapter.SelectCommand.Parameters("@Organisation").Direction = ParameterDirection.Input quickAddAdapter.SelectCommand.Parameters("@Organisation")…
Last reply by Nate Bross, -
- 1 reply
- 4.5k views
How do I programmatically check a checkbox in a datagridview? The true value of the column "chk2" is set to "yes" and the false to "no" datagridview1("chk2", row_number).Value = "yes" doesn't work
Last reply by Nate Bross, -
-
- Administrators
- 1 reply
- 1.2k views
Hi, Just wanted to know how is Vista version numbering so I can implement thecode to cover Vista also? Thanks all:)
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 6 replies
- 5.5k views
Hi Everyone, I keep getting this exception for quite sometime and maybe someone could give me some pointers. This occurs sporadically. My application has a splash screen(form) that loads a main form. This error occurs when the main form is being loaded. The splash has a timer and after 2 seconds the main form is loaded and the splash form is hidden. The main form has some controls which are custom-drawn (tabs, buttons). It also contains some VB6 activex controls (Interop). I get the following errors one after another: An unhandled exception of type 'System.NullReferenceException' occurred in system.drawing.dll Additional information: Object reference not…
Last reply by Grundighifi, -
-
-
- *Experts*
- 5 replies
- 1.1k views
Im trying to execute the following: mySqlCmd.Parameters.Add("@Parent_ID", SqlDbType.Int).Value = (sectionUpdate.iSection.ParentID == 0 ? DBNull.Value : myParentID); However i get an error that Null cant be converted to Int. Is there any way i can uyse the SqlParameters approach but pass in a Null value for the field or must i wrap the entire connection within a IF/ELSE statement one containing a hard-coded NULL within the query and the other as a standard parameter with a proper int value? Thanks
Last reply by amir100, -
-
- 0 replies
- 1.1k views
I have this routine that runs when the use clicks delete on a dgv row, but it keeps deleting the first row in the dgv no matter which row i have selected; private void dgvDelays_UserDeletedRow(object sender, DataGridViewRowEventArgs e) { DataRowView selectedRow2 = (DataRowView)bindingDataDelays.Current; if (selectedRow2 == null) { return; } _delayID = Convert.ToInt32(selectedRow2["DelayID"]); DataRow[] currentRows2 = DataComponents.ShiftData.tblUnitDelays .Select("DelayID = " + _delayID); foreach (ShiftDataSet.tblUnitDelaysRow row in currentRows2) { …
Last reply by MartinaL, -
-
- Administrators
- 6 replies
- 1k views
Hello, Try Catch x1 As x1 Cacth x2 As x2 End Try I just want to know that if in the above code another exception occurs how can I catch it? In other words, I want to catch all other exceptions at once. Do we have something like, Catch Else?
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.4k views
I read some where that with the advent of Sql Server 2005 we would be able to program Visual Basic code directly into a stored procedure on Sql Server 2005. Can anyone recommend any books or resources that I can study from on how to accomplish this? Any help offered is greatly appreciated.
Last reply by lothos123452000, -
-
- Administrators
- *Experts*
- 6 replies
- 920 views
Private Sub ProcessButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ProcessButton.Click Try Dim FilePath As FileStream = Nothing For Counter As Integer = 1 To Some Number FilePath = New FileStream(FileString, FileMode.Create, FileAccess.ReadWrite) ...process FilePath.Close() Next Catch x As x ... Finally FilePath.Close() End Try End Sub The above code is general structure of my code, as you can see there, I create and use a file stream and close it before each next loop command. But it is possible that some t…
Last reply by mskeel, -
-
- 3 replies
- 706 views
Hi Hi, Is it possible to define a class within a class? I have two classes 1: Product 2: ProductImagesCollection I would like to restrict the ProductImagesCollection class so that it can only be used as part of an instantiated Product object and therefore cannot be instantiated in any other way. Is this possible? Many Thanks
Last reply by Superfly1611,
-
Who's Online 0 Members, 0 Anonymous, 57 Guests (See full list)
- There are no registered users currently online