|
hi,
thanks for the answer dave!!
I'll have to choose from which option to go for!! But thanks anyways....i really appreciate it.
Cheers.
Pranav Bhat
Email:pranavsbhat@gmail.com
|
|
|
|
|
i have text file and this file change run time (batch file create text file and if run it next time put new result )
the question is how can put pointer in new position after change with function (seek)?
|
|
|
|
|
Hi guys,
I am developing using .net 2005. The label text on some of my controls (labels, radio buttons and checkboxes) on a single particular form in my project is not showing the last character. e.g. one checkbox control is supposed to show the following text:
"Separate source files from XML " its being shown as "Separate source files from XM "
another radiobutton control is supposed to show:
"Absolute Path " instead the output is "Absolute Pat "
This is happening on different controls in different positions on the form. I tested it on a client machine and the problem also came up there. how can i teach my application to spell correctly?
Thanks for your assistance...
Regards
|
|
|
|
|
Hi,
Label.AutoSize property
"When this property is set to true, the Label adjusts its width to display its entire
contents. This property is typically set to true when you use a Label control to display
various lengths of text, such as the status of an application process. You can also use this
property when the application will display text in various languages, and the size of the text
might increase or decrease based on the language settings in Windows."
If AutoSize is false, you must allow for sufficient Size.
Hope this helps.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Can anybody help me by showing me how an application on a computer representing the client computer be connected to a SQL database server on another computer representing the server computer to enhance easy transfer of data from the database between the 2 computers.
language :VB.net/SQL
BBia
|
|
|
|
|
Your question is too broad and ambiguous. The answer will depend on wat you are trying to achieve and your level of understanding of the programming language and technology to be used. As a starting point, use ADO.Net, SQL Connection, SQL Command and depending on wat you are trying to do exactly, u can also use SQL Adapter, datasets, dataset tables etcs. You can search the net for basics and notes on how to use them.
|
|
|
|
|
The guys are right, you need to tell us what do you want to achieve. and we will adivice, i have an N-Tier Article here on codeProject, where i have sepatated the layers Physically and as they have advice that you should use ADO.net, check this
http://www.codeproject.com/useritems/N-Tier_Application_VB.asp[^]
Hope this Helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Greetings,
I'm building an App that reads a very big XML file and saves the data in a SQL database.
The XML file is in encoding windows-1250 and it can't be changed.
The main point is to read all characters in the XML including croatian letters (Č,Ć,Ž,Š,Đ)
I have tried this code first: (with this method I get an error 'platform not supported'
xmlDoc = New XmlDocument()
xmlDoc.Load(xmlPath)
The second try: (in which I try to transform the encoding windows-1250 to UTF-8, It reads the XML but it deletes the croatian letters)
fileS = New FileStream(putanjaXml, FileMode.Open, FileAccess.Read)
xmlContext = New XmlParserContext(Nothing, Nothing, "", XmlSpace.Default, System.Text.Encoding.UTF8)
xtr = New XmlTextReader(fileS, XmlNodeType.Document, xmlContext)
xmlDoc = New XmlDocument()
xmlDoc.Load(xtr) // Not supported platform
fileS.Flush()
fileS.Close()
xtr.Close()
I have also tried the above method with system.text.encoding.Unicode and UTF7. But no luck.
So please does someone know how to read this XML file with this encoding (the METHOD must be xmlDocument.LOAD)
Thank you very much!
|
|
|
|
|
Hello all,
Do anybody have some idea of the Rinjdael algorithm? I ahve encryt some data from this algo but i am not geeting anything accurate on web. Please tell me the logic of the algorithm.
Neema Jain
|
|
|
|
|
|
Don't cross-post the same question in three forums! Please read the forum guidelines!
|
|
|
|
|
nimsrav wrote:
Do anybody have some idea of the Rinjdael algorithm?
Yeah, it works pretty good
nimsrav wrote: Please tell me the logic of the algorithm.
There was an article about it years ago in Dr. Dobb's Journal.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
how r u all
I'm creating an application to download files from internet, but I faced a problem when downloading from rapidshare.com, coz I have to enter the user name and password.
if anybody know how to do this plz help me
|
|
|
|
|
if u need to pass parameters to a web address u say
www.theWebAddress.com?parameter1=value...
|
|
|
|
|
hamzahaidar wrote: I'm creating an application to download files from internet, but I faced a problem when downloading from rapidshare.com, coz I have to enter the user name and password.
Wouldn't it be easier if you just post your existing code and let people look at it to see what the problem is? Or at least describe the methods you are using to get the file right now.
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
DigiOz Multimedia wrote:
Wouldn't it be easier if you just post your existing code and let people look at it to see what the problem is?
Could be, but some people have the tendency to dump all of the code in the post rather than just the trouble spot.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
I never use ajax..
I want to use AJAX in my asp.net 2.0 application how i can enable ajax for that application
Girish Soni
|
|
|
|
|
sonigirish wrote: I never use ajax..
I want to use AJAX in my asp.net 2.0 application
You want to start off with a book... Maybe Rama Krishna Vavilala can help you select one
|
|
|
|
|
I've added the following code to a test project, added the reference to Microsoft Shell Controls and Automation, imported the Shell32 namespace:
Dim objShellWindow As Shell
objShellWindow = CreateObject("Shell.Application")
MsgBox(objShellWindow.Windows.ToString)
I need the title bar text of Windows Explorer and each of it's instances, but with this code I only get:
System.__ComObject.
Thanks again and I'm sorry for keep bugging everyone on this problem.
Regards
Graeme Guildford
I am always greteful for any help!
|
|
|
|
|
The "Windows" method returns a collection of Shell-owned ShellWindow objects. You're calling ToString on that collection, which cannot be converted to a string. That's where you're getting the "System._ComObject" from.
You have to add a second COM reference to "Microsoft Internet Controls". Your code to enumerate the Shell Windows would look something like:
Imports Shell32
Imports SHDocVw
.
.
.
Dim objShell As New Shell
Dim shellWindows As ShellWindows = objShell.Windows
For Each window As ShellBrowserWindow In shellWindows
Debug.WriteLine("LocationName: " & window.LocationName)
Debug.WriteLine("LocationURL : " & window.LocationURL)
Next
|
|
|
|
|
Thank you so much Dave, this worked perfectly.
I appreciate all the help you gave me with this problem.
Graeme
I am always greteful for any help!
|
|
|
|
|
Hi,
This is Atheeq, vb.net developer. I hv one problem when executing sql query in vb.net actual the commands are like
Dim strsql,Strsql1 as string
flds = Trim(flds) & "Season='" & cmbseason.Text & "' and OrderID ='" & Trim(cmbord.Text) & "'"
strsql="Select * from VOrder1 where " & flds & ""
strsql1 = "Exec Master..xp_CmdShell 'bcp " & strsql & " queryout C:\test.xls -c'"
os.InsUpd(strsql1) 'here os is class for connecting datasource
in the above strsql1 command the inside quotes cannot be accepted in vb.net " " " "
Please can you help me how to solve this problem.
Best Regards
Atheeq
India
|
|
|
|
|
Concatenating strings together in a sql string is considered dangerous practice. It opens you up to sql injection attacks.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Good moring good people.
My Name's Moses and I'm strugling to put together a log in code to the database. Please help me, I want to create a username and other details, then later I use a username and password I created earlier to login in windows form. Im using vb.net 2005
|
|
|
|
|
Hi,
Your question is not that specific. Here are some general steps to achieve what you want.
1. Create a database.
2. Create a table in that database that will hold your user credentials like username/password etc.
3. Create a database connection with your VB.net application.
4. Now you can do queries to your database like to insert a user or to get a user etc.
Thanks,
Mubashir
Software Architect
Storan Technologies Inc, USA
Every job is a self portrait of the person who did it.
|
|
|
|