Topics
-
- 0 replies
- 958 views
So I have a Linq2SQL type that is the return type for a method. This works fine; except the lazy loading is causing me issues since I'm returning the method via WCF. I have been able to use DataLoadOptions to get the related data I need; however it generates some HORRIBLY inefficent SQL, especially since I'm trying to filter 2M records down to about 20. It takes over 15 minutes for this query to execute. So I'm trying to manually select the data and populate my own instance of a Linq2SQL type. I run into this error: "Cannot convert IQueryable<T> to EntitySet<T>." I started trying to use an anonymous type, but alas I cannot convert from my anonymou…
Last reply by Nate Bross, -
- 0 replies
- 989 views
Hello all. I creates an ASP.NET application using Crystal report with VS2008. I creates Web setup project. MS says I don't need to add any merge module for crystal report on VS2008. But, HOW CAN I Add License key? Do I need License key to deploy on web server? Without license key How many cucurrent users are allowed? (Since it says more than max user requrest will be queued -> I couldn't find what's max?) any comment or link to related documents will helps. Thank you all.
Last reply by goodmorningsky, -
- 1 reply
- 1.9k views
I have written a sql query that a crystal report is using the query I wrote is as follows: -------------------------------------------------------------------------- SELECT TOP 100 PERCENT dbo.tblPtProgReportMain.PtProgHeader, dbo.tblPtProgReportMain.PtProgFooter, dbo.tblPtProgReportMain.PtProgSalutation, dbo.tblPtProgReportMain.PtProgSigBlock, dbo.tblPtProgReportMain.PatientName, dbo.tblPtProgReportMain.PatientSex, dbo.tblPtProgReportMain.PatientProfileId, dbo.tblPtProgReportMain.PatientSSN, dbo.tblPtProgReportMain.PatientDOB, dbo.tblPtProgReportMain.PatientDOI, dbo.tblPtProgReportM…
Last reply by robertsams23, -
-
- Administrators
- 5 replies
- 4.1k views
Hi, I have some code which copies 2 files to a folder. These 2 files are included in the current application folder. Is it possible to embed these 2 files into the .exe and copy them to a destination folder? Here's my code so far: Dim CurrentLocationDll As String = Application.StartupPath & "\FILE.dll" Dim DestinationFolder As String = System.Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) & "\FOLDER" If (FileIO.FileSystem.FileExists(CurrentLocationDll)) Then ProgressBar1.PerformStep() If (FileIO.FileSystem.FileExists(DestinationFolder & "\FILE.dll")) Then FileIO.FileSystem.Mo…
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 2 replies
- 1.5k views
Hi, I'm writing some code in c# for a mobile device. I have a list view that raises the ItemActivate event on a double click or by the user selecting an item using the cursor keys and pressing Enter. This may be a silly question, but how can I determine whether it was the double click or the Enter/Return key pressed that raises the event? Thanks in advance. Mark
Last reply by snarfblam, -
-
-
- Administrators
- 5 replies
- 1.9k views
Hi guys! Can anyone will me to have a few understanding of BackgroundWorker? This is the first time that I want to use this control since I shift to vs2005. Its like this, I have a sub procedure, GetData() and GetFiles() Now I like it to run under the BackgroundWorker to prevent those hazy delay of displaying the the values inside my form. I have done this functionality with the older ways of threading. i just want to experiment this new control in vs 2005. Just need some enlightment.:cool:
Last reply by joe_pool_is, -
-
- 1 reply
- 2.6k views
Hi guys, I have googled all over the place, but only found pretty confusing stuff. I will try to make my question as simple as possible, hoping to get an easy answer which a PHP coder like me can understand :o) So, here's my layout: I have a parent form and a child form. On the parent form, I have a label called label1, with a text "Testing". Now, I want the child to be able to access the text of the label and get it as a string. As I have no idea on how to connect the child form to the main (parent) form, I am in kind of trouble here :o) Would you be so kind to help me on this? Cheers guys Chris
Last reply by joe_pool_is, -
- 1 reply
- 2k views
Hey Guys, This is a weird one but hopefully someone can help me with it. I currently have an MDI form called MDIECLYPSE Whenever i load another form that i want to be a child form i use this code at the moment, in the form_load section of the child form; me.mdiparent = MDIECLYPSE This then sets the child form to fill the MDI form. If i try to put it to its normal size by using, me.windowstate = windowstate.normal The child form goes right to the bottom of the MDI and you have to scroll back up in order to get to the top of the MDI form again. Does anyone have any idea what could be causing this and how it could be solved? Thanks Blueja…
Last reply by joe_pool_is, -
-
- Administrators
- 4 replies
- 1k views
I am trying to design a program where you enter in some text on my form and click a button called Start. When you click start it needs to then put what is in the textbox on my form into a textbox in a webpage that i have open. The way I thought of doing this is when i click on start i have a delay where i move the cursor to the target textbox on the webpage and then store the coordinates of the cursor and somehow simulate a mouse click at that position and then paste whats on my form into that textbox and send the enter key. But this seems to be harder than i thought.. so far all i have been able to get are the mouse coordinates of the target box on the webpage. any…
Last reply by joe_pool_is, -
-
- 0 replies
- 968 views
What could I do to monitor the Windows print queue? We have a Datamax label printing machine that creates serial numbers for our products. Occasionally, it is out of media, has a jam, is powered off, etc. In those cases, the serial number is lost. All I want to do is void a serial number in our database if the job I sent to the printer was unsuccessful. The printer is local and has the name "Datamax". The PC is running Windows XP. We are developing under Visual Studio 2005 Professional. The closest code examples I have found used a ManagementObjectCollection object, but they do not get into details on how to do what I need to accomplish. I'd like to av…
Last reply by joe_pool_is, -
- 6 replies
- 2.1k views
Hello there, The problem is the following: How can I pass a Word.Document object from vba code to vb.net? I have made a small program which wraps Word 2007 into a usercontrol (custom panel) but now I want to interact with the document I ran into some problems.. For some other customizations (extra buttons on the new Ribbon) I cannot call the function with correct parameters it seems. I cannot pass the Word.Document object from vba to vb.net for some reason I don't know. Can someone shine a light for me here? vb.net Public Class EcfToolForm Private _document As Word.Document Public Sub New() ' This call is required by the Windows Form Des…
Last reply by DPrometheus, -
-
- Administrators
- 1 reply
- 2.5k views
Hi, I'm going to install this .net frameworks 1.1 and 3.5 (3.5, 3.0, 2.0)... I'm not going to install any IDe, I'm going to work directly with the compilers... My question is..how can I make binaries (executables) for each .net version? I mean..If I create a single "hello world" console application...how to know in which .net version compile? Or...is it possible to compile for each .net version installed? Thanks.
Last reply by PlausiblyDamp, -
-
- 5 replies
- 2.1k views
Hi again. I have another problem that i need to solve to get my program to work correctly. I need a routine or a couple of lines that will remove the following characters from filenames. These are Spaces, "." and "_" the one a found does not seem to work. :( Many Thanks for you help Worf
Last reply by Worf, -
-
- Leaders
- 4 replies
- 1k views
I'm interested in creating an event in my inherited class. Given this: public abstract class ZBase { string _test; public ZBase() { _test = string.Empty; } public string TestString { get { return _test; } set { _test = value; } } } public class MyData1 : ZBase { public enum DbType = { None=0, This=1, That=2 }; DbType _type; public MyData1() { _type = DbType.None; } } public class MyData2 : ZBase { public enum DbType = { None=0, Here=1, There=2, Expired=4 }; DbType _type; public MyData2() { _type = DbType.None; } } I want to add some kind of event handler that can react whenever TestString is set. Example1: MyData1 data1 = new MyData1();…
Last reply by joe_pool_is, -
-
- 2 replies
- 3.6k views
My client wants me to get rid of Microsoft's default text in the Title of the installer (MSI). Instead, they want me to use their custom banner bitmaps. I am easily able to include each banner on each different page of the setup project, but how do I get rid of Microsoft's text? I don't care if it is hidden, set to an empty string, or anything else. It just should not be seen. I'm fine editing the MSI with ORCA, but I don't know what needs to be edited. Thanks for Helping! ~Joe
Last reply by joe_pool_is, -
- 1 reply
- 927 views
hi i have to create a style sheet which should applicable to .aspx table can any tell how to write style sheet for this if possible with sample
Last reply by Nate Bross, -
- 3 replies
- 13.1k views
Hi My requirement is to read mail using POP3 and download the attachment.I am able to read the mail . Could some one guide me as how to download an attachment and store in the folder. Regards, Prashanth.
Last reply by Nate Bross, -
-
- Administrators
- 4 replies
- 2.2k views
Hi, My current situation: After hashing I get a bytearray of 24 bytes, normally one would just convert it to hex which is easy. But now I have to convert it to the base of 36 (0-9 + A-Z), which is not so easy anymore. Is there a simple way to do this? The idea I have come up with seems a bit complex for the problem: [CSharp]public static byte[] ByteMultiply(byte[] b, int x) public static byte[] ByteDivision(byte[] b, int x) public static byte[] ByteAdd(byte[] b, int x) public static byte[] ByteSubstract(byte[] b1, byte[] b2) public static bool ByteEqual(byte[] b, int x) public static bool ByteGreaterThan(byte[] b1, byte[] b2) public static …
Last reply by Arokh, -
-
-
- Administrators
- 3 replies
- 1.3k views
Hey Guys, I posted a while back that i had an issue regarding a table in my access database and my program. I basicaly cannot change the column names on the database other wise vb .net will just display the information in my program as blank and not return an error message at all. Last time i gave up with trying to solve the problem and left all the field names the same as another table in my database which works with my program. This is now causing me a lot of confusion when writing code, thus leading me back to you guys to see if anyone can help. Any help will be greatly appreciated thanks :) Bluejag.
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 2 replies
- 1.3k views
Hi. I have found that to get part of my program to do what i need it to do with causing proplems is to remove the file extention, do what needs to be done with the files and then put the file extention back. Now my program checks if the files are more than eight characters long, if so then reduce them down do only eight characters. Now the problem i have is that some times i get (Name..jpg or Name.jp.jpg), so i need to remove the extentions then replace the extentions after they have been shortend. How would this be done? Many Thanks Worf
Last reply by Worf, -
-
Who's Online 0 Members, 0 Anonymous, 17 Guests (See full list)
- There are no registered users currently online