|
Make sure you are setting the .Text property to "" or String.Empty. You are attemting to set the Controls (TextBox1, TextBox2, etc.) to Nothing.
Example
TextBox1.Text = String.Empty
This also works
TextBox1.Clear
Hope this helps
"Some people spend an entire lifetime wondering if they made a difference. The Marines don't have that problem."
( President Ronald Reagan)
|
|
|
|
|
this is A weird way to use a service, I know, but I'd like to query/modify a property within a running windows service, from an interactive VB app.
I've crafted a service with a public property that return an object,
and I'd like to query the value of that object from another application.
Does any one know of a way to hook to the running service (call it by name or whatever) so I can call the property?
hey...slang is the vernacular FOR the vernacular...wow
|
|
|
|
|
Hello all, I received a .csv file containing the HTML code generated from running a web-based report. I need to parse the file to get rid of all the HTML, leaving only the viewable text. I would like to just run a macro to perform this but if someone knows another way, say in VB.Net, that will be fine also. Unfortunately I cannot attach the file due to the sensative nature of the data. Thanks in advance for any help provided.
Mark Oium
Mark Oium
|
|
|
|
|
simple answer:
copy the .csv to a backup file
open the copy in word and find/Replace "," with " ".
then rename the file extension to .html
then open it with your favorite browser.
if the information displays as desired,
copy out the desired text (cntrl + a or Shift + End help a lot)
and paste it into another word or text document.
that should work...
as for an script or applet, that would take some time and trouble.
depending on the html, it would probably be quite dificult to define all the things you need to strip out. probably longer than editing it cy hand...
hey...slang is the vernacular for the vernacular...wow
|
|
|
|
|
How to you a command button to select a picture to add it to a database.
|
|
|
|
|
the answer is multipart.
1) use a fileBrowseDialog to browse to teh pic. u can find samples all over.
2) open a filestream to the file and read it into a bytearray (or whatever is compatile with your dataset schema). reading a pic is the same as reading a text file if you stay at the bin/hex level. it's just a datastream...treat it like one.
3) add the bytearray to your dataset, and update.
hey...slang is the vernacular for the vernacular...wow
|
|
|
|
|
I'm running VB6.0.
I have a form that I need to be able to Maximize and Minimize, but I also have a Form.Resize procedure.
During runtime, when I click the Minimize or Maximize button, I get an error (non-fatal) that says "A form can't be moved or sized while minimized or maximized". It's obviously trying to run my Form.Resize procedure.
When I click Maximize, I want it to run the Form.Resize function because I do not want the form at its maximum width (full screen).
When I click Minimize, I want it to be in the toolbar only, with no error.
Here are the questions:
1. Is there a way to create a MaxWidth for the form, so when I click Maximize, it only goes to that width.
2. Is there a way to NOT run my Form.Resize when Minimize or Maximize is pressed or have it run without giving me the error?
Thank you.
|
|
|
|
|
hi, how i can deployment to project has crystal report .
i install frmwork but my crystal report not run and display error message :: file or assembly name crystaldecions.windows.forms , or one of its dependencies ,was not found.
123
|
|
|
|
|
did you create a .net setup project?
if not, do so. you'll love it. many online tutorials available.
if you have, look into merge modules.
Good luck
hey...slang is the vernacular for the vernacular...wow
|
|
|
|
|
I have signed up to a free web hosting site, but it doesn't support code behind. Is there any way around this, becuase it will accept my webform1.aspx file, but not my webform1.aspx.vb file.
|
|
|
|
|
|
When you publish the web site there is no reason to publish the code behind files, as all the code in the code behind files are compiled into the dll files. You only need to publish the aspx pages and the dll files in the bin folder (and other files that you use, like css files and images).
---
b { font-weight: normal; }
|
|
|
|
|
1. can any body tell me how can i create a RunTime(Dynamic) Menu just exactly like www.Agentimage.com have in VB.Net.
2.How can i connect MySql with ASP.Net. i tried but failed.
Aavesh
|
|
|
|
|
Hi All,
While I run the application I got bellow error
The application failed to initialize properly(0x0000005). Click on OK to terminate the application
please suggest me..
Thanks
sonj
|
|
|
|
|
In the short term my suggestion would be to click on the OK button.
In the medium term perhaps posting a code snippet or giving us as much details as you can may help in diagnosing the underlying cause of the problem.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Hi,
I did't written any major code except messagebox.show("Hello World"). Any idea
sonj
|
|
|
|
|
hi again
i dont know why i need to do everything with C++ . I tried to hook the keyboard keys and i found this page http://www.codeproject.com/system/KeyHook.asp but its with C++ language, any idea to do that with VB.NET or C#
plzzzzzzzzzzzzzzzz
|
|
|
|
|
how can i monitor process creation ?
in another words, i wanna something motify me if a process such as notepad is creaded
|
|
|
|
|
|
i want to know that how to monitor processes of a local system.
i have got your article but Given link is not running.
so please check it's needful.
Thanks
Anubhava dimri
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
I actually rewrote the service for VS2005 from the original VS2003 version that was based on this old post. I followed the advise of the following link:
http://www.dotheweb.net/ARTICLES/DOTNET/SERVICES.ASPX[^]
I have it up and running and working well.
Kevin
Lost in the vast sea of .NET
|
|
|
|
|
What is the difference between "FIELD" & "PROPERTY" in vb.net?
Chitra Dash
|
|
|
|
|
Basically, a field is a member variable that is only used within the class, whilst a property exposes a field to external users of the class.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
|
|
|
|
|
Hi Steve,
Thanks for the answer & the wonderful quote. Can you give me some idea of get & set difference between the above two.
Thanks & Regards
Chitra
|
|
|
|
|
Assume that we have a class Class1 and that there is a member variable _counter which is an integer only used inside the class. Further assume a second member variable _timeStamp of type Date and we wish callers of Class1 to manipulate it. The definition code would be something like this: (NB: code may not be syntactically correct)
Class Class1
Private _counter As Integer ' this is a field - not visible outside
' the class
Private _timeStamp As Date ' so is this except it will only be
' visible to callers via Get and Set
Public Property Get TimeStamp() As Date
' Return the value of the backing variable
TimeStamp = _timeProperty
End Property
Public Property Set TimeStamp(ByVal newTimeStamp As Date)
' Set the backing variable to the value in newTimeStamp
_timeStamp = newTimeStamp
End Property
Public Sub DoSomeProcess()
' Note that _counter may be used but not directly
' manipulated by any caller of Class1's Subs and Functions.
_counter += 1
End Function
End Class
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
|
|
|
|