|
j find nothing in google
j create:
Dim cm As ColorMap
Dim cp As ColorPalette
Dim cpe As Color() = bmp.Palette.Entries
but cpe is empty
|
|
|
|
|
Hi All
I am working on ASP.NET (VB.NET) application.
I am creating some controls at runtime(A list of LinkButtons in a table).
On the click of a button i create all these controls. Now when i click on any of these controls they take me to another page. But when i click on back button and again press on any dynamic link button, it does not work properly. It seems that all these buttons have lost their event. Why? HELP!
Sumit Domyan
|
|
|
|
|
Sumit Domyan wrote:
I am working on ASP.NET (VB.NET) application.
Great! Now drop this question in the ASP.NET Forum[^] and you might get a better response. What you're asking really has nothing to do with VB.NET.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi!
I have an app that writes to a log file all the app's steps. I have several threads writing several times per second to the log file. The thing is that i have detected an exception with one of those writings, when i try to OPEN the log file. I use FileShare.Write so that there's no problem with writes form several threads at the same time(i thought).Did anybody experienced such a problem or is it my bug? I only write to the log in one function and i close the filestrems an the end.The code is:
Try
fs = File.Open(logPath & Format(Now(), "yyyyMMdd") & ".txt", FileMode.Append, FileAccess.Write, FileShare.Write)
fsWriter = New StreamWriter(fs)
fsWriter.WriteLine(Now & vbTab & entryString)
Catch ex As Exception
writeToErrorLog(ex.ToString)
Finally
If Not fsWriter Is Nothing Then
fsWriter.Close()
End If
If Not fs Is Nothing Then
fs.Close()
End If
End Try
Never say never
|
|
|
|
|
You just told us "It's broke". What's the exception message?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Ops...Sorry :P
System.IO.IOException: The process cannot access the file "c:\myFile.txt" because it is being used by another process.
Never say never
|
|
|
|
|
I want to transform xml encoding "utf-8" to encoding "iso-8859-1" does anyone know how to accomplish this
|
|
|
|
|
hello
i wish to do a function
where with the press of a button new textbox will be created
the more the user press the button the more textbox will be created
can this function be done?
can kindly guide me at this?
thank yuo in advance
Gary
|
|
|
|
|
Hi!
In the button's handle declare a new textbox(withevents if you want or add the handlers you desire), initialize it and finally add the Control to the Form, or else the button won't show up.
Never say never
|
|
|
|
|
dear carlos,
thank you for ur reply
but i dont quite understand what you mean
can you please explain a little more detail?
sorry and thank you
Gary
|
|
|
|
|
Ok.sorry.I was on a hurry, i was leaving for my lunch hour :P
In the handler of the button you need to declare a new textBox object and do all the stuff i wrote.Here's a simple case:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
dim myTextBox as New TextBox
myTextBox.Location = (...)
myTextBox.Size = (...)
'If you need handlers
AddHandler myTextBox.(...), AddressOf myHandlerFunction
Me.Controls.Add(myTextBox)
(...)
End Sub
That's it then you can access the textBox through the Controls collection (Me.Controls(x)).If you would like to access the textbox in another way, and because you create them dinamically, maybe you should keep them in an arrayList or hashTable.
Sorry for the last post, i really hope i was clear this time.If not, ask again.
Never say never
|
|
|
|
|
thank you carlos
this is very clear
thank you for your guide and help
Gary
|
|
|
|
|
Hi,
I am using Webbrowser control to make a sort of custom web browser. I can browse any URLs with the Navigate method of the Webbrowser control. But when I use this method to open a saved URL shortcut, it doesn't open properly - graphics are not loaded. I saw that Webbrowser is opening not the URL contained in the URL shortcut but some other file in the Temporary Internet Files directory. I deleted temporary internet files, cleared history etc but still it seems the webbrowser generates the temporary file from the shortcut.
How can I make sure that the Navigate method opens the acutal URL contained in the shortcut ?
I hope what I ask is clear enough.
mecracked
|
|
|
|
|
You can't send Navigate the shortcut. Since your doing this in your own browser, you'll have to open the shortcut, get the URL out of it, then use that in the Navigate method.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How can I open it (of course from within VB) to extract the URL ? TIA
|
|
|
|
|
Well, that's a bit of a problem. Read this[^], about half way down the page. You might be able to read the shortcut using a similar technique.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
Go buy some advertising space!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
this forum is for people that like to learn and teach VB.net
|
|
|
|
|
any one wont to help me make a roof sheet estimating program.
i no what to do but dont no how to write the scripts.
i plan on marketing to people who i no are interested so it would be a 50 50 partnership.
i am in Brisbane Australia so som one local would be good but not nessesary
toe
|
|
|
|
|
How do I print a word document in vb.net ? I want to press a PRINT button and make the word document automatically print. Please help.
|
|
|
|
|
Either use TXEdit as a control in which the word document can be loaded and then printed from or
use the OS command line to execute the file-with the command print
|
|
|
|
|
We are in the initial stages of design analysis and I'm trying to come up
with some ideas on how to handle the feature our users are requiring from the
new application. We are using VB.NET/window forms
Feature Requested:
A user will be entering some data that will trigger an a notification event.
For example I am a research analyst entering a sell recommendation for a
stock. Once that action is preformed a notification should be sent the
portfolio manager and the traders. The portfolio managers and traders will
have a main screen and in the right hand corner they will have a grid that
will show the notification coming in real time from the research analysts,
traders and other portfolio managers. These real time notifications will
trigger the user to perform other tasks. Also these notifications need to be
stored in a sql db because if they shutdown the system they need to be able
to bring those notifications back up.
My question is how do I poll for new notifications on a real time basis and
have it not impact the users performance or have any other major downside
impacts on the environment. I was thinking of using a timer control and
making asynch calls to the queue table that will hold the notifications, but
I don't know if that is the best approach.
Thank You for any suggestions
Ian
|
|
|
|
|
|
I looked at MSMQ and that was my first thought, but my data that I need to check for will be stored in a sql table. Plus when I think of MSMQ I think of it has a bridge between systems not a bridge between users utilizing the same system.
|
|
|
|