I have a modal form with a single instance of the built-in .NET 2.0 tab control. The tab control has several pages, and on one of them is a combo box that isn't populated until the user activates it for the first time. When that happens, I handle the DropDown event and run a process that takes several seconds, then I add the items return...
I have an ASP.net table. In several cells I have two dropdown lists. The item selected in each dropdownlist is supposed to be populated from an SQLServer 2005 database. To do this in my code behind I step through the controls in each table cell. The code sees the first dropdown and populates it and then goes to the next cell.
My ASP...
I am putting some heavy though into re-writing the data access layer in my software(If you could even call it that). This was really my first project that uses, and things were done in an improper manner.
In my project all of the data that is being pulled is being stored in an arraylist. some of the data is converted from the arraylist...
I have a gridview that is only shown in a modal popup. right before I call the modal popup I set a value in a textbox. The gridview inside the modal popup depends on that textbox's value for it's data to show up at all. SO onclick I want to reload the gridview so that it will reload with the textbox's value. Any ideas?
...
Consider the following mock-up image I've created:
I am new with working with InfoPath and I was curious if anyone knows how to embed an instance of InfoPath inside of a winform, so users can fill out the form without launching the InfoPath application.
...
A few months back I wrote a VB.net console application to migrate a group of about 100+ printers and the 1800+ users that use them from some old HP print appliances to a mixed Print Server and Direct to IP Printing solutions. The application uses a database to compare installed printers and remove old/invalid shares and remap to the new ...
I have a COM component that I want to call using late-binding from VB.NET (using the painful Primary Interop Assembly - PIA method)
My IDL signature for the COM method looks like:
HRESULT Send([in]BSTR bstrRequestData,
[out]VARIANT *pvbstrResponseData,
[out]VARIANT *pvnExtCompCode,
[out,retval]int...
I'm trying to get a single field back from the data. (I am searching by a primary key so I should get 0 or 1 answer). Please help. The table that I am querying has one entry with user = someone, input to several columns with the ans column having "a good answer"
Code:
Dim reader As SqlDataReader
Dim par As SqlParameter
Dim result As ...
hi,
hopefully this should be an easy question. In java i know it's compareto, i think.
how do i compare 2 string variables to determine if they are the same?
ie:
if(string1 = string2 AND string3= string 4) then
perform operation
else
perform another operation
end if
Thanks
...
Hi,
Does anyone have a example of how to join 3 tables, I have the following statement but I'm getting a missing a (syntax error "operator error")
da = New OleDbDataAdapter("SELECT [S].[Scheduled Vege], [V].[Description],
[DS].[Task], [DS].[Task Date], [DS].[Completed] FROM [Scheduled] AS S
INNER JOIN [Date Schedules]...
I'm just getting started with collections (ObservableCollections) and I've hit a wall that I assumed would be easy. I'm sure it is easy but I'm just not finding the answer.
I have a WPF screen with a DataGrid to the left and TextBoxes to the right of the screen. The DataGrid is bound to the ObservableCollection (Activities) and I can c...
I have a vb.net project which sometimes, when running in the IDE, suddenly hangs. Normally this wouldn't be a problem. Just hit 'pause', look at the currently running threads, and find the deadlock (or whatever else).
But now I'm running into a situation where not only does the program hang, but trying to pause it causes visual studio i...
I'm a C# developer working on a VB.NET project, and VS keeps trying to get me to use the := thingie when I call a function with a ByRef parameter like so:
While reader.Read()
HydrateBookFromReader(reader:=???)
.
.
.
the HydrateBookFromReader function has the following signature:
Public Function HydrateBookFromReader(ByRef reader As...
I am listing folders and folder sizes in a ListView for a VB.NET WinForm program I'm writing. I would like to total the folder sizes in the last entry of the ListView and 'lock' it show it always shows (even if scrolling through the list.
Is there a way to do this? I'd really like to avoid adding another control on the Windows Form ...
Is there a way, in VB.NET, to output the current line number in the source code? For example:
Try
' The following line will purposly cause an error
Dim BigNum As Int64
Dim LittleNum As Int16 = CShort(BigNum)
Catch ex As Exception
Dim LineNumber As Integer = <linenumber> ' How do I do this?
MessageBox.Show("Error in s...
I am C# developer and now I am involved in some large, already in production, project that is written in Visual Basic.NET.
I am trying hard not to write in C# and use some automatic conversion tool to Visual Basic.NET. I want to be able to read and write fluently in Visual Basic.NET QUICKLY. I can write and read VB.NET but it is not so ...
hi,
i would like to be able to login on a webpage using a valid active directory username and password.
user name and password are entered in textboxes. if they are correct then i would like to redirect to another page.
how can this be coded.
in a second task
after some code is performed, log in as an administrator using code and un...
Hello all,
I have a panel sitting in a div, and I want to use that panel as a container to add more panels! Why would I want to add a panel to a panel? Because the panel that I'm adding to the existing panel, is also made to contain objects, but only and image and label.
The existing master container panel is created during design time...
I have been tasked with moving a rather large project from VB.Net to C#. Are there any converters, and if so what should I watch for? Are there areas of the code that are known to be problem areas during a conversion like this (Data Access Layer, etc..)
...
This line of code
((Matches)Container.DataItem).MatchID
works in C# but in VB.NET, when used in a Repeater, I get the error
'Matches' is a type and cannot be used as an expression.
Suggestions?
...