Gerrit L's Q&A profile
SQL Server Set NULL to datetime parameter
Hi All, I have a problem while trying to set "NULL" value to my datetime parameters. I have two datetime parameters (AllowNull=True) on my report. (BeginDate and EndDate) it works fine in preview mode in reporting design. The problem occurs, if I try to set an emtpy value to these parameters in my asp.net application. The code looks like; Dim repParams(1) As ReportParameter repParams(0) = New ReportParameter( "BeginDate" , String.Empty) repParams(1) = New ReportParameter( "EndDate" , String.Empty) ----- ReportParameter method requires String parameters. If user set any datetime value, I am sending "String.Empty" value to my paramaters in order to set them as NUL ...Show All
Visual Studio Express Editions Newbe How to questions(loops)
How do you place five choices from a combo box into a loop. In other words I have five items in a combo box that I want to place in a "for loop". For example, I have items such as choice1, choice2, choice3, choice4 and choice5 inserted into a combo box. Also I would like to know if it is possible to place these choices into a "do while loop". Any help welcome The controls has an items property which is simply a collection. You can iterate around it using for each construct or determine how many items there are and then use any of the looping constructs. There is nothing special about the items collection in a combobox as against any other collection and iterating through the items. Is there an ...Show All
Visual C++ problem with "undeclared identifier"
Whats the problem with this code BEGIN_MESSAGE_MAP(CDag2Dlg, CDialog) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() //}}AFX_MSG_MAP ON_BN_CLICKED(IDC_CHECK3, &CDag2Dlg::OnBnClickedCheck3) END_MESSAGE_MAP() This is the error: 1>c:\documents and settings\ikke\mijn documenten\visual studio 2005\projects\dag2\dag2\dag2dlg.cpp(76) : error C2065: 'IDC_CHECK3' : undeclared identifier It happend after that I added variables and that same code (here shown above) was allready there before I added those variables. I think it can be caused by missing directive: #include "Resource.h" Also check if IDC_CHECK3 is defined in Resource.h file. I hope this help ...Show All
Visual Studio 2008 (Pre-release) DLINQ question
I just finished watching the "The LINQ Framework What's New in the May CTP" presented by Luca Bolognese. The video discusses DLINQ. question #1 I am a student and just starting to learn stored procedure of SQL. Correct me if i am wrong but my interpratation to the demo is that this DLINQ prevents you from creating sql stored procedure and your database query will mix up on your c# code or the business logic of the program. is that manner ideal would it be better if the sql code or the dlinq code is in a separated file and not mixed up with the business logic code quetion #2 would this DLINQ work with other database like MySQL, Oracle, etc this is my first time i have seen a video of LINQ. please correct me if i am wrong with my interpre ...Show All
Internet Explorer Development New MSDN BHO Article - Building Browser Helper Objects with Visual Studio 2005
I have built a BHO based on this article and it works great, but I cannot deploy it to machines that do not have Visual Studio 2005. It won't register and I have fixed all the errors that Dependency Walker showed. Has anyone else had problems deploying Murph Man, I have followed every single MSDN page out there on this topic. Here is my embedded Manifest: <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.VC80.CRT" version="8.0.50727.762" processorArchitecture="x86" publicKeyToken="1fc8b3b9a ...Show All
Visual C# using cache in windows forms in c#?
How to use the cache in windows forms when i try to use cache, i am getting an error as: The name 'Cache' does not exist in the current context. This is the code, that i tried to use: foreach ( DictionaryEntry objItem in Cache) { Cache.Remove(objItem.Key.ToString()); } should i include any additional namespace to use cache please help. Thank you for the timely help. I am converting a web based application to windows base application. so there was the need of cache. My sample code is as follows: public void BindGrid( string strQuery) { DataView RetrieveData = new DataView (); int intSessionID = Convert .ToInt32( Program .intSessionID); // ...Show All
Visual Studio Team System Visual studio crashed 4 times after parameterisation
Visual studio keeps crashing after parameterisation. This happened 4 times in last 24 hrs. I had to reboot the machine each time it happened. The following was discovered in the VSTestHost.exe.config file [W, 760, 5, 2006/10/24 10:33:23.185 13606305149] vstesthost.exe: WebLoadTestAdapter: Stack trace for error: at Microsoft.VisualStudio.TestTools.WebStress.WebTestInstrumentedTransaction.UpdateBindingSites(String preBoundString) at Microsoft.VisualStudio.TestTools.WebStress.WebTestInstrumentedTransaction.PerformRequestDataBinding() at Microsoft.VisualStudio.TestTools.WebStress.WebTestInstrumentedTransaction.Execute(WebTestCaseContext testCaseContext, AsyncCallback completion ...Show All
Smart Device Development Convert a bitmap to an icon in compact framework for ppc2003
Hi Everyone, I am trying to convert a imagelist image (a bitmap) to an icon so that I can use the graphics class to draw it with transparency. However I cannot work out how to convert a bitmap into an icon - I've found samples like this: Bitmap bitmap = new Bitmap(16, 16); [..] Icon icon = Icon.FromHandle(bitmap.GetHicon()); But this doesn't work as GetHicon is not supported in the CF. Any suggestions Regards Mike Oleary With a bitmap you need to specify what the transparency color is - and in our application this could be different accross each picture....so too hard. With an icon it knows the transparency automatically - so removes this issue. ...Show All
Visual C# w3wp.exe process greyed out
I'm currently using windows server 2003 with visual studio 2005 installed on it. When I hit debug--> attach and then go through my process list, the w3wp.exe processes on my machine (web processes) are greyed out and I can't attach to them. I'm not sure what causes this behavior. I recently joined the computer to a domain, but it did happen once before that and seemed to go away on its own. What causes a process to be greyed out Thanks for any help. ...Show All
Windows Forms How to access another forms members
Hi all, I have a form called: Form1 (Form1.h) and another form called: add_key_Value (add_key_Value.h) Now I want to show the form add_key_Value: So I include the header file add_key_Value.h in the Form1.h And perform the following code: add_Key_Value^ form2 = gcnew add_key_Value; form2->Show(); Now in the add_key_value form I want to access the members of Form1: So I include the header file Form1.h in the add_key_Value.h And perform the following code: (ERRORS) Form1^ mainform = gcnew Form1; mainform->edtTextBox->Text = "Just testing"; Errors: Error 3 error C2065: 'Form1' : undeclared identifier c:\documents and settings\qx55246\my documents\visual studio 2005\projects\cnfedtctrl\cnfedtctrl\add_key_Value.h 2 ...Show All
.NET Development treeview .net 2.0
i have created a treeview in a vb application, the data loads from sql server and I want that the parent node to be selected when you select a child node! an exemple parent child 1 child 2 child 3 now when you click on child 2 the parent node must be selected Me.TreeView1.SelectedNode = thanks in advance!!! I need help with this too. Can someone please elaborate as to what code needs to be written to allow the parent node to have the same style as the selected node. my problem is that i have the expand depth limited to 2 child nodes deep. and if i navigate to the 3rd node deep from a different part of the site, the parent menu item is no longer bold, becaus ...Show All
Visual Basic TreeView
How can i make my proram’s TreeView Initialize on my hard drive (C:\) this is urgent! Not sure how this relates to the focus of this forum "Visual Studio Team Edition for Database Professionals", you better try one of the programming language related forums. -GertD "DataDude" Development Manager ...Show All
Visual Studio Express Editions @dennis - Straw Man Example: getpwd
can u suggest me a standard method to input a character from keyboard with echo and without echo....like _getch() and _getche() functions. what i mean is these functions are supported by vc++ 2005 express edition but are non standard and hence the code and exe wont be portable. i know that in standard c++ there is no method for above problem .but i want to create functions which are standard and which i can include every time when i require keyboard input i.e i wanna make 2 functions equivalent of _getch() and _getche(). kindly help desolate wrote: yes Dennis i agree with you and i want to experiment with this approach i.e make custom functions using names of our choosing. The definition of the functions will use platform-s ...Show All
Visual Basic How to automate application procedures unattended?
Hi, I have an Access 2003 VBA application that basically does the following: The end user opens the app, clicks on the browse button to import a text file from a folder. Then in the app, when the user selects the order number that was imported, they can then click a print button to create a report to print to an adobe pdf print driver. It then creates a pdf to a location where ever I specify. Is there any code in vb.net, or a process that I can automate the above actions unattended Thanks in advance. You could use a filesystem watcher to monitor the directory where the text files live and use its created event or changed ev ent to fire an ADO routine that would open the text file and then import ...Show All
Smart Device Development Traffic on GSM Modem
Dear All, I am developing an application using GSM modem I have around 50 messages limitonto my SIM card of Modem. Time when I am receiving the SMS I have to delete it using AT commands through C#.NET, Similarily I did when I had very less traffic , But Now I am getting numerous messages and the time when I am deleting the messages I am getting more messages still to come and it goes on increasing and my process of reading data gets slow... I want to get the messages directly to my PC hard disk instead of getting it on SIM card .As soon as new message comes in to GSM modem I would be able to redorect message to my hard disk So that , I would be able to handle large amount of Messages on my Machine Regards ...Show All
