How To Change A Code
Jun 18, 2010I would like it to be a save file code not save as.
Dim Save As New SaveFileDialog()
Dim myStreamWriter As System.IO.StreamWriter
Save.Filter = "*.HTML|*.HTML|All Files *.*|*.*"
[code].....
I would like it to be a save file code not save as.
Dim Save As New SaveFileDialog()
Dim myStreamWriter As System.IO.StreamWriter
Save.Filter = "*.HTML|*.HTML|All Files *.*|*.*"
[code].....
I'm getting familiar now with using the Dataset Designer and how it makes for quick and easy updates and query of tables. I use to use the OleDB commands and leave the Connection String as a Global Constant so I can easily change it if the server name changes, or if we have to re-direct the .NET to another instance of the database.
But now that I use the Dataset designer I'm concerned that I maintain flexibility and support in the long run. how the Dataset designer works and where it stores it's connection string info? And how difficult that would be to update. It looks like I modify the App.config file, but I'm unfamiliar with this.
What am I getting myself into? It looks like a standard XML file. Is that it?
I have a code in VB that looks like this:'Server.Transfer(txtUser.Text + "_page.aspx")which is taking a forms authenticated user to their page. For example if John logs in, it will take him to john_page.aspx.How will I be able to integrate this in a PHP login script?I'm trying something like:header("location: $member ._page.php");but I don't think I'm doing this correctly.
View 1 RepliesHow can I change my code # to Code & in All the text files within a folder
View 10 Repliespublic void ChangeList(IEnumerable<LineInfo> newLineList)
{
if (InvokeRequired)
{
BeginInvoke((Action<MainForm, IEnumerable<LineInfo>>)((t, e1) => t.ChangeList(e1)), this, newLineList);
return;
}
}
Basically I'm trying convert the following....
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
[code]....
How do I change the program path '"logic.txt", "G:"' in the code below to the OpenFileDialog.FileName? Cos when I tried it, I receive String conversion errors and I tried altering the codes but it didn't work out well. [code]...
View 1 RepliesI have an image scanned in 300 dpi. I want to change the DPI of the image to 72 through code. Seems there used to be a function called Image.SetDPI, but I cannot find it anymore. All I can find is Image.SetResolution(xDPI, yDPI), but that actually changes the SIZE of the image, meaning it cuts out a portion of it, without changing the DPI. Anyone know what function will accomplish this in Visual Studio 2008?
View 2 RepliesOption Explicit
Private Const NULLPTR = 0&
' Constants for DEVMODE
Private Const CCHDEVICENAME = 32
[code]....
I completed my first college assignment using visual basic 2005 express (Their first lesson was same)
and in order to submit it to my my proffessor I have to change the source code from a .sln to a .c or .cpp,how do I do this?
does any one know the code to turn volume up and down in a music player?
View 2 RepliesI need to write a windows application that will change certain settings in the internet exxplorer security tab.Could this be done?
View 4 RepliesHow can I change the HTML code via VB .Net code?For example,
on .aspx file I have:
<div class="Menu_On"><asp:LinkButton ID="Link_Menu1" runat="server">Menu 1</asp:LinkButton></div>
[code].....
In vb6,I wrote those code: statusbar1.text=Inet1.Open[URL]
In vb2008,it had statusbar,but it hadn't "Inet",I don't know how to change those code. ps:I'm a beginner,maybe this problem it's not a big problem,but I really don't know how to solution this problem,
Suppose I have the following HTML code:
[Code]...
I need change this code to calculate crc16 form file, I found on net only this example. My actualy knowledge in programming is totaly green.
Public Shared Function GetCRC32(ByVal sFileName As String) As String
Try
Dim FS As FileStream = New FileStream(sFileName, FileMode.Open, FileAccess.Read, FileShare.Read, 8192)
[Code].....
I have built a web browser and my new window function is working great, it allows me to open popups that use normal https links without a hassle. But I am having some problems when the links contain java code (like the one below:
("javascript:var%20x=window.open('https://auth.det.nsw.edu.au/pls/orasso/orasso.wwsso_app_admin.fapp_process_login?p_app_id=F0CB644DAE48EDE00D83EFE378FD435E','My_Staff_Email','menu=no,toolbar=no,resizable=yes,scrollbars=yes,status=yes')"
The reason why this operation fails because the string that is being passed to the Navigate method is not an actual URL.It is apiece of Javascript code which needs Javascript engine to process it firstly. Apparently, Webbrowser.Navigate() does not have this functionality,so it fails. If you simply put the string in IE�s address bar and press enter, IE will also not able to open it. The reason why it does work if you access the HTML page in IE and click the hype link is because this will make IE to use Javascript engine to process the code.
Since the API(Webbrowser.Navigate) does not have the functionality to process Javascript code,build up my own code to process the string which you get by using the GetAttribute method. The code reads the string and finds the actual URL and passes it to the Navigate method.
The only problem is that the javascript code constantly changes (varies upon what link is opening) and the url itself will change depending on what the link is linking to! Below is the code that I use at the moment to get the full link .finding the actual URL in the javascript even with the javascript differing from link to link).
Dim myElement As HtmlElement = CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Document.ActiveElement
Dim address As String = myElement.GetAttribute("href")
I'm using the WebBrowser component to view specific directories on my hard drive, I was wondering if it would be possible to change the view of the files through the code (Thumbnails,details,list...). In addition, Is it possible to delete a file through the code that is currently selected in the webBrowser window? I know there are alternatives to using the webbrowser control as a file explorer but I really like being able to change the views of the folder contents, the alternatives I have seen so far only allow for list views.
View 2 RepliesHow can i change textbox BackColor in code-behind to something like this:
[Code]...
how to convert this code in vb.net to show only time instead of date and time in vb.net
Dim UTCTime As Date = Date.UtcNow
Dim IndianTime As DateTime = UTCTime.AddHours(5.5)
TextBox1.Text = IndianTime
Here is my code to backup my music. But, there is a problem, and if I change the code, it will not allow me to backup my documents or my pictures.[code]...
View 1 RepliesI am newbie using asp.net I want to ask on how to change color of the label with some conditional statement. For e.g if the stock is below 20 then the label will became red if not then it's black.
View 1 RepliesI'm have a list box where I want my data bound to a data binding source. Easy enough, just set it in properties. But I want to be able to change the values to a different binding source when I click a radio button. In other words, for each radio button I want a different set of data in my list box.[code]
View 2 RepliesHow do i change the font style using code ? I want to display text in a textbox (Like google has in there search box) in italic style but i want normal text when the user types in the textbox.[code]...
View 18 RepliesI want to change the IsNumeric to string in the code below but IsString gives an error how can i go round it Private Sub txtprojtypenw_Validating(ByVal sender As Object, ByVal e As
[Code]...
if i want to change the picture box image with code, where should i put the image files so it doesnt matter where the person installs the program?
for example:
onlinepic.Image=("IMAGE HERE")
like, isnt there a way to import pictures into your project or like the bin thing or whatever?
im currently working on a program which prints serial text to an aplication like note pad. the problem im having is that i cant figure out how to change which serial comport is being used in code. i want the user to chose the comport with a check box.keep in mind that COM1 in my code is what i called my check box. here is my curent code:
Public Class Form1
Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk
Shell(OpenFileDialog1.FileName, 1)
[code]....
I made a simple change to the coding. I changed a file extention from .s to .csv and now I get an error - "Illegal Characters in Path" grrrr.I get that error when the file path contains a space.
View 4 RepliesI'm wondering, is there a utility out there that will let us select a block of code and be able to replace it?
If there is none then I would want an idea on how can this be done so I could make a small utility for this task.
I want a multi line textarea using VB.net.I have used textarea in html before but I have never used it in VB.net I tried:
<text area id="TA" cols="100" rows="20"></textarea>
I introduced space between text area only coz I cud not write it other wise in this forum.. in my code there is no space. But I cannot change the value of textare using my code behind file.