Disable Line Of Code?
Mar 26, 2012[code]...
i wanna make it so i disable or maybe comment out line of codes 4 5 6 in the code but also make them work again ...decomment them.set Site values in FTPWebRequest in
[code]...
i wanna make it so i disable or maybe comment out line of codes 4 5 6 in the code but also make them work again ...decomment them.set Site values in FTPWebRequest in
I am using the given code to copy my database files...it works like a charm in debug mode but as soon as I create a setup, it stops working. The error is
"Database Detach Failed"
I tried checking the code line by line and found that the code does not enter the IF block.I have no idea why.
Public Sub bk()
Try
Dim strDatabasePath As String = My.Computer.FileSystem.CombinePath(My.Application.Info.DirectoryPath, "LIC.mdf")[code].....
I have a graph created with MS Chart like the following picture. As you can see the vertical lines are messed up with value of the top of each bar.
Here's the mark-up for the graph:
<asp:Chart ID="chtNBAChampionships" runat="server">
<Series>
<asp:Series Name="Championships" YValueType="Int32" ChartType="Column" ChartArea="MainChartArea" IsValueShownAsLabel="true">
[Code].....
I don't want the display the vertical line because it's messed up with the value on top of the each bar. How can I disable the vertical line?
I find that each time there is a new line when enter key is press in VB intellisense is annoying. Although space is ok, but each time it has a new space and I have to press return to remove it, which is also inconvienient for multiple selections.
View 1 RepliesIs there a way to show the line number of the line of code that caused an exception within a Try...Catch block?
View 5 RepliesI am using WebBrowser1.DocumentText to get a websites source code, and then parse a string. I am trying to view the source line by line, and doing it as follows:
[Code]...
However what is displayed is each character from the source code, rather than the line. I am making the client log into a website, and the needed value from the source code is then parsed, so I need to use the WebBrowser type to get the source code.
Is there a way to disable the new VB 2010 implicit line continuations feature in Visual Studio 2010. We are using an TFS 2008 built service which doesn't support the new feature (sources in VS 2010 without errors getting built errors in TFS 2008 built service / we cannot update to TFS 2010 built service).
View 6 RepliesI am new to programming- basically I have a richtextbox1 with some data from the database,but when you scroll it scrolls 3 lines, whereas I want to scroll only one line at a time.
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Dim mySelectQuery As String
[code].....
show me a simple code for downloading a file from internet with a URL,Line by Line with streamreader?
View 6 RepliesIf anybody is having code for comparing files line by line using vb.net.
View 2 RepliesI have this string just down loaded of a Unix server. I would like to remove the box (0x0A) Unix end line code; then replace it with CR+LF normal ASCII code. Also, I would like to do the replace before I save the data, while it in memory.
View 14 RepliesIs there a way to disable an asp.net dropdown list from the vb code behind?
<select id="reassign_reason" name="reassign_reason">
This is the name of my drop down list and I tried this in the code behind in vb.net
reassign_reason.disabled = True
How do i disable date - time properties in Windows 2000 or XP from vb.net code?
View 1 RepliesI wonder if it's possible to prevent Visual Studio (2010) from automatically updating code when I change control names? [code]...
View 8 RepliesI would like to disable a specific items from DropDownList. I have below code but it does not working. So, need someone to told me what I'm doing wrong. DropDownList have 5 items.And, I'm getting error:Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index
Protected Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged Dim X As Integer = 0 <> 1 DropDownList1.Items(X).Enabled = False End Sub
But, if I add a different value for X, then it disable 1st and 2nd item. Protected Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged Dim X As Integer = 0 or 1 DropDownList1.Items(X).Enabled = False End Sub My goal is if I would have a 365 items in DropwDownList to disable items for example between 120 and 150.
I have created a DLL that contains basic functions used in my projects. With the DLL I:Compiled it as a Release Moved the .dll file to another folder Deleted the .pdb files in the binRelease folder When I add the reference of this DLL to my projects and I debug my code, I step through line-by-line and when it comes to a function from my DLL, it actually opens up the source files of my DLL and debugs line-by-line in the DLL source code.
This is REALLY annoying for my purposes and I have tried many things now to disable the debugger stepping into my DLL code. I did a text search in the DLL file and found it stores the path of the project folder.
So far the only thing that's worked is moving/renaming the folder where the DLL project source files are. But everytime I re-build the DLL, once again I would have to move/rename the folder again as it's updated the location of the source.
I am confused what will happen, when I disable a timer. Will it finish the process and then disable or will it immediately disable without completing process? for example
[Code]....
I want to run getMessage from somewhere else, so I need to disable timer during that time to be asured not to override anything and also before timer disable it should complete that function code.
I am a beginner and i have a simple question. How can i run code in VB.NET line by line?
Here is an example Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code]...
When i click the button the text "Start" will be displayed in TextBox1 only after the whole event has finished, after the webpage is loaded in RichTextBox1. What i need is the text in TextBox1 displayed before it starts downloading the webpage in RichTextBox1.
have a question about the program jumping to a line of code and using that.Here is an example:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Enabled = True
[code].....
to disable right click and to disable the start button and task bar?
View 4 RepliesI want to do this:
lblQuestion.Text = "Text (insert line break) More Text"
literal.Text = (gridView.Controls[i] as CheckBox).Checked ? "True" : "False";
How to convert this line to VB.Net syntax,
I'm looking for the C# equivalent of the line below.
If New FileInfo(c:images est.jpg).Length < 25 * 1024 Then
Me.pass = Conversions.ToString(CDbl((((Conversions.ToDouble((4 & 3)) - Conversions.ToDouble(4)) + (Conversions.ToDouble(2) * Conversions.ToDouble(1))) / Conversions.ToDouble(2))))
[code].....
we have Form1 and in this form we have several Subs like this:
Public Sub Sub1
Dim a,b,c as integer
a=1
b=1
[code]....
I want to put into str1 and str2 as strings the lines below specifying only the line number of the form where these particular instructions are found
Example:
str1="if a+b=c then msgbox("Correct")"
str2="if a2+c2=b2 then msgbox("Incorrect")"
Any function to do this?
I am converting a codeblock from C# to VB.NET using the All is going well except for one line which I cannot figure how to convert:C# source
result.DrawPolyline(Array.ConvertAll<PointF, Point>(pts, Point.Round), true, new Bgr(Color.Red), 5);
Using the converter gives this
[code].....
Does anybody know how to ignore a line(s) of code after a line(s) has executed. Let say you have a button1, and two CheckBoxes. By clicking once button1, cheheckbox1 checked. By clicking agin button1, then CheckBox2 checked. You will probably say that I can do that in diferent way, but it isn't the solution of this problem that I want. This is only an example.
View 11 RepliesHow would I write the 3rd VB code in C#?. I can't find anything on Google.
Imports XL = Microsoft.Office.Interop.Excel
Public Class LicenseRenewal
' The line below to C#
Private xlRangesForRenewal As New List(Of XL.Range)
This link offers sample code to infer the schema of an XML file, in VB.NET. One particular line fails in my translation to C#, namely,
Dim schema As XmlSchema = schemaSet.Schemas()(0)
My translation is
XmlSchema schema = schemaSet.Schemas()[0];
[code].....
I am trying to make a long line of code apear on more then one line.How do I make this:
Do Until Counter1 >= Wash1
Into this:
Do Until Counter1
[code].....