|
Hi
I want a code for match the string with the souce string and then undo the matched string from the source string in the textbox.
like if source string is HiHello
and match string is hello
then undo that hello string from the original string or source string
|
|
|
|
|
I guess you want the string.Replace method for the second part and the contains ( from memory ) method for the first.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
hi,
it is my first time using listview, i can add the item,
but, the problem now, how can i make the listview only focus or show the latest item or row that have been added? and, if i have textbox, i can use text_Changed event to alert something, but how can i do this for listview?
plz..
|
|
|
|
|
mm - there doesn't seem to be an event. I'd say grab an event you know would get fired when an item is added ( like the item draw event ) and keep track of the number of items, and fire your own event if that changes.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Deselect all items...
For Each x As ListViewItem In ListView1.Items
x.Selected = False
Next
Add a new item...
Dim lvi As New ListViewItem
lvi.Selected = True
lvi.Text = "test"
ListView1.Items.Add(lvi)
Set the focus to show the selection...
ListView1.Focus()
|
|
|
|
|
Make the selected item visible
lvi.EnsureVisible
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello im new to vb.net and need someone to write a VERY simple ftp for me please need it soon as possible, ive search on the internet and copyed examples of the internet but i could not get any to acculy work i need the accual code so it will send the file when i press a button
modified on Thursday, August 21, 2008 3:44 PM
|
|
|
|
|
Would you like a large pizza and a 2 liter of coke with that?
There are several tutorials on this site that work just fine. I suggest you slow down and more carefully analyze the code.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
Use FileZilla.
Now where's my friggin beer?
|
|
|
|
|
Why do you *need* this code ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Probably wants someone to do it for them.
"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
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
|
I have a program I need to run. It outputs to the command line, and I need to be able to read this output immediately. The problem is, a process's DataReceived event is fired in 'chunks', not at the same time the data is actually outputted. I've also tried writing to a .bat file, redirecting the output to a file from there, and then using a FileSystemWatcher to figure out when something has been written, but this doesn't seem to work either.
Thanks for any help!
|
|
|
|
|
Did you try making the process redirect standard output? There is a RedirectStandardOutput property on the ProcessStartInfo class. You will have to set UseShellExecute to false to use it.
|
|
|
|
|
Yes, but the process's DataReceived events aren't called at the time that the data is actually written (see the answer in this thread[^]).
|
|
|
|
|
Hi
I have added 3 textboxes in the form parallel ( datagrid in down).I want to display data in datagrid cells row wise.After enter, fresh data display above rows in grid cells.
Any Idea?
|
|
|
|
|
I'm sorry to say that your grasp of english is not up to asking this question, I have no idea what you are trying to do!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I just add data of textboxes in datagrid.
|
|
|
|
|
I have the below statement that will bring up the the windows print manager when a user clicks the button on the web page.
Print button statement---
Print this pagenclick=" window.print(); return false"
How would I alter this statement to have the windows "save page as" window appear to save the web page as a html document?
If I change the statement to the below it will not work.-----
Save this pagenclick=" save(); return false"
Thanks for the help!!
|
|
|
|
|
Try a different forum, for starters.
|
|
|
|
|
Was this not a visual basic/ vb.net question since it is a vb statement?
|
|
|
|
|
Your examples are JavaScript not VB. And as you what something to happen Client side, you should be asking how to do this in JavaScript
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
Hi,
I have an vb.net application that opens a word document, fills in some data, prints it out (on a printer that is not set as standard printer)
Because .NET sets the other printer as standard, i have another line that puts the original printer back as standard printer
When this program was used, it is impossible to print something from excel 2003... Something in my program does something to excel apparently
This is the code i use (short version)
Imports wrd = Microsoft.Office.Interop
Module Module1
Sub Main()
Dim moapp As wrd.Word.Application
Dim odoc As wrd.Word.Document
moapp = New wrd.Word.ApplicationClass().Application
moapp.Visible = False
odoc = moapp.Documents.Add("C:\Documents and Settings\9312323\Desktop\excelbug.doc")
moapp.ActivePrinter = "\\N318416\PRINT068 NRG SP 4100N"
'With moapp.ActiveDocument.PageSetup
' .FirstPageTray = 258
' .OtherPagesTray = 258
'End With
'moapp.Application.PrintOut(FileName:="", Range:=wrd.Word.WdPrintOutRange.wdPrintAllDocument, Item:= _
' wrd.Word.WdPrintOutItem.wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wrd.Word.WdPrintOutPages.wdPrintAllPages, _
' ManualDuplexPrint:=False, Collate:=True, Background:=True, PrintToFile:= _
' False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
' PrintZoomPaperHeight:=0)
moapp.ActivePrinter = "\\N318416\PRINT019 NRG P7527n"
odoc.Close(False)
moapp.Quit()
End Sub
End Module
Has anyone got an idea how to work around this problem? My application works just fine.. but Excel 2003 can't print anymore
if someone won't believe this, just copy the code in a new project, add reference to microsoft word 11.0 object library, and run it , then try to print something from excel (without changing printer first)
grtz
edit: if you should try the code, i would recommend on changing the printernames
|
|
|
|
|
If this is the actual code you are running, why is the .PrintOut statement commented out?
|
|
|
|
|
tnx for your reply
this is not the actual code from the program, but it is however the actual code from a testprogram i wrote to simulate the problem.
I commented out those lines so i did not have to print out a document every time i wanted to simulate the problem
so running the code above will result in excel not being able to print...
|
|
|
|