I have no idea why this happens.. just as a info here is my config:
MSSQL Server 2005 Express with Management Studio
Default settings, user "sa" active from installation.
if anybody have any idea please post! thnks...
User Profile
Collapse
-
Problem connecting from PHP
Strangely enough, I can connect from a another computer in the network but not from the MSSQL server itself.
Like this it works:
PC1 apache/php (eg.192.168.100 .3) to:
PC2 MSSQLSERVER(eg. 192.168.100.240 )
with this configuration:
$server = "192.168.100.24 0,3730";
$user = "sa";
$passwd = "mypass";
$conn = mssql_connect($ server,... -
I made a post about this a few days ago:
http://www.thescripts. com/forum/thread710362.ht ml
hope it helps!Leave a comment:
-
GetPrivateProfileString function
Is there a better way of accomplishing this ?: http://msdn2.microsoft.com/en-us/library/ms724353.aspx
I have some program settings which should be easily editable by the user (really like in a text file), but dont want to use such an old function like GetPrivateProfi leString..
maybe an XML file would be the best solution ?
thanks -
Just found a solution, dont know if the best but I simply store a reference of all ValueDescriptio nPair in an array. Like this:
Private TypesArray(Type sAvailable - 1) As ValueDescriptio nPair
Code:TypesArray(0) = New ValueDescriptionPair(1, "Type 1") TypesArray(1) = New ValueDescriptionPair(2, "Type 2") For i As Integer = 0 To TypesArray.Length - 1 CmbBoxType.Items.Add(TypesArray(i))
Leave a comment:
-
Manipulating combo boxes in Vb.net
Hi,
I found a way to include my items dynamically by following this how-to:
http://www.mgbrown.com/PermaLink37.asp x
If you dont want to take a look on the link here it goes:
Code:Public Class ValueDescriptionPair ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 'Class used to control the comboBox components '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
-
This is called Variable Variables. Take a look here:
www.php.net/language.variables.variable
I wanted the same effect but in VB .Net
thanks...Leave a comment:
-
And in those cases you cant make a blank variable, once you dont know the name of it yet. It is named dynamically....Leave a comment:
-
Problem handling events in a Form class
Hi!
Im still trying to make my application work in an event-driven way.
It had worked so far with my threads, but the problem Im having is only when modifying a GUI component from the event handler inside the form class.
To make things easier I simply pass my objects and threads by reference to the form, like this I can handle their events easily with the "AddHandler ".
For example,
if... -
Sometimes creating variables dinamically is the only solution for certain problems.
The new variable (created in run-time) could have the name specified by another source for example.
I've already used this in PHP.. but I dont know if it works in vb.net. In php, as I said, you use the $$ symbol to specify the future identificator....Leave a comment:
-
Sorry but I didnt understand you. What case are you talking about?...Leave a comment:
-
Creating variables at Run-time
Is this possible in VB? for example, in PHP you can use the "$$" like $$future_var in place of a variable name that will be created only later.
thanks. -
Im trying a simpler way with event driven GUI's.
What I have is an object that raises some events. Then I'm trying to get these events from the form like this:
1-On the form's class constructor get a reference of the object.
2-Create some AddHandlers for these events
3-Create the methods that will be called from the event handler's to update the form's components info.
This is the code of...Leave a comment:
-
GUI: Delegates vs. Event
Is it possible to handle events of a thread in a form? If yes, what is better: use delegetes to update the form directly, or make it through event handlers?
thanks -
Creating a Vb form and its components "by hand"
How do you add components to a form during compilation?
thx -
I cant store all instances of my forms, once they should be created dynamically (must discover how many will be necessary during run-time)...Leave a comment:
-
The problem is not the form running as a thread, but the interaction between my threads AND the forms.Leave a comment:
-
-
that was a better response that I was expecting =)
Im aware of this, but I dont find a good way to keep my forms updated in "real time" when my processes are running as threads, and especially when I dont know the exact number of threads that will be necessary (they will be created according to a configuration file), just as the forms should only "consume memory" when a user requests its info about the running threads....Leave a comment:
-
Handling events of threads from a different class's object
Question details: VB .NET / threads / events / GUI
Imagine the following situation:
A method from object "A" creates "n" threads.
Variables from these threads contains values that should be updated to a form (only when this form exists), one form can be shown/created for each thread. Thought the forms might not exist, the threads will be always running.
I dont want...
No activity results to display
Show More
Leave a comment: