|
Hi arifliminto86,
This worked fine when I tested it:
Dim myFSO As Object
Dim f As Object
Set myFSO = CreateObject("Scripting.FileSystemObject")
Set f = myFSO.GetFile("c:\test.txt")
Debug.Print f.DateCreated
Greetings, Thomas
|
|
|
|
|
I have problem with removing row(s) from datagrideview in VB.Net. please give me some idea.
chivin
|
|
|
|
|
told ur problem
use following statement
Datagridview1.rows.clear
or
Datagridview1.Rows.RemoveAt(1)
hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
I'v been working on a project in wich every form (or almost every form) inherits from 1 main form (frmClientForm). Untill now I havn't had any problems with that (just add new item -- inherited form ...).
But now I get an error just before I would get the window in wich to choose the form to inherit from:
Unable to load assembly 'path to my exe'. Ensure that the file is a valid .NET Framework assembly.
The file (my exe of the prog) is deffinatly a valid assembly since its being build by visual studio itself.
The file exist.
I tried rebuilding/compilling/clean solution/project nothing seems to work.
The form to be inherited from is in the same project as the form that inherits.
after I press OK I still get the window in wich I can see forms in other projects (but same solution) but not the forms of the project in wich I am adding the new form.
Anyone have any idee what the cause of this error is?
|
|
|
|
|
Microsoft has a hotfix for this issue:
http://support.microsoft.com/kb/912019/en-us
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
thanks that did the trich (at least for the moment)
|
|
|
|
|
How to move all files in a directory to another directory?
And how to rename directory and file?
|
|
|
|
|
I assume your talking about VB.Net and not VB6.
Check out the classes under the 'System.IO' namespace.
THeres some pretty obvious ones like 'File' and 'Directory'.
|
|
|
|
|
|
You should specify the language your asking about when posting in this forum.
Most people will assume VB.Net if you don't say which.
|
|
|
|
|
|
VB6 is a dead language. You should always specify that you want VB6 help, otherwise people will assume .NET.
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,
I would like to me bold some part of String data type and make some part with color,using vb.net code.
Would you please help me to get that.
thanks,
RB
|
|
|
|
|
When adding Bold and Colour to a string you normally do it when its displayed.
If your displaying in the Console then check out the properties on the System.Console class.
If your making a WinForms app you'll want to look at the RichTextBox control.
|
|
|
|
|
How you do that depends upon the container that's showing the string. If it's a web browser, it's going to follow the HTML rules for formatting. If RTM, the method of formatting changes. If A TextBox, changes again...
What you want doesn't have any meaning as the String type doesn't support any kind of formatting. It's up to the container showing the string that dictates how this is going to be done.
|
|
|
|
|
Thanks for you help. Actually, I'm writing a window console program to send mails. Now, I want to make bold of Subject and make some body text with color. I'm using the String type for Subject and Body variables.
Please help me .
Thanks in advance !!
RB
|
|
|
|
|
Emails don't support any formatting in the subject line. You simply have no choice there.
Colorizing text in the body of the email would require that you send the body in either RichText format or as an HTML page. In either case, the receiver has to support that kind of email. HTML is easy. It's just like any other HTML page. Just use the correct HTML tags around the section you want to change color. There's HTML tag tutorials all over the web.
|
|
|
|
|
Dear Dave Kreskowiak,
Thanks for your help.Sorry to bother you again. I'm still comfused. Let me get clear. So, do I need to create a richtext box or HTML page?
|
|
|
|
|
Do you need to create a RichTextBox?? No. You just need to add the formatting codes to the string that will tell a RTB how to properly format your message.
You can either create a RichText document or an HTML page. The choice is up to you. HTML will probably be easier since the tags are nothing more than this: <b>bolded text</b>.
|
|
|
|
|
Hi,
I am using a session array, and I populate it like this:
Dim nodesArray() As String
Dim i As Integer = 0
For Each node As RadTreeNode In nodes
nodesArray(i) = node.Value
i += 1
Next
Session("NodesArray") = nodesArray
When I try to print the array count it gives me errors. Can someone please let me know hot to do this. I did it currently like this:
Dim nodesArray() As String
nodesArray = CType(Session("NodesArray"), String)
Response.Write("nodesArray.Length = " & nodesArray.Length)
Regards
ma se
|
|
|
|
|
There is an ASP.NET forum.
What is the error ? It looks to me like you're casting the variable to a string, instead of a string array. Does CTyle return a single string here, or Nothing ? I'd guess at the latter, hence the error ( which I assume is an object reference not set exception )
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 )
|
|
|
|
|
What's wrong with putting the question here?? It's VB code and this is a VB forum??
The error is:
C:\Inetpub\wwwroot\...\PowerSearch.aspx.vb(383): Value of type 'String' cannot be converted to '1-dimensional array of String'.
|
|
|
|
|
Yes, that's exactly what I said. You're casting to a string, instead of an array of strings.
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 )
|
|
|
|
|
I'm not sure how to do it?
|
|
|
|
|
I'm sorry, I could only guess, I don't do VB.NET. I would guess that instead of String, you need String() in your cast statement. Given that VB.NET is weakly typed, you may not need the cast at all, do you ?
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 )
|
|
|
|