Kunle's Q&A profile
.NET Development Partial Class Methods not being recognised
Hi I have a web project which has UserControl folder and all ascx page resides here. I have another folder called CodeBehind which has a folder called UC which contains all code behind for the ascx pages in the User Control folder. The ascx pages in the UserControl folder is wired properly to its respective .cs class in codebehind in the UC folder. The web site works great and no problems. I created a same namespace and class name file inside a third folder called PC. I created some public and private methods within and i am unable to access these methods withun my other partial class Below is sample rootfolder/UserContr ...Show All
Visual Basic Date Difference
I have two month calendars. Monthcalendar1 and monthcalendar2 I have set monthcalender 1 to be the computers clock date monthcalendar2 date can be chosen bu the user How do i get the difference in the number of days btw those to calenders Dim date1 As DateTime = MonthCalendar1.SelectionStart; Dim date2 As DateTime = MonthCalendar2.SelectionStart; Dim diff As TimeSpan = date2.Subtract(date1); Dim daysDiff As Double = diff.TotalDays; ...Show All
Visual C++ getting text from TextBox Managed C++ (oldSyntax)
Hi, I'm sort of new to Managed C++, and I'm picking up a new piece of software from my predecessor at my company. I'm having *a lot* of problems trying to do something fairly simple: getting the user-entered text from a TextBox inside of a dialog box. I am using VS.NET 2005 Beta 2, and my project is being compiled with the old managed c++ syntax flag enabled. No matter what I try, I get a null string whenever I try to get the text from the TextBox. I have looked on MSDN and various source sample, but nothing seems to be working. The TextBox is declared and initialized as: private: System::Windows::Fo ...Show All
Visual FoxPro API call caused an exception
The following is a program to convert HTML entities back into their original characters. Can anyone see why it would work on Windows 2000 and XP but not on ME & 98 I have gone through depends.exe to try and determine any dependencies that I have missed but everything seems ok. If the process is made to exit before the loop it doesn't crash VFP. I am running VFP6 SP5 #include <fstream.h> #include "PRO_EXT.H" #include <ctype.h> // make the paramBlk structure easier // to manage by using #define shortcuts #define p0 (parm->p[0].val) #define p1 (parm->p[1].val) void unescape(ParamBlk *parm) { &n ...Show All
Visual Basic Cross Threaded Data Binding
I'm using databinding (.net 2.0) quite a lot in my application. I have written business objects (my model) with properties bound to controls on my forms (my views.) I use simple databinding, and databinding via the BindingSource; for example the Save button enabled property is bound to the IsDirty property of my business object, and I have collections of child objects exposed via generic binding lists. All is well and I really like this architecture. Changes to children are propagated throughout the UI, and I like the fact different views on the same data are all updated in sync (since they get notified via the xxxChanged events.) ...Show All
Visual Studio Express Editions Visual C++ Beta 2 problems
I have installed Visual c++ Beta 2 and .NET beta 2 without any apparent problems. My system is XP PRO SP2 I start up Visual c++ and do File->New->project (New1) and chose CLR - Window Forms Application I then get an error c:\Documents and Settings ...... \New1\New1\Form1.h - Cannot open file. If I then Menu over Form1.h and Open With c++ Source Code Editor it's ok. If I try to run it without change I get link errors such as error LNK2028: unresolved token (0A000009) "int __clrcall WinMain(struct HINSTANCE__ *,struct HINSTANCE__ *,char *,int)" ( WinMain@@$$J0YMHPAUHINSTANCE__@@0PADH@Z) referenced in function "int __clrcall WinMa ...Show All
SQL Server Why take so long loading Report Manager
Today I started Report Manager on my local machine and it took a minute and 15 seconds to load. Is this normal I am a .net developer and when running reports using Report Manager the first time in the day it can take a minute and 30 seconds before the user actually sees the report. After the first time, speeds are pretty good - but still. Is this just the way it is and I need to get used to it or is it possible that I have things configured incorrectly. I have a Pentium 4 processor with lots of ram. I have a named instance install of SQL Server. Is this adding to the problem Anyone When RS fi ...Show All
Visual Studio Team System Error when viewing or starting a Team Build
Coders, I get the following error when either viewing a Team Build (after double clicking on a Team Build in Team Explorer) or starting a Team Build (via any mechanism): System.Web.Services.Protocols.SoapException: Server was unable to process request. --> Microsoft.TeamFoundationServer.SecurityObjectDoesNotExistException: TF50608: Unable to retrieve information for security object $PROJECT:vstfs:///Classification/TeamProject/856b2dee-7cd0-4358-a6e4-8be661b52596, it does not exist. The is some stack information but I am unable to get it to the clipboard to paste here. The Team Project that the Team Build belongs to has been de ...Show All
Visual C++ I'm stuck and cunfused. ARR U C++!
ok. i made a small ...small SMALL msdos program with Visual C++ express (yep a newbie) and all it was, was a whats ur name age and if u like this kind of music or game. now i figured out the whole press one if u like this or press 2 for no. but i want to make it a says YES FOR YES! and so on. get it good. here's my code. im really stuck #include <iostream> using namespace std; int main() { int number; /* This describes the number int. */ char conversation1[256]; int halo; char variable = 2; char option; cout << "Welcome To the computer talking program.\n"; cout << & ...Show All
.NET Development How to send Null Date to a Web service method
Hi, how can I send a null Date to a method of a web service which requires a Date type input ex.. <method xmlns="http://...."> <from> dateTime </from> <to> dateTime </to> <destinationCode> string </destinationCode> </method> (from the method description..."to omit a parameter set it as nil; - if the 'to' date is nil, the system returns all objects that are available in date 'from'...") Thanks, Luigi Are you using ASP.Net Web Se ...Show All
Visual Studio 2008 (Pre-release) UI like MS Max
Hello, a few days ago I downloaded the latest WinFX Components and the SDK. I tried to create a look like the Microsoft Max application. But the whole look of my created application is the same as normal xp applications. Can you give me some hints to create this look Thanks a lot Jens You need to look into templates and styles. If you just use the controls as is, you'll end up with their default styles which are designed to look like the platform. If you want to have custom look and feel, you have to change the template of the controls. There are a lot of resources out there on the web to ...Show All
Visual Basic Using TabPage and binding data
I had a tab wherein there are two tabpages(tabList,tabEditList)...On the tabList there is a datagridview(dgvPatients) which displays all data of a certain coulumn(Name)..The table("PATIENT") where Name is a member had other columns(ID,LastName,FirstName...etc) I make this other columns hidden in the dgvPatients as what i only like to show here are the names...What i really trying to do is, all of other details of such certain name would be displayed in the tabEditList page, wherein it(tabEditList) contains different controls such as textboxes and datetimepicker(dtpBirthDate)...Say for example, on the tabList, dgvPatients was pointin ...Show All
Visual Studio Express Editions How do you shut down computer from VB 2005
I have tried every code that I could find and nothing seems to work.. Any suggesions on how to do this Link to a class to shutdown windows http://www.mentalis.org/soft/class.qpx id=7 ...Show All
Smart Device Development Adding web services created in VS2003 to VS 2005 smart device projects as web references
I've been trying to add a web reference to a web service that was created some time ago in Visual Studio 2003. This web service works fine and is linked to from several smart device projects. When I add a web reference to the web service in a Visual Studio 2005 Beta 2 smart device project (compact framework 2.0) it seems to work fine until I go to build the solution. The build constantly fails with the following message in the output window. "Error: Could not load file or assembly 'System.Data.SqlServerCe, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find th ...Show All
Visual Studio Help still broken
Just installed the release version of VS2005 standard. Alas, F1 help is still broken. If I position the cursor over a word (for example HANDLE) and hit F1, the following happens: 1. If MSDN is set to use local help only, it always displays the topic-not-found page, even though on the left hand side, the topic is not only present, but selected. A single click on the highlighted item displays the correct information. 2. If MSDN is set to use online help first, then pressing F1 takes up to a minute (looks like multiple redirections happening), then either displays the topic-not-found page or displays something only vaguely related to the select ...Show All
