|
That's not part of the .NET Framework. That's a FrontPage library.
|
|
|
|
|
oops - sorry
You always pass failure on the way to success.
|
|
|
|
|
I'm hoping this is an easy question. I am converting data from and reading specific strings and replacing certain characters with other characters.
For example, currently I'm replacing a & symbol with a | symbol using the following code.
dim strTest as string<br />
... load strTest with a value from SQL ...<br />
strTest = Replace(strTest, "&", "|")
The code above works fine. Now, my question is, what do I do if the string has a " symbol in it. I want to replace the " with a | symbol. The code would look like this, but of course the compiler doesn't like this syntax.
strTest = Replace(strTest, """, "|")
Single quotes don't work either because the compiler recognizes this as a comment. How do I code a double quote?
Thanks for any help
Lost in the vast sea of .NET
|
|
|
|
|
You need to use 2 double quotes to tell the compiler that this should be interpreted as part of the string.
strTest = Replace(strTest, """", "|")
|
|
|
|
|
This...
KreativeKai wrote:
strTest = Replace(strTest, """, "|")
should be:
<br />
strTest = Replace(strTest, """", "|")</blockquote><br />
|
|
|
|
|
Thanks to both of you. I tried out the logic and it worked!
Thanks again
Lost in the vast sea of .NET
|
|
|
|
|
Im using a grid box that has a date and time format in one of the Columns
Im trying to archive a populate
Using vb.net
I placed a grid box on the form
Then I placed 2 textboxes 1 combo box 2 date pickers
I did a data bind so that when I click on a row the combo box shows the record number (pk) Item no of that row clicked
Below that are the
Name (Text box)
Description (text box)
Start date (date pickers)
End Date (date(picker)
How do I populate the name , desc, stdate , endate fields by just using the Item.index of the combo box then just changing the field to update (Which I Know how to do)
Please assist me wilt the population I really think it is difficult because of the date time picker
|
|
|
|
|
Hi all
anyone can help me Please
i have some problem to transfer data from vb application to excel file
textbox value into excel cell. i open excel file by using shell command but after open file how to add data from vb application to excell without delete or replace previouse data.
here is shell coding.
Dim Book1 As String
Dim Directory As String
Dim Program As String
Directory = Book1
Program = "C:\Program Files\Microsoft Office\Office11\Excel.exe "
Book1 = (Directory & "\Export")
Shell (Program & Book1)
Thanks for advance
___________
Khan786
-- modified at 6:56 Thursday 21st June, 2007
|
|
|
|
|
The shell command is useless. You need to use the visual studio tools for office to control Excel from yuor code.
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 )
|
|
|
|
|
|
|
Thanx Vinod
i hope that it will solved
|
|
|
|
|
Hi folks,
How do I change my application settings so that they are displayed properly as per the resolution. For example, I design an application with a 1024 x 768 resolution and then port my application to a system having 1280 x 1024 resolution. My application occupies the top left corner of the screen without getting maximized as per the current resolution.
You get the picture and now give me your resolution
Vinod
|
|
|
|
|
|
thanx. But by your answer it implies that I would not be able to do it in .NET 1.1. I thought there was some code snippet which could have given me some idea. Anyway Thanks once again.
|
|
|
|
|
You can do it in 1.1, it's just some of the controls I metioned arn't avalible (specificly the layout controls). You can still use Anchor, Dock and SplitContainer.
|
|
|
|
|
1.1 also has the anchor and dock properties.
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 )
|
|
|
|
|
It also has the Split Container
|
|
|
|
|
I use this to set the form size to a % of the screen size. It does not resize the objects but if you design your form with dock, anchor etc it works fine
Public Shared Sub SetFormSize(ByVal oForm As Form, ByVal nFactor As Decimal)
Try
Dim r As Rectangle = Screen.GetWorkingArea(oForm.Location)
oForm.Top = r.Height * nFactor
oForm.Left = r.Width * nFactor
oForm.Height = r.Height - (r.Height * (nFactor * 2))
oForm.Width = r.Width - (r.Width * (nFactor * 2))
Catch Exc As Exception
Throw Exc
End Try
End Sub
called by
clsUIUtils.SetFormSize(Me, 0.01)
Mark
Coding for the mobile goal posts
|
|
|
|
|
What i have to do to be able to sell my applications? i make an application an sell to example (Bank) is that illegal? Please answer...
|
|
|
|
|
Nobody is stopping you. You can certainly create an application in VB.Net and sell it.
|
|
|
|
|
Why would anyone stop you ? Even if you use the free versions, your code is your intellectual property and you can sell it if you like.
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 )
|
|
|
|
|
1) You have to develop the software yourself .
2) All Components and Design must be your creativity .
3) All third party components used must have enough permission from the owner.
that's it for you, hope you make a good selling out of it.
Develop2Program & Program2Develop
|
|
|
|
|
|
i need help on how to set up a timetable and the free time a on a day the teacher have referring to the timetable. can i do this using VB.NET. pls help
|
|
|
|