You might have a problem with customerName, because of .NET string's immutable nature. It would seem that the native DLL will be setting the value of customerName. You can try substituting that with StringBuilder.
I believe that was it used to be back on VS 2003, but seems MS has stayed away on using static positioning on the IDE on later versions. Or maybe I am wrong. Have you explored the Tools / Options on the Web Form Designer section? Better yet, the ASP.NET forum may give you more definite...
homework? okay, try to code this pseudo:
function main()
let sourceStream = open source file
let filecounter = 1
while sourceStream NOT eof
call copyLines(sourceStream, filecounter)
increment filecounter
loop
end function
function copyLines(sourceStream, filecounter)
let...
When you add a control programatically, you need to set every property to make sure you create the desired behavior. That includes the Visible property.
So try to set the Visible property on each of the 2 places where you called Control.Add()
[wink]
Hi. This may be a rather late reply, but I hope you can get some good info anyway.
You can browse through the samples from this link:
http://msdn.microsoft.com/en-us/library/aa645736%28v=vs.71%29.aspx
You may have done this but you may notice that what you needed to do first is to create a...
Use Response.Write(), inline server tag, Trace.WriteLine() if your debugging, just to name a few.
Better yet, you can post this ASP.NET specific question to the ASP.NET forum. :)
You will need to get a 3rd party C# interface to connect to a USB port, unless you want to go down to Win32 APIs yourself.
Googling will initially give you:
http://www.lvr.com/hidpage.htm
http://sourceforge.net/projects/libusbdotnet/
There may be better ones, though I haven't used any of them...
Hi, just to give a slightly different opinion. From what I gather, you basically want to:
1) Get records per district
2) Perform some updating
3) Sort table
4) Transform sorted table to DBF
For the printing part, I assume your report generator is bound to the DBF.
I'm not sure what sort of...
You might want to rewrite the function signature on the Delphi side. A c/c++ exportable function is compatible to .NET interops. So try using a convention that is similar to how you would do it in MS c/c++.
Normally, when returning array, the exportable function (Delphi) takes in a pointer to...
Start by reading on how to design the reports using the .RPT templates provided by VS.
Then, how to load the report file to the report viewer control.
To group the records, you can do it in the report or have it done in the data layer, depending on why exactly you want to group the records...
I don't know what a classification banner is, but sounds like a winform app to me. To keep always on the top, there is a win32 function you can import in order to do this. I forgot the name though, just google it, should be pretty common.
c# is just one of the many "good" tools to do what you...
Replying on your first post, you can probably do something like this if you don't want using just a single SP to get two recordsets:
public DataSet GetMe_As_DataSet()
{
DataSet tmp = new DataSet();
tmp.Add(innerGetMe_As_DataTable(sp1));
tmp.Add(innerGetMe_As_DataTable(sp2));
return...
Try to check what's happening in the static constructor of the type White.Core.UIItems.WindowItems.Window.
On the ..cctor constructor of List<T>, it's merely creating an empty array of the type <T>.
hope this helps.
I still seem to *not* see what you want to ask. Looks to me that you were able to extract the data you want. Just save it on a file and build the code to parse the file and load it in a datagrid.
Normally, you'll be watching out for 3 components if you use VS code generators: the strong-typed DataSet, an SqlAdapter, and a SqlConnection.
The connection string is found in the SqlConnection object, not the dataset. And sure you can modify the connection string by code.
I think the Select() method returns an array of DataRow objects (I assume your using a strongly typed dataset). You will need to bind/display that result into your UI.
// You can add a breakpoint on the line below to
// debug if there are indeed selected rows.
DataRow[] rows =...
hi.
been a while since i worked with winforms, but if i remember correctly, the grid control binds to a dataview (via the defaultView property) if it finds out it's binding to a table (if a dataset, picks the first table then to the default view).
So add your rows via this view.
i don't see any immediate issues on your code. But expect the restoreContents() method won't be called the first time you run the page (IsPostBack = false) ;)
hi,
the thread i mentioned talks about different approaches - 3 approaches - on how to load a ActiveX COM DLL on .NET.
The first 2 suggestions requires you having to know beforehand either the CLSID or ProgID of the COM class you want to consume.
The third option requires building a .NET...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.