I have a Access program and I'm using VBA code in the background to run Winunzip using shell command. Well, the path of the .zip file has spaces in it and it's not recongizing the path as a valid path. Is there a another way to tackle this problem besides the shell?I can't us pkzip either. Has you can see I had to use progra~1 instead of Program Files.[code]
I have a POCO object and I want to mark a property as a key (see TestClass below).I'm getting the following error. 'Key' cannot be used as an attribute because it is not a class. C:UserszzzDocumentsVisual Studio 2010ProjectszzzzzzBOTestClass.vb
I want to use a value that is pulled from the SQL within the if statement. Ideally i want to do the equivalent of <% If DataBinder.Eval(Container, "DataItem.BookID") == 1 Then%> Is there a way to do this with the correct syntax?
Is there an ability in VB.NET to deprecate code?I know that in C# there are 'attributes', and tags in java; is there anything similar in VB.NET, other than leaving a 'todo:...?
I have a program that takes data from text boxes and exports them to a text file (all of this works). the problem I'm having is how do i mark the file for deletion? I couldn't find a tutorial on it.[code]
I have a DataTable which I want to check if values in three of the columns are unique. If not, the last column should be filled with the line number of the first appearance of the value-combination.
[Code]...
I solved this by iterating the DataTable with two nested for loops and comparing the values. While this works fine for a small amount of data, it gets pretty slow when the DataTable contains a lot of rows.My question is: What is the best/fastest solution for this problem, regarding that the amount of data can vary between let's say 100 and 20000 rows? Is there a way to do this using LINQ? (I'm not too familiar with it, but I want to learn!)
I have created a few WebRequest extension methods that support cancelling. Is it possible to mark related .net framework methods as Obsolete. That will allow other developers to get warning and encourage them to use a new extension methods.
In my application I have bound a datagridview to a SQL2005 bindingsource.I really had to change a database field (more length allowed) and now de DGV displays red exclamation marks and states: 'Colomn 'password' exceeds the MaxLength limit'. (the 'password'-colomn isn't even displayed, but that's a sidenote).I tried different things but can't get rid of the exclamation marks. how I can manage this. I really don't want to create a new DGV, because there a lot of code and stuff involved.
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim Response As Integer ' Displays a message box with the yes and no options. Response = MsgBox("Do you really want to exit?", Buttons:=vbYesNo) [Code] ..... How do I place that blue question mark symbol next to "Do you really want to exit?"
I'm trying to search a picture from a color or a color close to the original color and then mark it in the picture if it is in the picture. How can I do this?
I have a gridview as shown below. When the EmpType is contract the EmpID must be masked as "XXX"; for regular employees, actual EmpID should be shown. Also, when it is masked, I need to add a button control in the EmpID column.I need to do it using mark-up; not using code behind. How can we write the conditional logic for Gridview's ItemTemplate for this logic?Note: .Net 4.0
What would be the easiest way to have a NumericUpDown control showing a double quote " after the value? It's to represent a distance in inches.From MS Word: InchesNUD.jpg
Update: (Please vote to close) This question is unresolved, and is likely a list view bug.It can be replicated by using the example code from the MSDN link below, and adding this code after the list view initialization code:
In .NET you can mark certain methods as obsolete so that developers are alerted when they attempt to use the deprecated method.
<Obsolete("Do not call this method.")> Private Sub FormerMethod()
The thing is you can only do this within classes you control. What do you do when you want your developers to avoid using certain methods on classes provided natively in .NET or by a vendor?
For example, what if you want your developer to prefer some custom extension method on DataTable rather than Select. I'd hate to have to define a custom version of the DataTable class if only to deprecate Select. That would leave us having to police whether or not the custom table was being used.
imagine following situation 2 forms, one form with some buttons and another form with a RichTextBox on it, if i click on the buttons the text in the RTB changes. Now i want to mark some words in the RTB with the mouse. The form with the buttons is the active form, if i click in the RTB and try to mark something, the form gets focus and comes to the front but if i move the mouse nothing happens. I have to perform a second click at first to mark something.I already tried a lot of things like setting focus to the form if the MouseButtonDown event fires, but all of that doesn't work. The only possibility that works if i set focus to the form when ever the mouse moves over the form, but this is annoying, cause everytime i move the mouse on the form the form pops to the front.How can i manage to mark the text with one simple click? Applications like OpenOffice or Notepad++ are able to do this as well.
I am using Visual Studio/VB.NET 2008 and have a NumericUpDown control on Windows Form. I am forcing user to use Up/Down buttons to change the value, preventing direct entry of a value. This is accomplished be setting the ReadOnly property to True - so far so good. Is there a way to prevent the Insertion Mark from displaying? The Insertion Mark makes it look like the value can be edited, which is not possible with ReadOnly True.
i want to search "words with mark" in txt file.For example: i want to search: "t�m" in my txt file. but my code couldn't find that word, it could find a word "tam".[code]
how to split textbox example place a question mark in the place where you want to fill the number. if you want fill series like 1spider 2spider then type ?spider in textbox in the series box and type the from number and to number in the boxes anybody tell me example images below Textbox i want to know generate to textbox like this below image textbox
When I run this code, it gives me an error when vision_patid shows a value - 11BC. Incorrect Syntax '11' - Unclosed quotation mark after the character string ''. Code: query = "UPDATE tblProjectPatients SET " & _ "Yes ='" & CBool(DgvReturns.Rows(irow).Cells(2).Value) & "', " & _ "No ='" & CBool(DgvReturns.Rows(irow).Cells(3).Value) & "', " & _ "InV ='" & CBool(DgvReturns.Rows(irow).Cells(4).Value) & "', " & _ [Code] .....
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim SQLData As New System.Data.SqlClient.SqlConnection("Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|Database.mdf;Integrated Security=True;User Instance=True") Dim cmdSelect As New System.Data.SqlClient.SqlCommand("SELECT * FROM Table1 WHERE Date ="
I was looking at some existing code and stumbled across a variable declaration I didn't understand. public foo as Boolean? What does the question mark signify?