I have a two column ListView. I am having problems getting my ListView to display text in the 2nd column after the first row. The first row works fine for both columns 1 and 2. When I write data the second time. Row 2 column 1 writes the data but column 2 does not.
I am trying to use Listview.Items.Add( "xxxx" ); to update the 2nd column.
Could anybody offer advice as to how to periodically search all open windows for a window with a known text property then programmatically step through its controls entering stuff and finally firing a button click event.
My name is Bruno and I am an Italian programmer.
I've a problem.
I need to write a program that make a map for apply texture on a various images that contains object (ex. Sofa', chairs, dressed, ...) to change his color/textures.
I've founded software. Look at this:
I've marked 3 extremely hard phases.
1: create a map for curves and angles:
- Algorithm to draw a 3d curve with GDI (2D)
- Algorithm to transform create curve
- Save the curve for future visualization
2: Map texture to curve (texture mapping)
3: Overlay original image with textured map
For the third phase I've supposed to use the base pixel brightness and draw the texture pixel with the same brightness.
The result is ok but work fine just with flat colors because if I use a texture this is so flat.
Therefore I need texture mapping.
Have you a line guide for me?
I've considered using Ray Casting technique or quite DirectX/OpenGL
Wow, that would not be too hard but would require more time to explain than I think most of us would be willing to put in, but if it's okay, let me get you started and I think you can figure the rest out on your own.
seperate your problem into periods. A period is the three number grouping deliniating hundreds, thousands, millions .... ie 42,233,123 so this should convert to the string "fouty two million, two hundred thirty three thousand, one hundred twenty three" right?
so now you have three strings : "42" , "233", "123"
now take each of those strings and make a post-period-word for them to tack on later, so you'd have: "Million", "Thousand" Dont worry about the last string, that one will just be worded on its own.
now convert the number in each of the strings and convert them into words. You can figure this out on your own and its not too hard but think carefully about it, there are some special cases here!
This is kind of a recursive algorithm but there are a few special cases you'll need to code for like
not wording the last group. For instance you would not want to save "One Hundred Twenty Three Hundred".
can any one giude me how to convert ...below vb.net code to C#......
Dim oDoc As Word.Document
Dim oBuiltInProps As Object
Dim oCustomProps As Object
Dim oProp As Object
Dim strValue As String
'Get the Custom Document Properties collection.
oCustomProps = oDoc.CustomDocumentProperties
'Add a property named Status Report
'and give it a value of 4th Qtr.
oCustomProps.Add("DOCID", False, _
major problem is with oDoc.Custo mDocumentProperties which returns object...how t o do the same thing in C# where oCustomProps.add is not coming?
urgent plz help me out?
I have downloaded SAP.Net connector from sap.com and with the help of the code available at http://www.codeproject.com/dotnet/SapDBReader.asp, I am able to connect to SAP R/3 System and fetch the data.
While fetching the data from the table having rows more than 200,000, It is giving the error related to BUFFER.
Don't start queries which will return more than 200000 rows. Seriously.
It does make more sense to have your software retrieve this in packages of maybe 10000 rows each, so you can continously update your view with the data already retrieved.
The SAP-Exceptions are the reason why I have designed all my Apps to use ConnectionPooling and asynchronous methods. I simply dont retrieve 200000 sets in a row, but more like 10000 per thread with 3 threads running.
I want to compile the dll conditionally, only when I want, or do you mean that the application should only load the DLL when it is needed.
My requirement is to have multiple .Net dlls, which has similar functionalities exposed (so that I can expose functions of same signature). One of these dlls should be loaded at runtime based on user's selection of dll file name. In effect I need to support my application in such a way that, even after initial deployment, I will be able to deploy additional dlls (additional dlls alone will be separately deployed), which user can select at runtime.
Sounds like you are looking for something like the provider model in .NET v2,
also it might be worth while to have a look at the community server project[^], they have implemented a lot of this type of functionality.
You can use .NET reflection capacities. Recently I find an interesting project in C# called Purple#, the programer uses dlls like plugins, for example if you can render in D3D use D3D.dll, or OGL.dll for OpenGL. This Dlls implementes same interfaces.