WPF Not Shown In Project Types
Jan 20, 2011Some one suggest use WPF for better look and feel when i open the VS2008 and go new project there is no WPF application ICon image attached;Is there some extra installation required
View 1 RepliesSome one suggest use WPF for better look and feel when i open the VS2008 and go new project there is no WPF application ICon image attached;Is there some extra installation required
View 1 RepliesA colleague has written a useful tool. He wrote it as a standalone tool, but it works even better as an includable dll, though it needs a bit of other functionality for it to be a really good drop-in component. What I am wondering is whether a project can be compiled as both an exe and as a dll?
There are alternatives, such as having a dll version and an exe version, since the dll version needs to include a few different methods that the exe version doesn't need, but this alternative sucks, since it would mean changing two sets of code.
Another alternative is to build the dll, then change the exe to be a project that references the dll....and does nothing other than calling one method in the dll. That kind of sucks, too, but not as bad.
I want to be able to use his module in some of my programs, and it really should be built as a component rather than a standalone app, but I want to know whether there are other options that I haven't considered.
I have a service projecwith a deployment project in a solution. The installation is successful, service runs ok. However each time after installation I will have to use ervices.msc to start up the software or restart the machine, any idea how I can start the services as soon a
View 3 RepliesSuppose somebody created a solution which contains many projects. How can I find the project types? I mean that how can I know whether a project is a library type or console application and so forth from IDE?
View 4 RepliesI make pretty extensive use of XML Comments in Visual Studio, but I'm discovering that some project types either don't appear to support them or else have default project settings preventing them from working properly.
[Code]...
I make pretty extensive use of XML Comments in Visual Studio, but I'm discovering that some project types either don't appear to support them or else have default project settings preventing them from working properly. For example, I position the cursor immediately over a Class, Variable, or Sub declaration and I type ''' - usually this prompts Visual Studio to autofill a whole XML comment block for me, but in a recent Class Library project with COM enabled, this does nothing at all.
View 4 RepliesIs there any performance hit (or other problem) to creating a lot of class and structure types for a project? I'm not talking about the number of objects existing in-memory during runtime; rather just defining a lot of object types during design time. I find myself making a lot of small classes and structures that are little more than simply packaging a few related variables together.
View 4 RepliesI am using: (copied from the/about vb studio window:
Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework
[code].....
I have a class with a Property called 'Value' which is of type Object.Value can be of any type, a structure, a class, an array, IList etc.My problem is with the setter and determining whether the value has changed or not.This is simple enough for value types, but reference types and lists present a problem.For a class, would you assume that the Equals method has been implemented correctly, or just assume that the value has changed every time the setter is called?If I did assume it's changed, then perhaps I should assume it for value types as well, so that the behaviour is consistent.
View 2 RepliesI'm working on my first T4 code generation tool to add some Stored Procedure helper code to my project. I've created custom types (e.g. StoredProcedure and StoredProcedureParameter to help with my code generation and have included the assembly and namespace references in my code:
<#@ template debug="false" hostspecific="false" language="VB" #>
<#@ output extension=".generated.vb" #>
<#@ assembly name="$(TargetPath)" #>
<#@ import namespace="StoredProcCodeGenerator" #>
This allows me to use my custom types in my T4 template code. However, because my custom types exist in the same project as the T4 template code, I can't recompile my project once I run the template code without restarting Visual Studio. This isn't very much fun.
I read a great article that addresses this exact issue by using the T4 Toolbox, but it's not working. Either I'm implementing the VolatileAssembly directive wrong or the T4 toolbox simply didn't get installed. I'm not sure that the toolbox got installed correctly (I'm using VS 2010 on Win XP).
I need to compare two dictionary values if the types stored are equal, this is what i have
if gettype(Args(key)) = gettype(argtypes(key)) then
'' do something
end if
[Code]....
Public Class ExtendedDateTimePicker Inherits DateTimePicker
View 5 RepliesFor reasons that are beyond my control, I have three Projects. Projects A and B reference project C. Project A references project B so that it can open a large form in project B. I now need to open that large form from project C, but VB won't allow me to add a reference from C to B because that would create a circular dependency. I found a way around it, though. I created a Timer in A, and when I opened C from A, I passed in that timer. When the user performs a certain action, I enable the Timer from A, and this causes C to open B for me.
View 2 RepliesI have a project that I have created, it something like a contact database.It is complete with its own sql server database, and controls and forms.I kinda of understand that I can include this project into another project.This is the tricky part,Can I include my contact project into another project and add more items to the database and forms in a new project?What I'm after is like using classes.My contact database would be like the base class, and the new project would be adding more features to that project.
View 10 Repliesi was developing Voice Chat Application in visual Basic .NET 2008 i try a lot methods to make installer for it :
1- i add Project Setup Project for my Project for Visual Studio 2008 Deploy & setup Type Projects and make it with output option and detect dependices
2- i try make it with Setup Factory 8.2.1
3- i try with MSI Factory 2.0
4 i try with Setup Factory 6.0
and after making installer copying it to my test virtual Machine or my friend lap and install it i get this error when try to run my application :
[Code]...
Why this is not working any solution?
Private Sub DataGridView1_Selectionchanged(ByVal sender As Object, ByVal e As System.EventArgs)
con.Open()
[code].....
I have a Datagridview collections embedded in several Tabpages of a TabControl. I want to use to control Button to import data to the datagridview. Data is different for different datagridview. I want to know which DataGridView is currently shown (on the top) when I click the control button so that I can send corresponding data to it. What shall I do?
[Code]...
i can't get the data to be shown in the datagridview
what am i doing wrong here? i think the problem starts in the ---- if then statement
Private stylist As String
Private treatments As String
Private klantnaam As String
Private Collindex As Integer
[Code]...
I have a form consisting of datagridview and two buttons of update and load all.. I have used fillby method to obtain data from database. The query seems to be working fine, except that the data is not shown in the gridview. As in, for the qeury, if the returned rows are 2, it will show 3 rows in the gridview, but all empty.
Imports System.Data
Imports System.Data.OleDb
Imports System.EventArgs
Imports System.Data.OleDb.OleDbConnection
Imports System.Data.OleDb.OleDbCommand
[Code] .....
i am using this to send an email but i want a notification to be shown when the message was sent.
Dim message As New MailMessage
Dim smtp As New SmtpClient
message.To.Add(TextBox2.Text)[code]....
"For tax purposes an item may be depreciated over a period of several years. Write a program that request a description of an item, year purchased, cost of the item, the number of years to be depreciated (estimated life) and the method of depreciation (combo box), compute and display a depreciation schedule for the item similar to the schedule below. NOTE: FOR NEXT for Straight line method, DO WHILE LOOP for sum of years, DO LOOP UNTIL display table of depreciation."i don't know it this is correct 'cos when i run it, it doesn't show anything. when i clicked compute
Public Class prjactivity6
Dim intyearp%, intlife%, intmethod%, intstraightyear%
Dim dblcost#, dblstraight#
[code].....
I'm using Windows 7 Aero DesktopI've seen in many applications like Google Chrome, Microsoft IE that when a download is in progress, the windows taskbar shows the progress of it's download something like in green color.
View 1 RepliesI need a Timer, named tmrTimer to become disabled when a Message Box is shown, but I'm not sure how to write the If statement for it..
I know that it has something to do with If MessageBox.Show = True Then' This is where not the timer disabling..
tmrTimer.Enabled = False
End If
I am trying to create a new customised textbox using vb.net 2005 usercontrol. And also am new to .NETWhen i add the property Text() it does not shown in design modeThe user control code is like :
Property Text() As String
Get
Return MyText.Text
[code]....
I am trying to to loop through a dataset's value through the rows in a gridview and color in the text if that row matches.The code below works however whenever I change the page through the PageIndexChanging and this function is ran again, the coloring doesn't work anymore. It still loops through the gridview if there is a match but the effects are not shown.
--variable initialization class instantiation--
--code to connect to db here--
mySQLCommand.CommandText = "SELECT ..."[code]....
I could not find any remarks on MSDN ListView.Groups Property that empty ListViewGroup will be hidden. Is it by design, or I am missing something? My sample code below will show only "group 2" with item "item1".
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles MyBase.Load
'
Dim gr = New ListViewGroup("group 1")
[Code]....
Is there are any way to show ListViewGroup without adding dummy item
For now the only workaround idea I have is to use collapsible listview (Vista and up)
I have a ContextMenu in my form which I want to be shown all the time. But when I click one of its items or anywhere in the form it hides itself. Is there a way to prevent it from hiding?
View 1 RepliesI have a weird problem (probably only to understand) why in a test app the focus rect is not shown until I press the tab key. I want to show a dialog with two radioboxes and two buttons. When I display the dialog, I'd like to see a focus rect around my first radiobutton. (So that the user can see where the focus is.) I ordered the controls and set the tabindex property from 0 to 4 so that they are in the correct order. (radiobox 1 has tabindex 0, ...). When I show the dialog the first radiobox has the focus, but it has no focus rect around it. (Until I press tab key.) I created an completely empty winforms project (Visual Studio 2010), added the controls and started it. So there is nothing special at all.
Here is the code of my sample:
Public Class Form1
Private Sub Button1_Click(sender As System.Object, _
e As System.EventArgs) _
Handles Button1.Click
Me.Close()
[Code] .....
I am trying to create a datatable to be shown in a datagridview.. i have created a DataGridViewComboBoxColumn that has a data source and now i wanted to create a DataGridViewTextBoxColumn but i dont know how to make it take its data from a column in a table.. i did it with the comboboxcolumn but i coudnt do it with the textboxcolumn..
View 2 RepliesI have made report in crystal and call it from vb.net2010 but crystal report is not display, it is droped after some time when i am pressing the print button
i have put the code below to show report
--- the code
Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click
Me.Cursor = Cursors.WaitCursor
[Code].....