Hello all,
I'm trying to create an application where a user clicks on one of the values in a dataviewgrid, which will generate a panel with two labels on it filled with data from the dataviewgrid. In the same movement the user should drag and drop that panel on a picture.
Generating the panel is not the problem, that works fine. However, when the panel has been created I should trigger the MouseMove-event to be able...
User Profile
Collapse
-
Creating a Panel and dragging it to another control
-
Ah, I see.
Is there a specific explanation why floated elements can't inherit from their parent? Because they do have a parent?
And one thing I don't fully understand yet. How come the first subdiv does take the background color but the second one doesn't? They are both floated? -
CSS background-color inheritance not working on child DIV
Hi guys,
I have an issue with a webpage which is not displaying as it should eventhough I don't see any mistake.
I have a series of divs which are all children from one parent div. The first div gets the backgroundcolor from the parent which it should, however, the second div doesn't get the backgroundcolor and I don't understand why?
Can someone explain what the problem is?
You can see... -
Making a reference to an object
Hello guys,
In a project I'm building I have 4 datagrids which I'm using and where I'm updating information manually, so not from a database or a list.
Now to make it a bit easier I would like to use one generic sort of variable to prevent having to write the same code 4 times.
So if I have 4 datagridviews DataGrid1 through DataGrid4 I would like to be able to assign one of those Datagridview to a general... -
Problem loading an online XML
Hello everybody,
I'm encountering some issues while trying to load online XML-content. For some reason I can't select the nodes in the XML-document. Eventhough, if I try it with another source, it's working.
First of all, here is the structure of the XML:
...Code:<?xml> <onair> <channelCode>55</channelCode> <startDate>2013-11-12T21:27:21.000Z</startDate> -
Hello Joseph,
Thanks for yor reply and the sample code.
I was aware that Timer class executes the timer itself on another thread, but in the example you gave, the _updater_Elapse d is still executed on the UI-thread and not on the timer thread, is that correct?
Because in this case it's a simple clock I want to display but there's a case where I need to poll a webservice every two seconds, which returns data in an XML...Leave a comment:
-
Asynchronous threads returning a result
Hello everybody,
I'm currently trying to get into multithreading to take care of my recurring tasks.
In some cases I need to perform tasks recurring for the entire duration of which the application is running.
One simple example is to display the current time.
I could just use a simple timer but that's probably not best practice. So I understand that I need to use a separate thread to do... -
Hey Frinny,
Actually, that wasn't the problem because I only need to return one result so I don't need the DataReader.
However I've just discovered the problem.
The call:
should have beenCode:if (dbCount > 0)
Those little things can keep you busy for hours...Code:if (dbCount() > 0)
Anyway, this topic may be closed.Leave a comment:
-
Cast error
Hello guys,
I have an issue with a database call. I'm hoping you can help me out.
I've got a database call that counts the number of entries in the database:
...Code:private static Int32 dbCount() { SqlCommand cmd = new SqlCommand("SELECT COUNT (*) FROM Employees", conn); conn.Open(); Int32 count = (Int32)cmd.ExecuteScalar(); -
Actually I just noticed that I made a typo in the FindWindow-code. I jut tried it again and it is working.
However still not using the ProcessByName-function.
But I can continue so that's ok.Leave a comment:
-
MainWindowHandle of an HTA
Hello,
I'm currently working on a software where I need to get the windowhandle of an HTAwindow.
Currently I'm Using this code
...Code:Process[] procs = Process.GetProcessesByName("MSHTA"); IntPtr hWnd; debug.print(procs.count()) // returns 1 hWnd = procs[0].MainWindowHandle; debug.print(hWnd.ToString()); // returns 0 -
Oh, got it guys.
The problem was actually when I defined the xpBaseObject. I had to make it into a public static.Leave a comment:
-
Hello guys, I'm having another issue in this conversion.
In my application, I'm using a library to perform some jobs.
In one of the calls I need to create a new object but it want a new object. However I can't seem to get it done. So I'm hoping that someone here can help me out.
This is what I need to do:
So...Code:Scene.CreateObject(string ObjType, out xpBaseObject NewObject)
Leave a comment:
-
Hi Mikkeee,
Thanks for the encouraging words. However I'm under the impression that there are some features which are missing in C#.
Just to give an example, if you use labels to select a value.
This would be the code if you click on a label to be able to...Code:for i=0 to lblLabelName.ubound lblLabelName(i).backcolor = vbgrey next lblLabelName(Index).backcolor = vbgreen
Leave a comment:
-
Byte Array to send over socket
Hello everybody,
I'm trying to communicate with a device using a winsocket.
I want to try and change it's IPaddress so I need to follow a specific sequence.
So I need to start with a DLE + STX, then the IP-number, the subnet, the gateway, the port and if DHCP should be enabled or not and finally another DLE + ETX.
I'm creating a byte array to send all of the info but there are two questions that... -
Thanks Joseph for your excellent explanation!
I thought I read somewhere that Public Static statements were considered as not proper programming but as I read from your post that's not the case.
I'll give it a try but most likely I'll be back with more questions as it is indeed a paradigm leap :-)
Thanks,
KennethLeave a comment:
-
Best practices when converting from vb6 to C#
Hello everybody,
I've recently switched from using VB6 to C#.
To be honest, I'm not sure if I shouldn't go back because it seems more complicated and less quick then VB6. But I want to give it a fair chance.
Up until now, I've been programming software for controlling a specific graphics engine, using it's API.
In VB6, I would have a module where I would put all of my global variables and... -
Unfortunately, I can't change my index as I need to keep my Persons-array in the same order. The only way I can see that happening is if I add yet another dimension to the array which has the order in which it should appear.
In effect I don't think it will be possible to sort this array directly from itself. The only solution that I see now is to use a control that does the sorting for me.Leave a comment:
-
It seems I was a bit premature with the solution because I'm still having issues.
When using this code:
...Code:Dim Persons(9, 6) As String Private Sub cmdDebug_Click() For i = 0 To UBound(Persons) Debug.Print Persons(i, 0) & " | " & Persons(i, 1) & " | " & Persons(i, 2) & " | " & Persons(i, 3) & " | " & Persons(i,Leave a comment:
-
Thanks Rabbit,
After your remarks, it seems to be working right now. Although I don't understand completely why... :-)
But the important thing is that it works!
Thanks Rabbit!Leave a comment:
No activity results to display
Show More
Leave a comment: