Software Development Network Logo
  • Smart Device
  • VS Express Editions
  • Visual Studio
  • Windows Forms
  • Visual C++
  • SQL Server
  • Architecture
  • VS Team System
  • .NET Development
  • Visual Basic
  • Microsoft ISV
  • Visual J#
  • Visual C#
  • Windows Live
  • Windows Vista

Software Development Network >> khoshnawf's Q&A profile

khoshnawf

Member List

Carlos Quintanilla
Talepinner
Narayan_jn
SyedHassan
Liam404
umer riaz
Ingenious
_dog
Taoufik
Ravi Kiran Guturu
Jayanthi Prasad
Netklip
Mario.Chavez
Pranav
Piero.B
Vania B
AKORNICH
roeltherule
Salam
Kevin
Only Title

khoshnawf's Q&A profile

  • Visual Basic Can I open a form when all I have is the name as a string?

    My project has a number of forms.  I would like to provide a procedure that would open one of the forms -- the form name would be passed as a string to the procedure.  The requested form is probably not already open. In other MS products, I would do this by iterating over a FormsCollection searching for a matching name.  No FormsCollection here.  I found another example that would build a collection of open forms, but my requested form is probably not already open. I can build a collection of forms by hardcoding each form name, but I would prefer to have a tool that will always have the current set of form names without ...Show All

  • Visual Studio Cast error when pass a parameter in localreport and reportviewer

    hello friends, i have a problem with my report when pass a pamameter in vb.net and VS 2005 The code is: Dim objParameter As ReportParameter objParameter = New ReportParameter( "Name" , "test" ) Me .ReportViewer1.LocalReport.SetParameters(objParameter) the error is: System.InvalidCastException was unhandled   Message="Unable to cast object of type 'Microsoft.Reporting.WinForms.ReportParameter' to type 'System.Collections.Generic.IEnumerable`1[Microsoft.Reporting.WinForms.ReportParameter]'."    Please help me Rodrigo SetParameters takes an array of ReportParameter objects, not a sing ...Show All

  • SQL Server Print Layout Settings

    How can I set default print properties for a report in a ReportViewer control Do I have to set it by the report or by the ReportViewer I mean properties like A4 page, and Landscape layout The print properties can be defined in the RDL. The page size, width, etc.. are properties in the RDL. The layout for landscape can be pre-set by setting the width and hight to 11x8.5. This link might help: http://msdn2.microsoft.com/en-us/library/ms159237.aspx ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Basic question: Transforming a vertex is shaking my worldview

    Wow, I always thought I had had matrix transformations pretty well figured out until now. So say I have a vertex, conveniently located at the origin (0,0,0). If I want to apply a transform to this vertex -- namely, a translation, I could do something like this: Matrix translationMatrix = Matrix .Translation(100.0f, 50.0f, 0.0f); // a simple 2D translation Vector3 myVector = new Vector3 (0, 0, 0); myVector.TransformCoordinate(translationMatrix); As expected, my vector gets transformed to its new value: (100, 50, 0). Now let's get crazy. Assume that I want to apply a transform that consists of a rotation and our previously ...Show All

  • SQL Server Case Statment - is this possible??

    the current statment reads as follows - SELECT @NonConsent as NonConsent, @NonConsentPAS as NonConsentPAS,  SUM(CASE WHEN Cast(DateDiff(Day, EP.DateofBirth, GetDate())/365 as int) <=25 THEN 1 ELSE 0 END) As Under25,  SUM(CASE WHEN Cast(DateDiff(Day, EP.DateofBirth, GetDate())/365 as int) >25 THEN 1 ELSE 0 END) as Over25 FROM......... this works fine but now ive been asked to expand upon this for the following age groups 18-25 26-35 36-45 46-55 56-65 66-75 >75 so i was just going to do the following SUM(CASE WHEN (Cast(DateDiff(Day, EP.DateofBirth, GetDate())/365 as int) >=18 AND Cast(DateDiff(Day, EP.DateofBirth, Get ...Show All

  • Visual C# How to insert actual datetime with seconds into sql express database ?

    Hi On buttonclick i want to create a variable with startTime. Clicking the same button again should create a second variable with endTime. Clicking the savebutton then should create a new row in my dataset and insert the two datetime variables. I've created a MatchTable with following colums: MatchID int (isIdentity) PlayerName1 nvarchar(50) PlayerName2 nvarchar(50) PlayerPoints1 int PlayerPoints2 int MatchBegin datetime MatchEnd datetime I'm working with VC#Express Thank you very much ...Show All

  • Windows Forms how to insert textbox into treeview control

    I have searches everywhere but couldnt fing anything. In C#.NET how can i add textbox to treeview control.I mean textbox as a node. Ok. No, the TreeView doesn't have any support for this. You'll need to go a 3rd party route. -mark Program Manager Microsoft This post is provided "as-is" ...Show All

  • Windows Forms Binding Comboboxes to custom lists

    I am running .NET Framework 2.0 B2 I am missing something when it comes to implementing databinding in custom classes. I have a view class that acts as my main data source. The view class basically just loads up the data and returns via properties and BindingLists of NameValuePairs (which is just a replacement for KeyValuePair so that databinding will work) The view class also maintains current properties that tell me what the current selected id is for my state, city and street. However when I run the form the databinding seems to get behind. If I choose a new state, the cities refresh, but the text in the state box stays the same. Then whe ...Show All

  • Smart Device Development win ce 4.1 and seting / getting timezone in c#

    I have an app that needs to be on the correct time of day and time zone. I have the code to set the time by a pinvoke call. I found an API call for Get and Set Time Zone but it wants a C/C++ struct that I am not sure how to create in C# the msdn docs call for WCHAR blah[32]; which if I am thinking right means an array of 32 UNICODE chars not a pointer to a string. and C# will not let me declare a struct with a fixed array size like char[32] foo; can someone give me the right struct or class to pass to this platform call thanks!     Hi! I can only give you the VB struct: ...Show All

  • SQL Server help me please

    Hey everyone, im not even sure if this is possible, but can you make a regestry system run on a server, so for large comapnys, instead of putting on a updated image file for each computer to put on a new programm for them all you could put it on a server, so big applications such as macromedia flash or adobe photoshop will work on a server(they need to use the regestry) ...Show All

  • Visual Studio Team System Team Build and MSBuild order

    Hi, I have a team build type setup that will build several solutions in my team. I have one solutions however that consistantly fails when automatically build using Team Build. It appears that running msbuild on the tfsbuild.proj file that is created somehow calls project targets in the wrong order for this one solution file. If I build the solution file separately (still using the command prompt and msbuild) it is ok, but when build from the tfsbuild file it fails. Looking at the build output, it is clear that the order is wrong, but I can't workout what the order is. It doesn't seems to relate to the sln file!! Can anyone help Regard ...Show All

  • .NET Development Problem inserting small date time in a sql server database

    Hi, I have a cell in a sql server database that is off datatype smalldatetime. I am trying to pass in the value of todays date in a sql insert command but I keep getting the error "The conversion of char data type to smalldatetime data type in an out-of-range smalldatetime value" Below is my code(C#) DateTime TodayDate = DateTime .Today; int Num = 1; string text = "Test" ; //To test that the insert works fine SqlDataSource1.SelectCommand = "INSERT INTO Weekly_DB (Gen_Desc,Date ) VALUES ('" + text + "', '" + TodayDate.ToShortDateString() + " ')" ; } Can any ...Show All

  • Visual Studio Express Editions Visual C# Keeps asking for Registration

    As of this moment I already have 2 "Thank you for registering Visual C# 2005 Express Edition!" e-mails in my inbox and just now, Visual C# asks again to register I'm OK with registering, but not if it keeps asking for it every day or two. What could be the problem Eric On further investigation, it appears that installs from the .img files do not require registration. ...Show All

  • SQL Server Report Services

    Configuring sql services is a nightmare. Why it seems like the tools to configure it are quirky and don't work as advertise. Anways, I've spent the last two weeks trying to set up remote reporting. The following list are a few issues I ran into and what I did to get around them. Hope this helps. Tip : If possible, don't every mess with the report server virtual directories (like recreating them), you'll end up with a permissions nightmare. Issue : Report Builder wasn't launching (clicked on the link but nothing happen) solution : In turn out to be some Internet explorer setting. I ended up resetting IE to all of it's defaults, which fixed ...Show All

  • Windows Forms Extended Data Grid

    I was hoping to use this grid to show multiline text from my result set.  I have the grid working by setting the styles at design time.  I would like to be able to set the height of the row to be based on the cells.   I could not find an auto-size. I have two multiline columns.  One has hard returns for each entry&nbs ...Show All

©2008 Software Development Network