" Problem
" Problem
" Problem
" Problem
" Problem
" Problem " Problem " Problem " Problem " Problem " Problem " Problem " Problem
" Problem " Problem
" Problem
Go Back  Xtreme Visual Basic Talk > > > " Problem


Reply
 
Thread Tools Display Modes
  #1  
Old 03-20-2010, 12:48 PM
kalanon kalanon is offline
Newcomer
 
Join Date: Mar 2010
Posts: 7
Unhappy " Problem


Hello . i have problem .
i want to change the textbox text to : "<a href="..."><img src="..."><a/>"
but in this text , there is 4 " . so vb shows an error message !
please help me .
thanks
Reply With Quote
  #2  
Old 03-20-2010, 12:56 PM
Rockoon's Avatar
Rockoon Rockoon is offline
Joseph Koss

* Guru *
 
Join Date: Aug 2003
Location: Unfashionable End
Posts: 3,615
Default

use a double double quote

"this is an ""example"" you might try"
Reply With Quote
  #3  
Old 03-20-2010, 12:56 PM
jpaugh78's Avatar
jpaugh78 jpaugh78 is offline
Senior Contributor
 
Join Date: Dec 2003
Location: Columbus, Ohio USA
Posts: 1,129
Default

You have to put 2 quotation marks together ("") to display 1 set in the text box.

so your code would look like:
Code:
TextBox1.Text = """<a href=""...""><img src=""...""><a/>"""
__________________
Did you Google your question before posting it here? Remember, Google is your friend. ;)
Reply With Quote
  #4  
Old 03-20-2010, 10:16 PM
kalanon kalanon is offline
Newcomer
 
Join Date: Mar 2010
Posts: 7
Unhappy new problem !

I used this code and it " problem has beed okaied . but it has a new problem and i can't find it , can you help me ?!
source file : http://masoudalemi.persiangig.com/Download/Projects.zip
many thanks to all friends .
Reply With Quote
  #5  
Old 03-21-2010, 06:11 AM
snarfblam's Avatar
snarfblam&quot; Problem snarfblam is offline
Senior Contributor

Forum Leader
* Expert *
 
Join Date: Apr 2005
Location: USA
Posts: 896
Default

What is the problem? Also you can upload the zip file directly to the forum.
__________________
C# _VB.NET _
Reply With Quote
  #6  
Old 03-21-2010, 09:21 PM
kalanon kalanon is offline
Newcomer
 
Join Date: Mar 2010
Posts: 7
Default new problem

ok , get it !
Attached Files
File Type: zip Projects.zip (1.4 KB, 1 views)
Reply With Quote
  #7  
Old 03-22-2010, 07:30 AM
PlausiblyDamp's Avatar
PlausiblyDamp&quot; Problem PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,058
Default

You do realise that is a vb6 project you have attached, yet you have posted it in the .Net section - you might want to get a mod to move it to the correct place so you will get responses from the correct people.

It also helps if you give a little detail about the problem you are having as "but it has a new problem and i can't find it" doesn't give people anything to go on. What is the problem? What line does it happen on? Does it always fail or only under certain conditions? Any extra detail will help people to respond.
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote
  #8  
Old 03-22-2010, 10:09 PM
kalanon kalanon is offline
Newcomer
 
Join Date: Mar 2010
Posts: 7
Default

ok , the problem is in this line :
Code:
Text1.Text = """<a href=""" + laddrress.Text + """><img src=""" + baddress.Text + """><a/>"""
Reply With Quote
  #9  
Old 03-23-2010, 12:59 AM
Roger_Wgnr's Avatar
Roger_Wgnr Roger_Wgnr is offline
CodeASaurus Hex

Forum Leader
* Expert *
 
Join Date: Jul 2006
Location: San Antonio TX
Posts: 2,427
Default

What is wrong with the line all it does is assign a quoted string to the text box. What is the problem you are actually having? I suspect it may be the beginning and ending quotes but since I have a cold my guess may be wrong but give this a try (also you may not get teh results you ezpect when uing + to join strings always use & to join strings.
Code:
Text1.Text = "<a href=""" & laddrress.Text & """><img src=""" & baddress.Text & """><a/>"
__________________
Code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. ~Martin Golding
The user is a peripheral that types when you issue a read request. ~Peter Williams
MSDN Visual Basic .NET General FAQ
Reply With Quote
  #10  
Old 03-23-2010, 02:20 AM
kalanon kalanon is offline
Newcomer
 
Join Date: Mar 2010
Posts: 7
Talking

it erors again ( with using & ) .
it says : syntax eror .
edit
sorry , and thanks from every friends . i okaied my problem . and my program will be publish on next week and i will put it in this topic ( enshallah ) .

Last edited by kalanon; 03-23-2010 at 02:41 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
&quot; Problem
&quot; Problem
&quot; Problem &quot; Problem
&quot; Problem
&quot; Problem
&quot; Problem &quot; Problem &quot; Problem &quot; Problem &quot; Problem &quot; Problem &quot; Problem
&quot; Problem
&quot; Problem
 
&quot; Problem
&quot; Problem
 
-->