|
I have to send data to another domain/url via the post method. If the url name is https://theirwebaddress.com and I need to send two text fields first and last name.
How would you code this?
Thanks
|
|
|
|
|
I'm sure this one has been covered here before.
How can I change the foreground color of a disabled textbox to black?
Thanks for any help.
|
|
|
|
|
dptalt wrote: How can I change the foreground color of a disabled textbox to black?
I already test in vb6 application. Just change the ForeColor property in the code if you know the Name of the text box. Example:
Text1.ForeColor = vbBlack
|
|
|
|
|
|
Does anybody know how to get the location of a file from only the filename?
E.g. Filename = "test.txt" and then I need to return the whole path (e.g "C:\Test\test.txt")
Thanks in advance
|
|
|
|
|
Do you not have any other information about the location of this file? Would it noramlly be in the application folder, or "My Documents" or something. Presuming you do know the directory then the fullpath is just a string so use string manipulation:
filepart = "test.txt"
folder = "c:\test"
fullpath = folder & "\" & filepart
|
|
|
|
|
No, I don't have any more information about the file. It is a file an external application creates when it installs. I need to find the file (wherever the user installed it) and update it from my application if the installed version is out dated. (Hope this makes sense to you?)
|
|
|
|
|
If you don't know where the file is, you'll have to glean some hints from the app, like its config files or something in the registry. Other than that, the more unreliable method is to search the entire hard drive for the filename. The problem with this method is that what if there are multiple files with the same name?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
u can make a for loop to get the filename until it reaches the (.)period before the extension name.
joseph
|
|
|
|
|
That would work until a file has multiple periods in it......
|
|
|
|
|
|
How can I do the following, that is recgonise that I have click on a certain button so to do something.
e.g.
Private Sub BasicValidation(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click
if I click on Button1.Click
Do Something
else
I have click Button2.Click
Do Something else
End Sub
|
|
|
|
|
In the function definition, sender is passed as a parameter. Sender is actually the control that is clicked. It is of type control, not button though. So you can test sender:
If sender.name = "button1" then
' do stuff
ElseIf sender.name = "button2" then
' b2 stuff
End if
If you added the controls at runtime then you won't might not have set the name property, in that csae the quick way is to set the tag property to something as you create the controls and then test sender.tag.
|
|
|
|
|
for example, I have a command-line app uharc.exe and I want my vb.net app to give it this command:
UHARC a archive *.dll @c:\list *.exe
Regards,
Vykintas
|
|
|
|
|
|
Thanks a lot.
Regards,
Vykintas
|
|
|
|
|
I am finished with designing and implementing a mail server using VB6, now it works using the LAN, but it dose not recognize any other mail servers, like yahoo, or hotmail..
How can i make it do this
Regards
SS
|
|
|
|
|
hi guys i am newbi in VB.NET. I am having tables in access database and i want to take data for multiple employees. so i want to do this in DataGrid so user can easliy enter for multiple employee. I can show data from a table to a datagrid now how to update the same table as per the changes made in datagrid.
Also i want to know can we fill a table with a query in access?
Darshan Shah
|
|
|
|
|
Hi - welcome to code project, and programming in general ( well, VB anyhow ). What you're asking here is a common problem, which has been described in detail on hundreds of web pages. There's this site called google, http://www.google.com[^]. You'll find that if you pursue the world of programming, you'll use it a lot, because there are always new things to learn, and they are all just a google away. Of course, once you've done this and tried the examples you find online, you may still have more specific questions or problems, that's where message boards like this one come into it.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
Does ctl exist at this point ? Does it need to be initialised ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Garrett Klas wrote: Private sub Example()
Dim ctl as ctlExample
Dim iFontSize as integer
iFontSize = ctl.Fontsize <-- Throws Object/Variable not set Error
End Sub
ctl is not initialised. All you have done is reference it. You need Dim ctl as new ctlExample, or a Set ctl = new ctlExample at the start of the routine.
Having said that, the control, assuming it is a User Control, should be sited on a form. Just accessing the control in the manner you show probably won't do anything as it would be creating a new instance of the control and I am not sure where it would be. You really need to access the control where it is sited i.e. 'Form1.ctlExample.FontSize = x' again assuming that you have a property called FontSise exposed in the control.
-- modified at 6:19 Thursday 10th November, 2005
|
|
|
|
|
|
OK, I hope I am understanding you correctly.
Al you need to do is to set the variable in the class to the font size. You do not need to reference the control at all.
[In Class Pane]
Public FontSize As Integer
etc
[In User Control]
strIndex = Panes.Add(??? variables if you have them)
Panes(strIndex).FontSize = UserControl.FontSize
I don't have VB6 with me but if this doesa not help can ive you a fuller example tomorrow.
-- modified at 3:09 Friday 11th November, 2005
|
|
|
|
|
how to display a emerging window before printing by vb
can you helpme please
thanks a lot!!!
|
|
|
|