|
hi,
Can any one tell how to popup a form in vb.net
|
|
|
|
|
The simplest way to do it, if you wanted a dialog window is:
Dim myDF As New myDialogForm
myDF.ShowDialog()
If you want something more specific, you'll have to ask a more specific question.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
thanq for reply,
I want to disply data from database when the form is poped up,can u tell me how to do this
-- modified at 2:36 Friday 21st October, 2005
|
|
|
|
|
There's only a bazillion different ways of doing it. Depends on how you want your data displayed (datagrid, textboxes, drop downs, ...), where it's coming from (Access, XML, SQL Server, ...), and how you want to interact with it (read only, editable, paging support).
You've got to be more specific when asking questions. It's really difficult to answer broad question likes you've asked here. I get the feeling that your just asking what the possibilities are and don't have a very clear idea for any one project your working on.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
In one of my projects, I had to develop a web service and deliver the setup to the client. I faced problems while changing the Target Web Service as the client will install it anywhere in his machine with any name. how to change the Target Web Service.
I am Entry level person
-- modified at 1:33 Thursday 20th October, 2005
|
|
|
|
|
I have created the following in VB.Net2003:
I have a working form that I think has all necessary properties, methods, and procedures to do what I want it to do.
In other words, I have it so that it will appear when I press a button on another "parent" form, and will close when I click its close button. I want to be able to create many instances of this form from the "parent" form and I want them to work independently and close independently, but be able to communicate back and forth (send and get strings and other objects) with the "parent" form. I would also like them all to close, each having the chance to save information, when the "parent" form is closed.
I think that in order to do this I may need to do multi-threading, making each new instance in a new thread - but I don't think I want to go through multi-threading. Would a collection work?
Any help on either of these concepts or anything else that you might think would allow me to accomplish this would be greatly appeciated.
sincerely, Brett Peirce - PolerBear
To err is human; To forgive: divine.
|
|
|
|
|
really no.
well it may depends in some special occasion that a separate thread would be needed, depending on the thing your form do, but generally not.
There are many way for doing it, anyway the basic solution to a have a Myforms() As Form in you BIG application and when the user wants a new one
Redim preserve myforms(myforms.length)
Myforms(myforms.lenght-1) = new yoursmallform()
myforms(myforms.lenght-1).show
and .. well for the data exchange with the parent form.. i think here also there are many way.
i just don't know.. i think after all there is some way across the .net a system for the forms to communicate... between the many ways i see for the comunications 2 are interesting in my point of view.. one is with a tcp/ip loopback connection (you may also use a small library of mine, posted here on codeproject, for doing this), but this is definetly not so efficent.
a better way (considering that you don't want to loose yourself into the .net) may be simply implement your event that may be easily thrown by the small form, and easily captured from the big one.
didn't you try this?
<- true inside to understand outside ->
|
|
|
|
|
I have a multiline text box on a form in a windows application.If some portion of teh text appears inside a tag like this ,#some text#.Then I want to make that portion of the text non editable.Can i implement this.How do i go about this.Later I want to replace the text between the pound symbol with data from a database while printing a report.So I don't want the user to edit the text inside the tag.These tags will be inserted from a list of values.The user should be able to edit the remaining part of the text box.These tags can come anywhere inside the text box and more than once.
|
|
|
|
|
Though it is probably not the best way to do it, this is probably what I would do:
I would set the form's KeyPreview Property to true, making the form's KeyUp, KeyPress, and KeyDown Events (and whatever sub(s) you may have to handle them) get a crack at what the user pressed before the textbox would.
If you did this, then you would then write some algorithm to determine whether the character that the user pressed (if it was entered at the cursor or in place of any selected text) would cause one of your tags to change. If it would, then you absorb the keystroke by setting the KeyPressEvents.Handled Property of "e" and then do nothing else.
If I'm right, and of course if you can figure out that algorithm, then the effect should be an un-alterable "tag" in the middle (or any other part) of the text box control
I do wonder: What if someone accidentally inserts an incorrect tag (like #dog# where it should be #one if by land, two if by sea#)"? Do you have an erase function? If you do have that algorithm working, maybe you could use part of it to select tags when you double click (or even single click) on the text box; then have a button to delete the tag.
As for a mostly different approach, you could have buttons (or whatever) to insert the tags, and let the users edit them to their heart's content. However, when the user submits the text for processing, have an algorithm go through and correct simple mistakes in the tags and/or point out invalid tags, giving the user a chance to cancel their submission, or change the tags at that time ("Spell-Check" Style - but with tags)
Oh Yeah - Good Luck
P.S.: Feel free to mention me in the about box if you feel my contribution was valuable - and, uh... any checks in the mail would be welcome too
sincerely, Brett Peirce - PolerBear
To err is human; To forgive: divine.
|
|
|
|
|
Thanx for your womderful help.I think I should go by the second approach.Gonna start working on that.Thanx once again for the wonderful idea.
|
|
|
|
|
i have a windows application which talks to a web service, now i want to configure the web reference at runtime through App.config file, i know there is a way to do it but i donot know how, any one can help me ?
I am Entry level person
|
|
|
|
|
It's an XML file, you can open and manipulatge it. There's no specific write mechanism provided for the app.config file.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I like to find out whether it is possible to monitor what files are being copied out of my PC to bluetooth devices attach to the USB port. Can somebody advice or direct me? Maybe there are ActiveX Components available in the market for that?
|
|
|
|
|
tslu wrote: I like to find out whether it is possible to monitor what files are being copied out of my PC to bluetooth devices attach to the USB port.
Not really. A file copy is nothing but a File Open and File Read operation by an application. The application then opens another file on another device and writes it. There is nothing that ties the two operations together, other than the application doing the copy. Nothing in the system will associate the two together.
Also, how are you going to tell the difference between an application just opening a file and reading it to get values out of it or opening a file and reading it to copy it somewhere else? There's just no way you can do that.
tslu wrote: Maybe there are ActiveX Components available in the market for that?
I seriously doubt it for several reasons. Not the least of which is because there is no market for a tool such as this and it has a very limited use.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
tslu wrote: Can somebody advice or direct me?
Well as Dave said doesn’t sound possible, but why couldn’t you monitor the system for removable mass storage devices. When a new one is detected watch it for directory changes. Record any new files.
I know it’s not really an answer but it a way to do it.
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
i have a Asp.net web service on my computer and of course i set up my computer as a web server( windows 2000 server), so i can test the web service using IE and type http://localhost/RetrieveData/Service1.asmx in the address, it can run the test page and get data back from database and runs well
but when someone else want to run the same page they can show the page but when they want to get the data back it shows" the test form can only run on the local computer"
i think all the web server settings are correct!
so i really need someone give me some help!
I am Entry level person
|
|
|
|
|
ya know how when you select a method from the list that Intellisense gives you, and it shows that little tooltip that describes what the method does? and when you start to type in your parameters, it gives desctiptions of what the parameter names represent?
well is there a way to make your own methods that behave the same way?
i've tried <componentmodel.description()>, but that doesn't do anything.
any help is apprectiated,
stephen
|
|
|
|
|
If you mean descriptions for classes and methods you made, you can use
VBcommenter[^].
It makes a xml file with all your descriptions in it.
Pompiedompiedom...
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick
|
|
|
|
|
I have created a custom control and built the assembly. I then placed the dll in a folder in the wwwroot folder and added an html page with the following text:
<object classid="ReviewControlVB.dll#ReviewControlVB.UserControl1 Height=" 272"="" width="336">
where ReviewControlVB.dll is the name of the assembly and ReviewControlVB.UserControl1 is the namespace and control name.
I placed this page in the same folder, but the control does not appear when I launch the page.
Any suggestions would be appreciated.
|
|
|
|
|
Try writing a web custom server control and then drop it on a aspx page and let asp.net do the work.
Dan
|
|
|
|
|
Hi Everyone,
I have limited experience in Microsoft Access and am attempting to link from an excel worksheet to access in order to use the data for reporting. Once the data is in Access, I also need to extract or parse text from within one of the rows and place in several rows (in order for the data to be used for comparisons). The only delimiters in that row appear to be spaces, dates, times (no true delimiter that I can see. Does anyone have a routine to do this type of task?: confused:
-- modified at 10:55 Wednesday 19th October, 2005
|
|
|
|
|
Hi, I'm working on a windows application, in the main form I have a data grid which displays information to the user, the user can select a row from the datagrid and then perform som actions with a few buttons we have designed for them, but they cannot edit the information from the grid, so it was set to read only, and also created a code so when the user clicks on a cell on the grid the whole row is selected. even when the datagrid is set to read only, when the user clicks on a cell the whole row is selected but also the text on the cell. There is a drop down list, acting like a filter of the information shown in the datagrid, so when the user selects an item from the drop down list, the data source of the grid changes, it is cleared and the new information is shown.
the problem is, when a cell was clicked and the text was selected (highlighted) and I click on a new item on the drop down list, the selected text does not dissapear from the grid it stays there like some sort of ghost, just to call it that way. if anyone knows how to clean completely a datagrid or have had this kind of problem before, I'd appreciate a lot some info about fixing this problem.
|
|
|
|
|
Hi all
I need to know how to write code when I press btn copy my application or my programme to spacIfic folder on the hard disk.
THANKS.
AMR-CIS
|
|
|
|
|
plz explian the folderbrowserdialog in vbdotnet and give me the one example
venukumar
|
|
|
|
|
sorry i got no time for a longer help...
anyway it's almost like the openfile dialog....
the normal usage is like
Dim fb as new FolderBrowerDialog()
fb.initial path = "what you want"
fb.title = "what you want"
...
Dim DR As DialogResult = fb.show()
'when we are here the dialog it's already been closed (the form will wait for it)
If DR = DialogResult.OK then
If IO.Folder.Exist(fb.selectedpath)
....
End if
consider this above as a pseudocode, i just wrote it as i remember it.
<- true inside to understand outside ->
|
|
|
|