JasMR's Q&A profile
Visual Basic Class Question
I am tryin to create a login in Form when a user enters his name in a textbox it shows a message box saying that this name is in the database....I am not sure how i should access the property that is assigned to the SqlDataReader.GetValue(2).toString() here is my class Imports System Imports System.Data.SqlClient Public Class DataForm Private fname As String Private lname As String Public Property d_fname() As String Get Return fname End Get Set ( ByVal value As String ) fname = value End Set End Property Public Property d_lname() As String Get Return lname End Get Set ( ByVal value As String ) lname = value ...Show All
Visual Studio Express Editions Set Focus
Hello, When I click an element on my form, it doesn't lose it's focus by leave the element. For example: When I select an option in a combobox, and I click beside beside it, the combobox is still focused. I tried Me.Focus() by clicking on the form, but the combobox is still focused. I tried focus the toolbar in my program. Indeed, that focus works correct. After focusing the toolbar, the scrollbar doesn't work with the mousewheel. How can I focus my form Private Sub Form1_Click ( ByVal sender As Object , ByVal e As System . EventArgs ) Handles Me . Click Me . AutoScroll = True Me . HScroll = True Me . HorizontalScroll . Enabled = True Me . VerticalScroll . Enable ...Show All
SQL Server Backup Jobs Locking ??
When you run a Backup Job (Database or TRN), is the database locked during the database If yes, to what extent Thanks There are no locks that are not compatible with any user locks, but only those which could prevent database from deletion, for example. ...Show All
Visual Studio Express Editions mutipe pages?
im trying to use a button to load a new page in the same window can someone give me some device Hi, I think this user is after using a Panel for controls instead of a new Form so that everything stays on one FORM or 'window' as Timmy0614 puts it. Unless you can have a child Form within a Form Like a child scrollable window within a HTML browser. Regards, S_DS ...Show All
Visual Studio 2008 (Pre-release) Service Host Endpoint Addressing
I have my wcf service created and hosted in my Windows service. When I created my service host instance I had to provide a Uri to the constructor. I would rather that the service host use the address specified in the app.config file that I generated. It seems, though that the service host address is not being set by what is provided in the app.config file. The behaviors and bindings appear to be taking from the app.config file. How do you force the wcf service to use the address in app.config even though you have to provide a uri to its constructor I'm passing a singleton object (rather than a type) as well for event handling. Does this have ramifications to how the address is established Would you normally not create the service ho ...Show All
Visual C++ Unexpected namespace pollution in VC8 (bug?)
Running Visual Studio 2005 Professional, no service pack applied. Here is a code snippet distilled from some code that fails due to unexpected namespace conflicts: namespace ns1 { typedef unsigned long ns_t; struct base { ~base() {} }; } namespace ns2 { using namespace ns1; struct dummy : public base { }; } namespace ns3 { struct dummy2 { dummy2() {} ns2::dummy m_dummy; }; } ns_t ns_check; //compilation should fail here!! The above code compiles fine on my machine. The problem is that , for some reason, ns_t is visible at the global namespace when it shouldn't be. Strangely, removing base::~base will cause the behavior I expect (compilation error). I'm not sure exactly where the bug is and what a workaround ...Show All
SQL Server Issues With SQL 2005 Encryption
Are there any pitfalls i should look out for when using the encryption in SQL 2005 I'm just learning SQL and i'm very green but hope to become more seasoned in time. Thank you. Jeff Welch ...Show All
Visual Studio 2008 (Pre-release) date problem in wcf
i have strange scenario. i have class employeeinfo methods: Datetime birthdate From windows form : i created proxy client and assigning a value to the birthdate datamember. and pass the class to the wcf method when i access the value in that method i am getting the value 1/1/0001 which is the minmum value. i am getting string values only date time datatype values are missing. (using Encoding as Text in configuration file) pramod oh, you describe match the common seen dataset problem which discussed here http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1249302&SiteID=1 basically when you use untyped dataset and you need to generate proxy, you need to use /r:[yourpath]sy ...Show All
Visual Studio 2008 (Pre-release) Persisting type 'object'
Hi again, has anyone tried (or discovered) how we can use Linq to Sql (notice I've used the new name there ) to persist objects into VARBINARY columns I know its not a nice requirement, but I want to be able to do it. Regards, D Hi Matt, even better would be the ability to persist generic types, that way I would be able to strongly type the return value to T. I really wanted to have a generic class, which i could then define as CustomProperty<T>, where T is a known interface, unfortunately I can't then seem to define a Table<CustomProperty<T>> in my datacontext derived class. i have however found the solution to the original problem, a sample is below; &nbs ...Show All
SQL Server Data Processing and Security extensions.
I have Reporting Server 2005 with following extension: - Data Processing extension; - Security Extension with forms authentication; And I have the following question: How can I get the user name in data processing extension after forms authentication I need this user name to filter my data. Please help me with this problem. I think that already exist standard solution, but I couldt'n found it. You can pass User!UserID to the data extension as a query parameter. Also, at runtime under the Report Server, HttpContext.Current.User.Identity in the data extension should return whatever LogonUser accepts as userName. ...Show All
Windows Forms Sending email in vb.net 2005(using vb) not with smtp but the users outlook (mapi)??
I have an application that I need to send mulitiple emails from. There are about 10 users who will have permission. However my IT Group has locked down the smtp server and will not allow "Applications" use the smtp method. I remember in vb6 I used mapi to send emails using outlook that was on the users computer thus giving my IT folks traceability of who is sending what and not having to set up 10 people on the smtp permissions. Can this still be done using outlook(mapi) they are only allowing server to relay email, no desktops will be allowed to send relay email. I did a project a few years ago where I used mapi in vb6 to send email and it was using their outlook not the smtp ser ...Show All
SharePoint Products and Technologies Switching Web Applicaiton Ports
Is it possible to switch the port of a web application after it is created For instance, I have a web app that is currently on port 82. I would like to switch it over to port 80 and add a host header in IIS to access that particular site. It seems that you just can't reconfigure IIS to do this. Sharepoint is still wants to see the web app on the port that it was created under. If it is not possible I suppose I can just take care of it with DNS. http://blog.henryong.com/2007/01/17/alternate-access-mapping-in-sharepoint/ ...Show All
Software Development for Windows Vista LoaderLock was detected in Vista
I just got a new pc with Windows Vista loaded VS2003 and have a program that works in Windows XP it uses Reference DirectX AudioVideoPlayback but in Vista the program does not work, it load, but try to play a mp3 cPlayer = New Audio(File) and cPlayer will = nothing so I loaded Visual Basic Express converted the program and the program loads ok but if I try to play the mp3 file I receive the error message. LoaderLock was detected Message: DLL 'C:\Windows\assembly\GAC\Microsoft.DirectX\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang. is attempting m ...Show All
SQL Server Add as many Where's as possible
Hello, This was my first query. This is a subquery in a join, the date used for the DaysalHead table is specified on the on conditions and is not a part of this sample. SELECT COMPC_START, COUNT(DSH_ID) PERFORMANCES FROM TS.DAYSALHEAD DSH INNER JOIN GEN.COMPLEX_DATES CD ON CD.COMP_UI = DSH.COMP_UI AND CD.COMPD_DATE = DSH.DSH_DATE INNER JOIN GEN.COMPLEX_CALENDAR CC ON CC.COMPC_UI = CD.COMPC_UI INNER JOIN NATF.MOVIESLINKING ML ON ML.MOV_UI = DSH.MOV_UI WHERE ML.NMOV_UI = DSD.NMOV_UI AND DSH.COMP_UI = 168 GROUP BY COMPC_START HAVING COUNT(DSH_ID) > 3 It runs fine and when i watch the executionplan it is using the correct indexes to scan, the most 'un-used' rows come from the complex_dates, ...Show All
Microsoft ISV Community Center Forums Accessing Visual FoxPro data using VBA (Excel)
I am trying to query some records from a FoxPro database in Excel using VBA. I am able to grab all the data I want, based on my criteria, except for the dates. I cannot query by dates. Could you please educate me as to how to query records from a FoxPro database file by date/time in VBA Thanks in advance. MPG. Thanks for replying. I have tried these formats to query the dates and have had no luck. I can pull the information using the literals (#) in MS Query, but cannot in VBA (using XLODBC) and SQL Statements. Thanks again. Mike. ...Show All
