|
u r true dave
bu the thing is how can i implement the " view source " technique just as a ie does. cause. i have used all the techniques. but in vain. we require a url to get the content. but the thing is without the url i need to do this.
there is no such thing as good or bad.
|
|
|
|
|
I've given you the only two options you have for getting the source. You seem to be ignoring what I'm saying.
You either have to download the page using the HttpWebRequest, or you have to look at the DocumentText property of the WebBrowser control you used to download the page.
|
|
|
|
|
thnaks for that dave.
have completed the task. have done it in vb.net windows application.
but now a new task has come into being. taking the textfile data and put it in the tables
there is no such thing as good or bad.
|
|
|
|
|
i place the belove code in my component
Imports System.ComponentModel
<category("button"), description("gets="" or="" sets="" the="" text="" of="" button.")=""> _
Public Property buttonText() As String
Get
Return _Text
End Get
Set(ByVal Value As String)
_Text = Value
End Set
End Property
<category("button"), description("gets="" or="" sets="" the="" tagof="" button.")=""> _
Public Property buttonTag() As String
Get
Return _Tag
End Get
Set(ByVal Value As String)
_Tag = Value
End Set
End Property
But it is not grouping the buttontag and button text property.Anything additionally i want to add
|
|
|
|
|
|
Hi, if You want to group properties You can use the Category-Attribute --> e.g.:
<Category("MyPersonalCategory")> _
Public Property buttonText() As String
Get
Return _Text
End Get
Set(ByVal Value As String)
_Text = Value
End Set
End Property
|
|
|
|
|
If you're going to post code with < and > characters in it, make sure you check the box that says "Ignore HTML tags in this message (good for code snippets)" before you click the "Post Message" button.
|
|
|
|
|
hello frnds,
i am using vb.net 2.0 and doing a grid application
after i clicked on a grid cell it is editable and i can able to enter the data there,
when i going to enter some data can i get the event like
keyDowm() or same something....
i want to validate that cell...
please.......... help
thankx in advance ,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
A little Google goes a long way. Click[^] for an example.
|
|
|
|
|
Hi all,
I am working on an application that is ever growing in functionality. I have started writing it a couple of years ago. To simplify coding, I have also created several small classes that allow me to manipulate strings and such, which I can then call from the rest of the code.
When calling a standard .NET class in the code editor, you usually get a short explanation of what a certain property does, when you leave it selected.
Can anyone tell me whether it is at all possible to mimic this with self made classes, and if yes, then how?
A simplified example:
Public Class DateString<br />
Inherits System.ComponentModel.Component<br />
Public Shared ReadOnly Property ToDayLong() As String<br />
Get<br />
Return LongNumber(Now.Day)<br />
End Get<br />
End Property<br />
Public Shared Function LongNumber(ByVal value As String) As String<br />
If Len(value) < 2 Then<br />
LongNumber = "0" & value<br />
Else<br />
LongNumber = value<br />
End If<br />
End Function<br />
End Class
Where / how should I write the explanation?
All suggestions appreciated.
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
In C#, you put three / for a comment, so instead of //, it's ///, then it autopopulates with all the stuff you can fill out for auto generated docs and also the intellisense. I'm not sure what it is for VB.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Christian,
Thanks for the suggestion. I had forgotten that it is called intellisense. I just looked it up, and unfortunately it apparently is not supported in VB at all. I guess I'll just rely on the good old gray matter.
Thanks anyway though,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Hi friend,
We can write comments by using single quotes. For example : -
Public sub getMax()
'This is to get maximum number
Useful codes.
End Sub
OK. Waiting for next question.
|
|
|
|
|
Okay friend...
I am sure your IQ is twice as high as mine, but I am also sure that my question was not that unclear.
My advice is free, and you may get what you paid for.
|
|
|
|
|
If this is VB 2005, type the comment character three times and then press enter in front of the class or method. It will produce an XML comment block. The stuff you type in the summary element is what appears
VB 2003 does not support XML comments unless you install the VB Commenter add-in.
Here's a VB 2005 example from a method I wrote:
''' <summary>
''' Converts a database column value to a nullable type instance.
''' </summary>
''' <typeparam name="T">A generic value Type. See generic constraint in function signature.</typeparam>
''' <param name="dbValue">The database column value.</param>
''' <returns>An instance of a nullable type containing the underlying database column value.</returns>
''' <exception cref="System.ArgumentException"></exception>
''' <remarks>A database null (DBNull) is converted to null (Nothing in VB).</remarks>
Kevin
|
|
|
|
|
Hi Kevin,
Nice one, thanks. I am indeed still on 2003, so I am going to go and play around with the VB Commenter, and switch to 2005 asap.
Cheers,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
BTW, you might also find this tool handy.
http://visualstudiohacks.com/CRDocumentor[^]
It works with both VS 2003 and 2005 for both C# and VB (with VB Documenter add-in for VB 2003). It's handy for checking that you're comments look right, as reading the raw XML in the editor is. It's also dynamic, i.e., updates the display as you write the comments.
I was using VB 2003 for some months recently and I can confirm that it works fine.
The DXCore library referred to in the article is a free download. But if you already have one Dev Express's Refactor! tools then it's already on the system. Once there then plug-ins like CR_Documentor are just DLLs that you manually place in the relevant folder.
Kevin
|
|
|
|
|
Hi Kevin,
Thanks for this suggestion also. I got the VB Documenter, you suggested first, to work very nicely. I will definitely check out this link too though. Creating some documentation for my app is long overdue.
Cheers,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
hi everyone,
how can i determine the extension of any file.
what is the method to get the extension of any file.
Rupesh Kumar Swami
Integrated Solution,
Bikaner (India)
|
|
|
|
|
dim str as string = path.GetExtension("Rupesh Kumar Swami.extention")
|
|
|
|
|
Thanks sonia
by the way argument for GetExtension method is good
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
|
Hi All,
I have build a window service with timer in it and i want to enter log after every 5 minutes,so I have written code in Timer_tick function , but It's not working ,Can I do that way , Or there is another way of doing it.
Thanks & Wishes
Navneet Hegde
Nashik(City Of Pilgrimage)
Develop2Program & Program2Develop
|
|
|
|
|
send me the code ....I will ty to rectify it.
|
|
|
|
|
Hi Sonia,
Namespace AlertService
{
public partial class AlertService : ServiceBase
{
public AlertService()
{
InitializeComponent();
}
protected override void OnStart(string[] args)
{
// TODO: Add code here to start your service.
timer1.Enabled = true;
}
protected override void OnStop()
{
// TODO: Add code here to perform any tear-down necessary to stop your service.
timer1.Enabled = false ;
}
protected override void OnPause()
{
timer1.Enabled = false;
//base.OnPause();
}
protected override void OnContinue()
{
timer1.Enabled = true;
//base.OnContinue();
}
private void timer1_Tick(object sender, EventArgs e)
{
eventLog1.WriteEntry("Hai it's now " + DateTime.Now.ToString());
}
}
}
This is what i have coded , Installation is working well with custom Event log , Start , Stop Pause , Continue is Logged but Only the Timer is not working
Regards & Wishes
Navneet Hegde
Nashik(City Of Pilgrimage)
Develop2Program & Program2Develop
|
|
|
|