I have a DataGridView (called DataGridViewSecurity) in VB.net (Visual Studio 2010) which is bound to a DataTable (called DataTableSecurity) in a DataSet (called DataSetSecurity). I have added a nonbound column (called nSecurityComboBox) that I set based on an integer field (called nSecLevel) in the DataTable. After setting the combobox, it doesn't display anything in the combobox, but when you select the combobox, the 5 values in it's items collection show. Here's the code I'm using to add a record to the DataTable and then to set the combobox:
I have datagrid with two combobox coloumn where there is relation parent/childIf i select element inside combobox1 i must load combobox2 with relative element, how can i ?But i don't wanna change other rows inside same combobox coloumn
I have a VB 2008 program that was converted from VB6. I used an AxMSComCtl2.AxAnimation COM control to show a simple AVI file (no sound) in VB6. Is there a .NET Framework control that I can replace this old control with? I have found the MediaElement that looks like it can only be used in a WPF Application. There is also the Media Player Component which seems to also be a COM component. So, I don't see the advantage of switching to that.
Protected Sub Upload_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Upload.Click If Me.FileUpload1.HasFile Then Dim intWidth, intHeight As Integer Dim UlFileName, NewFileName As String
[code].....
After an image is uploaded it is not displaying on the web page like it should be:
I am trying to display a message box in VB.NET. This should be simple but I cannot get it to work. I have coded in VB before and used MsgBox("Message") but in VB.NET i understand its MessageBox.Show("Message") but i cannot get it to work. Its saying MessageBox is not declared but what do you declare a message box as?
In my aspx page I have a gridview which displays the value from my database as "*". So if a value in my database table is 5, it will be displayed as "*****" in the gridview.
code in aspx: <asp:TemplateField HeaderText="Rating" SortExpression="Rating"> <ItemTemplate><h1><%# getrating(Eval("Rating"))%></h1></ItemTemplate> </asp:TemplateField> code in aspx.vb
[Code]...
What I want to do is change that "*" to a picture, ie star.jpg, so in the gridview it will display the image star.jpg instead of "*".Using MS visual studio 2010
I am using vb.net running a backend MS.Access database and I am wondering what is the code that I can use to display a picture of an image when the field name is selected.My MS Access "field" name is Cars_Types: in the files I have the data "GM, Chrysler, Toyota, Honda, and Ford". The name of my database is ModelCars.accdbThe pictures are not coded into the database instead I would like them to be coded into the VB.NET program.
I am writing a code in VB.NET the form has a button called send E-mail, which when clicked displays the production info for a week in the following, manner.[code]the screen actually displays the e-mail message and the user can edit the e-mail body add extra notes. but as soon as the user clicks the send button the app stops and launches the Microsoft Outlook , and pre-populates the ToAddress, Cc, the subject and the body, but the display in the outlook is something as follows.we would like to add the following to your production lines. KA5720 570 20' machine KA5730 570 30' machine BN340 680 40' Press CA8976 678 22' grinder thanks, If you have any questions. Please send us a reply." [all in the same line]I have tried various control character methods in VB.NET but nothing seems to work, I need a piece of code that actually displays the result in the following manner.[code]
I have a simple message box and it's not displaying when i run my subroutine. I debugged to verify that it's going into the code and it does; however, the message box just doesn't display and I don't know why.
here's the part of the subroutine that the message box is in: <code> If bSuccess = True Then
I supply all the details in properties window in Visual Studio 2010. But after publish, when I double click the setup file, it doesnt display the Publisher Name and displays Unknown Publisher. How to insert the publisher name which displays with the setup?
I would like to know if there's anything that can display data differently than what's stored in the DB.Here's my example. I have a column called Active and in the DB table, 0 represents Active, -1 represents InActive.In my report, when showing whether or not a listing is Active, I'd rather have the words Active and Inactive rather than 0 and -1.
I'm working a backup program and to determine the destination location, I give them the choice to type it in, or browse to it. Lately, I've been getting this error after they browse to it using the FolderBrowserDialog to set the location and the containing form is closed:
Managed Debugging Assistant 'DisconnectedContext' has detected a problem in 'C:UsersJFVDocumentsVisual Studio 2008Projects[backup program]in[backup].exe'. Additional Information: Context 0x792960' is disconnected. Releasing the interfaces from the current context (context 0x7927f0).This may cause corruption or data loss. ensure that all contexts/apartments stay alive until the application is completely done with the RuntimeCallableWrappers that represent COM components that live inside them.
In vb.net I want to pull out the wholenumber, decimal, first 2 decimal places and 3rd and 4th decimals. I've been circling around the solution but not quite there.
I am trying to display payment details for each loan, but I am having problems displaying on the form.
Public Class MortgageDetailsCalculatorForm Private Sub CalculateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CalculateButton.Click
I have an ASP.net page which has fields for filtering a dataset. When I apply the filter (through a button), the results load fine. If I navigate to another page (on the same session), and then come back to the page, I'm re-setting the value of the filter fields on page load
I am working on an ASP.Net website and have a GridView displaying some data,in the OnRowDataBound event I am setting the border of the row for certain rows based on some criteria. This all worked fine when I was testing my pages locally, however when I put these pages within our master page (this is part of a company intranet site) the row borders disappear in IE yet display fine in firefox.
Is there anything that could be causing this? So far there is no CSS style applied that I know of as I set the border inside the event handler like so:
In C++ it is fairly simple to display the actual value of a pointer to an object. For example:
// hope this makes sense: (please edit if not) void* p = New CSomething(); cout << p;
Is there a way to do something like this in .NET?The value of doing this would/could only be educational, e.g. for purposes of demonstration as in displaying a value for students to see rather than just comparing for reference equality or null (nothing) to prove shallow copies, immutability etc.
I am currently working on a project that will read HTML pages and store some information. I am doing this by loading the HTML page into a webbrowser, then viewing the source of the page by using:
Can anyone possibly take a look at my code (below) and tell me what I'm doing wrong? I have been sitting here for hours trying to figure it out. I'm very new at this and I'm thoroughly confused. I am using a book for Visual Studio "Programming in Visual Basic" and I have gone through all of the tutorials and code examples and followed them exactly (at least as far as I can tell). However, whenever I run the program, I am not getting the sum of the quantities I assigned to the constants showing up in"AccessoriesTxtBx" as I'm trying to. It shows up as $0.00 even when I have checked the boxes.[code]
It appears my connection to the db is correct when I select different options the datagrid displays the correct number of records. So I am not sure why I can not see the data in the grid.[code]....