Topics
-
-
- Leaders
- 2 replies
- 1k views
Hey there For the several applications rolled out right now we want a single module to handle inter-application communication. i.e. we have one application (called App1 for simplicity) and with a button in this application we switch to another application (called App2). we want to exchange information such as patient number etc. My guess was to use Postmessage / sendmessage for this. All works fine, until we got to the point in which we have to communicate strings instead of numbers. An integer was easy to convert to a Intptr with new IntPtr(intValue) however creating an intptr from a string and send this pointer won't work. We also saw there was an overloaded…
Last reply by DPrometheus, -
-
-
- Administrators
- 1 reply
- 1k views
Hi there, I'm just about banging my head on the table with this one, so I hope someone can help. I'm making a Facebook application - I have a windows application that uploads a text file to my web server, and I want to compare the name of the text file to the first name and last name of the Facebook user, and if they are the same, then open the text file. When I was playing around with it, I printed the path and file name, but it looked like there was a space before the file name and before the file extension. My original idea behind it was: Dim Name As String = _fbService.fql.query("SELECT first_name, last_name FROM user WHERE uid = '" & Session("Fa…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 698 views
Hello Friends, Now i have some interesting topic to start. The need of the project is. Have some datas which used to create a new word document using dot net. ie) when some one entered the required datas in front end, it must saved in database(SQL) then it will produce a new document in microsoft word or pdf. for example see the image please. * how can i design the result document which needed in microsoft word or pdf format. I think crystal report is needed. Please help me to start.. Thanks in advance. S.Selvamanikandan
Last reply by DPrometheus, -
-
- Administrators
- 2 replies
- 723 views
The more I learn about exceptions, the more I feel like I should *not* be catching and dismissing general exceptions in my code like I do: try { DoThis1(); } catch (Exception err) { LogError(err); } So, what I've been trying to do is catch the exceptions that could be thrown by particular routines, but I don't know which ones need to be caught and which ones are obvious checks that don't need catching. Take the ArgumentNullException. If I do a simple check on my object, if (obj != null) { DoThis2(); }can I eliminate the ArgumentNullException? For sending a simple email, I find myself catching about 5 exceptions: try { SmtpClient client = new SmtpClient(strIpAdd…
Last reply by joe_pool_is, -
-
-
- Administrators
- 1 reply
- 829 views
hi guys.,., I would like to add <div></div> tags in my asp.net page using javascript,.,. I tried the Page.ClientScript.RegisterClientScriptBlock and Page.ClientScript.RegisterStartupScript but it doesn't seem to work.,. I always get this error: "Only Content controls are allowed directly in a content page that contains Content controls." I entered the above code inside a <script runat="server"> tag and it is called in an <asp:Content> </asp:Content> tag.,., Please help me, i beg you guys.., Thanks!!:confused: :confused: :confused:
Last reply by PlausiblyDamp, -
-
- 1 reply
- 1.1k views
Hey there I'm trying to send some messages to another program. Somehow they never arrive. The sending application on button click: Dim info As New ProcessStartInfo("C:\Users\mso\Documents\Visual Studio 2005\Projects\SwitchApplication\MedicalRecords\bin\Debug\MedicalRecords.exe") Dim process As Process process = process.Start(info) ' Wait for process to be started Threading.Thread.Sleep(1500) hWnd = process.MainWindowHandle Dim Buffer As New StringBuilder(128) Buffer.Append(ComboBox1.SelectedValue.ToString) MsgBox(Buffer.ToString & "Sent to " & hWnd.ToString) …
Last reply by DPrometheus, -
- 5 replies
- 2k views
Hi there, I've encountered the following problem and I'm really clueless. For work I've made a word host application, and now we need to switch templates in it. I've made a custom ribbon where a combobox lists all templates. These templates are loaded in the combobox_change event. See code listing 1 below. I've a Word template (.dotm) called Spec.dotm. This template does nothing more then redirect to another template (Word07Def.dotm), which will be activated as some sort of global template (This enables me to switch documents). This global template contains the ribbon adjustments, and VBA code to handle the ribbon controls If I do this in Word 2007 everything …
Last reply by Cindy Meister, -
- 1 reply
- 3k views
I am trying to run the data form wizard (http://msdn2.microsoft.com/en-us/library/aa291437(VS.71).aspx) for a new vb net windows application but the wizard/template does not show up in the installed template window. How do I install or gain access to the Data Form Wizard Template?
Last reply by enowmbi, -
- 0 replies
- 955 views
to populate a treeview by getting the data from the database i have threee tables table1: Maincountry columns: id,Countryname table2: Country columns: country,state table2: State columns: state,cities i want the tree view to be like this -country1 -State1 -city1 -city2 -state2 -city1 -city2 -country2 -State1 -city1 -city2 -state2 -city1 -city2 what is to be done i want the code please its urgentttttt thanks in advance
Last reply by rahul_0716, -
- 0 replies
- 2.9k views
hi, first met me say i searched and read tutorials but i just cant make this to work on my site. I have a datalist on the page where some data is shown. What i would like is to add a linkbutton so that registered users can add this data to its favorite list. I work with MS access database. <asp:DataList ID="DataList1" runat="server" DataSourceID="PolnitevDetail"> <ItemTemplate> <asp:Label class="Polnitev-podatki" ID="kroglaLabel" runat="server" Text='<%# Eval("PID") %>' /> <asp:Label class="Polnitev-podatki" ID="teza_krogleLabel1" runat="server" Text='<%# Eval("ID") %>'/> <asp:Label class="Polnitev-podatki" ID="smodnikLab…
Last reply by UrKo, -
- 1 reply
- 1.2k views
Hi This is suresh please provide me the c# code Writing Files into DVD
Last reply by DPrometheus, -
-
- *Experts*
- 6 replies
- 34.2k views
Hi Gang, I am trying to do something that must be simple but cannot for the life of me figure it out... first off, I am using VB.NET and SQL Server. What I want to do is filter the records of the DataSet underlying my DataView by using the RowFilter property of the DV. The problem is the column I want to filter on is an SQL DateTime. So, basically what I am looking for is something like this: "scheduled_completion_date < " + System.DateTime.Today in the RowFilter property. When I do this I get an error that a System.DateTime cannot be compared to a System.Double (the Today value). So I try to use FromOADate on it: "scheduled_completion_date < "…
Last reply by QuickDraw, -
-
- 0 replies
- 1.4k views
Hi, I want to know if there is anyone else having the same problem as I do. When using Visual Studio 2008, I'm having trouble saving my projects to mapped network drives. After selecting "Save all" and choosing "Browse..." project location, I can't see any mapped network drives in the list. I can manually type the \\server\folder\... if I want to and after saving the project for the first time, there are no problems working with it. It's odd that you can't see the mapped drives in this case. I didn't have this issue when working in Visual Basic 2005. This applies to more then one computer running Windows XP and Visual Studio 2008. One computer running Vista do…
Last reply by fw-sandens, -
hai guys i have a text file with the content as Number:1234567890 Alphabet:ldskfjlds Alphabet:weiouruewoiru Alphabet:abcdefghijklmnopqrstuvwxyz Alphabet:abcdefghijklmnopqrstuvwxyz Number:1234567890 so while reading the file if encounter string "Number:" then i have to read the number eg:124567890 and insert into the database. i was able to identify the presence of the string in the text file by the code if (System.Text.RegularExpressions.Regex.IsMatch(st,"Number:") Textbox1.Text="found"; i think i may be possible with System.Text Namespace Methods..but i dont know thosemethods
Last reply by JumpyNET, -
- 5 replies
- 5.4k views
[PLAIN][sOLVED]: how to detect tab symbol in text..[/PLAIN] Hi.. I use stream reader to input lines from a text file to a listbox.. While inputting, i want to detect the tab characters in it. Like After the second tab character, extra text should be ignored. How can i do this? Plz reply ASAP.. I just need the part of code which detects and ignores the extra text. Plz don't take pains to write the whole coding.. ;) Thanks mccbala
Last reply by mccbala, -
-
- Leaders
- 7 replies
- 4.7k views
Hi, I am currently using Visual Basic 2008. I started my game and added my sprites and got my obstacles set up. I do not know how to detect Collision. How do I make it where if my character touches the building. He Stops Moving. And I am trying to find out which side of the building my character is touching. For Example. If my character touches the top side of the building then Collision = 1 If my character touches the left side of the building then Collision = 2 If my character touches the right side of the building then Collision = 3 If my character touches the bottom side of the building then Collision = 4 I just can't figure out how to find th…
Last reply by Fabian_Russ, -
-
- 4 replies
- 5.5k views
In my page_load event, I have the following code: <code> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Try If Not Page.IsPostBack Then BindGrid() Else GridView1.DataSource = DirectCast(Session.Item("dtCustomers"), DataTable) End If Catch ex As Exception Response.Write(ex.Message) End Try End Sub </code> While debugging, I have the following in the Immediate Window after the postback: ?GridView1.Rows.Count 10 Once I clicked the Edit button, it fired the RowEditing event wh…
Last reply by shae marks, -
- 4 replies
- 12.2k views
is there any way to read powerpoint presentation from c#. I dont want powerpoint to open, i want to play the things directly from my program.
Last reply by Cindy Meister, -
-
- Administrators
- 8 replies
- 1.5k views
Hello guys, it has been a while... I need to run my application in background, before anyone logs in the computer. After some research I ventured myself in creating a Windows Service to do the trick. I've created this windows service but I simply can't make it execute my application (SQLGuardian.exe): public partial class Service1 : ServiceBase { public Service1() { InitializeComponent(); } protected override void OnStart(string[] args) { MessageBox.Show("Service Started!"); Process.Start("D:\\SQLGuardian.exe"); } protected override void OnStop() { } } …
Last reply by Nate Bross, -
-
- 6 replies
- 7.7k views
Crystal Reports/ASP.NET question Hey all. I've got an ASP.NET project going here based on loading a crystal report and viewing it using the Crystal Reports Web Viewer. I have a question concerning a problem I'm facing... Has anyone experienced attempting to pass parameters for a report and then handling subreport parameters that are linked to a field for the datasource of the report? In other words, I have a report that is based on a stored procedure, and it also has a subreport which is also based on a stored procedure. The subreport is linked to the main report, i.e., it has a parameter ("?Pm-") that is linked to a field in the main report (and not a main report p…
Last reply by robertsams23,
-
Who's Online 0 Members, 0 Anonymous, 17 Guests (See full list)
- There are no registered users currently online