Mo Majad's Q&A profile
Visual Basic i need help! please someone help!!
hey guys, i'm doing a project that requires me to build an application with a database. i need to gather information from the database to use with the applicaiton. for eg.. a login page. and the application will look for the appropriate userId and passWord from the database. can someone give me some starters as to how to do it. it has been a frustrating 2 weeks trying to do sumthing. i've tried table adapters, functions and everything but i just can't get it to work. THANK YOU VERY VERY MUCH!! mel hey bro! although u didn't really help me much. but in fact u did HELP me alot. u woke me up from my dream and really got me to start working again. and i manged to create and connect and do everything i had to d ...Show All
Visual Basic Still the same question
Hi. This is my question: Could I use the example for the RTC API (VB), for playing a file (wav, for example) during a PC-PC call How can I do it Thanks! I checked the structure of the classes, but I didn't find some method which enables me to play some WAV file...can anybody help me with that thanks! ...Show All
Visual Studio Tools for Office Word MAil Merge Automation (MailMerge.execute)
In the following code If I use WordDoc.MailMerge.Execute() it opens up another documet named FormLetters, Question is what's use of WordDoc.MailMerge.execute Private Sub DoMailMerge() Dim WordApp As New Word.Application Dim WordDoc As New Word.Document Try WordApp.Visible = True WordDoc = WordApp.Documents.Open("c:\mydoc.dot") ' Template no merge inside this document only fields WordDoc.MailMerge.OpenDataSource(Name:= "c:\sqlserver.odc") 'Perform Merge 'WordDoc.MailMerge.Execute() 'Do I Need this statement. Mail merge still works without this WordDoc.SaveAs(strFileName) Catch Finally WordDoc.Close(False) WordApp.Quit(False) WordDoc = Nothing WordApp = Nothin ...Show All
.NET Development Microsoft .Net Framewok 2.0 Windows-Based Client Development
Hi This is really for the authors for the above book namely Mathew Stoecker. I am woking through the exercises in the book, chapter6 lesson2 exercise3 working with parameters in sql. It refers to stored procedure GetFreightCost for the Northwind database but this proc is not in the database. The msdn downloads offer only the AdventureWorks for the SQL2k5 Express I am using Visual Studio 2005 Standard with SQL Express. pleases could someone tell me if there is a latest version of Nothwind, or supply me with the script for the SProcs mentioned in this book. I am a beginner so a bit stuck. Thanks Baldev Hi, I created this one just to help me get past this chapter.... H ...Show All
Visual C# Build up a variable name with a string
Hi, I wonder if there's a way (in c#) to build up a variable name by the concatenation of two strings...For example int intTest = 1; string strTest = "strTest"; string strTest+intTest.toString() = "this is my new var"; Thanks in advance Mark Rendle wrote: operations like that can be handled in interpreted languages, such as Javascript (which can do it using the eval method). Or in VFP: via macro substitutions-a very nice feature. ...Show All
Software Development for Windows Vista Suggestion for Samples
As a new user trying to grasp WWF, it seems that the examples are not targeted for gradual development. I look at it this way, most every user will need a way to ogin users and start some process once a user is verified. I cannot find any example of using WWF to login a user. It seems that it would be a logical first step after "Helo World". Have a State for "WaitingForLogin", add an even to the next state, "ValidatingUser", add events and states for "LoginFailed", "UseLoggedIn", and "Logout. Ya know ... "something" along those lines. "something" that has a demo using a web form, and a winform, and WPF "something" that includes persistence ...Show All
SQL Server Best way to launch report from a C# Winforms app?
I'm new to SSRS. I would like to launch a report from a C# desktop application, supplying parameters programatically. I was able to do this using System.Diagnostics.Process p ... then p.Start(@"(path)\iexplore.exe","(reportURL)"); I'm betting there's a much better way to do this. Ideally I would like to create an IE window that shows only the report, that is, only the report viewer toolbar is visible, the IE toolbars and menus are hidden. I want to specify IE as the browser in case some other browser is installed as the default web browser. Can anyone link me to a tutorial or provide a code snip Thanks. Hi do not launch in IE. use ReportViewer Control to see that. You can add reports ...Show All
Windows Forms stored procedures and vb2005
hi i have a stored procedure create procedure compreg @no int as insert into document select compregno as DocumentNo,'Company Registration' as documenttype, comregdate as issuedate,compregexpdate as expirydate,slno as Empno from company where slno=@no when i add a new row to company from vb2005(using dsn,dataadapter,dataset ) i have to execute this stored procedure. hw can i pass the argument from the form This link http://msdn2.microsoft.com/en-us/library/system.data.oledb.oledbcommand(VS.80).aspx and http://msdn2.microsoft.com/en-us/library/d7125bke(VS.80).aspx might be useful. See examples. ...Show All
Internet Explorer Development IE7, OE6 Printing problems with headers
Having an intermittent problem printing To: From: CC: Subject: Attachments: headers on emails. Usually happens with larger emails or emails with large attachments or emails that have been replied to or forwarded from other people. Have installed Generic/text printer and sent the email to this printer but sometimes the headers are still missing even printing this way. I have if I open the offending email and highlight just one or two words in the text of the email eg Dear John and then print the email using my HP printer (not as text on Generic printer) - the headers then print and so does the selected words. Don't suggest using Outlook as often we only print the first page of emails as we already have the rest of the email on file especial ...Show All
Smart Device Development Radio Interface Library Privileged APIs
Which RIL functions are priviliged It is not clear from the MSDN page whether these APIs are privileged or not (http://msdn2.microsoft.com/en-us/library/ms924486.aspx). Many of the SMS functions appear to be, but RIL Proxy specific functions are not well documented. Thanks, in advance. Chris According to this article, all RIL APIs are privileged. The RIL and RIL Proxy are part of the Celular driver stack. These components are indeed not documented - the docs might only be available to ODMs/OEM. Normally, an application has no need to call into these components directly. They sould be using the documented APIs. Is there a special reason why you need direct RIL access Michael ...Show All
Visual C++ VS crash when updating intellisense
hello we using C++ manage code, with about 22 projects, when we open vs project from "VS2005 pro" updating intelisense is start, and when it get about 70% of it process we get microsoft error report, and Vs crash and restart , the only fix we find is to disable intellisense by rename FEACP.DLL. i find this solution unconvenion, we had this error in a last 3 months on diffrent computer in diffrent time. this is part of event viewer log (notepad with event id is attachment) Event Type: Error Event Source: Microsoft Visual Studio Event Category: None Event ID: 1000 Date: 30/01/2006 Time: 16:43:48 User: N/A Computer: **_XP Description: Faulting application devenv.exe, version 8.0.50727.42, stamp 4333e699, faulting module vcpkg.dl ...Show All
Visual Studio 2008 (Pre-release) How do I programmatically send a Click event to a Button?
I have a ListBox whos ListBoxItems are all buttons. I want to send a "click" event to the selected item (which is a button) whenever a specific key is pressed - in this case Return or Enter - but may not necessarily be so in real world. As an example I have used the ListBoxItemStyle sample from the SDK - and added a KeyDown handler to the ListBox - How do I send a Click event to the selected button The KeyHandler looks like this: private void HandleKeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter || e.Key == Key.Return) { //ListBoxInstance.ItemContainerGenerator.ContainerFromIndex(ListBoxInstance.SelectedIndex); Button b = (Button)(sender as ListBox).SelectedItem; if (b != null) { // How ...Show All
.NET Development Server connection timeout
Hi guys, I am using the code below to connect to a server. This works fine on all the machines I have ever tried to connect to but a new server has recently been added on which it seems to timeout randomly. It would normally take 8secs to connect & retrieve information from a server but this takes 2 minutes on those random occasions. I believe that it may be the server timing out & responding a bit late as it might be busy or something.How could I possibly work around this and find out what is wrong I am using a third party SSH library to connect. I would appreciate any help StringBuilder output = new StringBuilder(); //SSH connection from 3rd party library (SSH2) //SSH Reader from 3rd party Socket s = new ...Show All
Visual Basic Array of Buttons
I want to create rows and columns of buttons in my code using an array. If anyone know how to do this please respond. What you posted should work. You'll have to match the case so you might want to use "If btn.Text.Trim.ToUpper = "CANCEL" Then..." What problem are you having ...Show All
Visual C# How to open a pdf document on a winform in c# ?
Hello Does anyone knows how can i open a pdf document on a winform in c# i want an example that open a pdf document, visualize it and then saves that pdf document in the hard disk. If anyone can help me in that, please send me an email to filipetb@hotmail.com Thanks for all Filipe Portugal There are many SDK's available on Internet for free to manipulate PDF's. Give google a try and I hope it'll solve your problem. The other ways is to add Acrobat Reader's ActiveX control on your Windows form and explore it's function. I hope it'll also help you in achieving your task. Best Regards, ...Show All
